Projet

Général

Profil

0001-backoffice-indicates-the-conditional-fields-on-all-f.patch

Thomas Noël, 04 septembre 2018 15:45

Télécharger (1,05 ko)

Voir les différences:

Subject: [PATCH] backoffice: indicates the conditional fields on all fields
 (#26082)

 wcs/admin/fields.py | 2 ++
 1 file changed, 2 insertions(+)
wcs/admin/fields.py
253 253
                        r += htmltext('<span id="label%s">%s</span>') % (field.id, label)
254 254
                    r += htmltext('<p class="details">')
255 255
                    r += htmltext('<span class="type">%s</span>') % _(type_label)
256
                    if getattr(field, 'condition', None):
257
                        r += htmltext(' - <span class="condition">%s</span>') % _('depending on condition')
256 258
                    r += htmltext('</p>')
257 259
                    r += htmltext('<p class="commands">')
258 260
                    r += command_icon('%s/' % field.id, 'edit')
259
-