18 from cubicweb.selectors import (implements, has_related_entities, one_line_rset, |
18 from cubicweb.selectors import (implements, has_related_entities, one_line_rset, |
19 relation_possible, match_form_params) |
19 relation_possible, match_form_params) |
20 from cubicweb.interfaces import IWorkflowable |
20 from cubicweb.interfaces import IWorkflowable |
21 from cubicweb.view import EntityView |
21 from cubicweb.view import EntityView |
22 from cubicweb.schema import display_name |
22 from cubicweb.schema import display_name |
23 from cubicweb.web import stdmsgs, action, component, form, action |
23 from cubicweb.web import uicfg, stdmsgs, action, component, form, action |
24 from cubicweb.web import formfields as ff, formwidgets as fwdgs |
24 from cubicweb.web import formfields as ff, formwidgets as fwdgs |
25 from cubicweb.web.views import TmpFileViewMixin, forms, primary |
25 from cubicweb.web.views import TmpFileViewMixin, forms, primary |
26 |
26 |
|
27 _abaa = uicfg.actionbox_appearsin_addmenu |
|
28 _abaa.tag_subject_of(('BaseTransition', 'condition', 'RQLExpression'), False) |
|
29 _abaa.tag_subject_of(('State', 'allowed_transition', 'BaseTransition'), False) |
|
30 _abaa.tag_object_of(('SubWorkflowExitPoint', 'destination_state', 'State'), |
|
31 False) |
27 |
32 |
28 # IWorkflowable views ######################################################### |
33 # IWorkflowable views ######################################################### |
29 |
34 |
30 class ChangeStateForm(forms.CompositeEntityForm): |
35 class ChangeStateForm(forms.CompositeEntityForm): |
31 id = 'changestate' |
36 id = 'changestate' |