Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
7edee761ad4f
Commit
8fc7d8b1
authored
Mar 24, 2017
by
Sylvain Thénault
Browse files
[views] Deactivate relationwidget's creation form
I don't like it and it doesn't work well. Closes #17066566
parent
46136e5af131
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_seda/views/widgets.py
View file @
7edee761
...
...
@@ -24,6 +24,13 @@ from cubicweb.uilib import js
from
cubicweb.web
import
formfields
as
ff
,
formwidgets
as
fw
from
cubicweb.web.views
import
ajaxcontroller
,
autoform
,
formrenderers
from
cubes.relationwidget
import
views
as
rwdg
# deactivate relation widget's creation form by default, it causes some js error if e.g. there are
# some calendar widgets. Also, we don't really want that from an UX POV, IMO.
rwdg
.
SearchForRelatedEntitiesView
.
has_creation_form
=
False
def
configure_relation_widget
(
req
,
div
,
search_url
,
title
,
multiple
,
validate
):
"""Build a javascript link to invoke a relation widget
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment