Show button name of the WorkflowStatusItem instead of a the item genereic description
This commit is contained in:
parent
7aa219091e
commit
afcde76dbf
|
@ -686,7 +686,8 @@ class FormDefPage(Directory):
|
|||
if not had_options:
|
||||
form.widgets.append(HtmlWidget('<h3>%s</h3>' % status.name))
|
||||
had_options = True
|
||||
form.widgets.append(HtmlWidget('<h4>%s</h4>' % _(item.description)))
|
||||
label = getattr(item, str('label'), None) or _(item.description)
|
||||
form.widgets.append(HtmlWidget('<h4>%s</h4>' % label))
|
||||
item.add_parameters_widgets(form, parameters, prefix=prefix, formdef=self.formdef)
|
||||
form.add_submit('submit', _('Submit'))
|
||||
form.add_submit('cancel', _('Cancel'))
|
||||
|
|
Loading…
Reference in New Issue