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 uicfg, 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 |
|
27 _pvs = uicfg.primaryview_section |
|
28 _pvs.tag_subject_of(('Workflow', 'initial_state', '*'), 'hidden') |
|
29 _pvs.tag_object_of(('*', 'state_of', 'Workflow'), 'hidden') |
|
30 _pvs.tag_object_of(('*', 'transition_of', 'Workflow'), 'hidden') |
26 |
31 |
27 _abaa = uicfg.actionbox_appearsin_addmenu |
32 _abaa = uicfg.actionbox_appearsin_addmenu |
28 _abaa.tag_subject_of(('BaseTransition', 'condition', 'RQLExpression'), False) |
33 _abaa.tag_subject_of(('BaseTransition', 'condition', 'RQLExpression'), False) |
29 _abaa.tag_subject_of(('State', 'allowed_transition', 'BaseTransition'), False) |
34 _abaa.tag_subject_of(('State', 'allowed_transition', 'BaseTransition'), False) |
30 _abaa.tag_object_of(('SubWorkflowExitPoint', 'destination_state', 'State'), |
35 _abaa.tag_object_of(('SubWorkflowExitPoint', 'destination_state', 'State'), |