equal
deleted
inserted
replaced
29 # IWorkflowable views ######################################################### |
29 # IWorkflowable views ######################################################### |
30 |
30 |
31 class ChangeStateForm(form.EntityFieldsForm): |
31 class ChangeStateForm(form.EntityFieldsForm): |
32 id = 'changestate' |
32 id = 'changestate' |
33 |
33 |
|
34 form_renderer_id = 'base' # don't want EntityFormRenderer |
|
35 form_buttons = [SubmitButton(stdmsgs.YES), |
|
36 Button(stdmsgs.NO, cwaction='cancel')] |
|
37 |
34 __method = StringField(name='__method', initial='set_state', |
38 __method = StringField(name='__method', initial='set_state', |
35 widget=HiddenInput) |
39 widget=HiddenInput) |
36 state = StringField(eidparam=True, widget=HiddenInput) |
40 state = StringField(eidparam=True, widget=HiddenInput) |
37 trcomment = RichTextField(label=_('comment:'), eidparam=True) |
41 trcomment = RichTextField(label=_('comment:'), eidparam=True) |
38 form_buttons = [SubmitButton(stdmsgs.YES), |
|
39 Button(stdmsgs.NO, cwaction='cancel')] |
|
40 |
42 |
41 |
43 |
42 class ChangeStateFormView(FormViewMixIn, view.EntityView): |
44 class ChangeStateFormView(FormViewMixIn, view.EntityView): |
43 id = 'statuschange' |
45 id = 'statuschange' |
44 title = _('status change') |
46 title = _('status change') |