From 445d1815a0fa2a8e08cd30a01d0920e66e6a1e7e Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Tue, 4 Sep 2018 15:45:44 +0200 Subject: [PATCH] backoffice: indicates the conditional fields on all fields (#26082) --- wcs/admin/fields.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcs/admin/fields.py b/wcs/admin/fields.py index 68ce4bda..e96059cf 100644 --- a/wcs/admin/fields.py +++ b/wcs/admin/fields.py @@ -253,6 +253,8 @@ class FieldsDirectory(Directory): r += htmltext('%s') % (field.id, label) r += htmltext('

') r += htmltext('%s') % _(type_label) + if getattr(field, 'condition', None): + r += htmltext(' - %s') % _('depending on condition') r += htmltext('

') r += htmltext('

') r += command_icon('%s/' % field.id, 'edit') -- 2.18.0