backoffice: indicates the conditional fields on all fields (#26082)

This commit is contained in:
Thomas NOËL 2018-09-04 15:45:44 +02:00
parent c2e6da285e
commit 445d1815a0
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,8 @@ class FieldsDirectory(Directory):
r += htmltext('<span id="label%s">%s</span>') % (field.id, label)
r += htmltext('<p class="details">')
r += htmltext('<span class="type">%s</span>') % _(type_label)
if getattr(field, 'condition', None):
r += htmltext(' - <span class="condition">%s</span>') % _('depending on condition')
r += htmltext('</p>')
r += htmltext('<p class="commands">')
r += command_icon('%s/' % field.id, 'edit')