Show button name of the WorkflowStatusItem instead of a the item genereic description

This commit is contained in:
Benjamin Dauvergne 2011-06-21 20:07:13 +00:00
parent 7aa219091e
commit afcde76dbf
1 changed files with 2 additions and 1 deletions

View File

@ -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'))