diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-23 13:12:44 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-23 13:12:44 +0200 |
| commit | 0150781e88386622703d627e586d391bac0d6836 (patch) | |
| tree | 4272d98a6f29f4b16ee69d6c6a6eae63f3c22f09 /ishtar_common/templates | |
| parent | d42f9b9db23f0f7fb992873d6cb49525714b19f8 (diff) | |
| download | Ishtar-0150781e88386622703d627e586d391bac0d6836.tar.bz2 Ishtar-0150781e88386622703d627e586d391bac0d6836.zip | |
Administration: allow admin to display field number live
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/blocks/bs_field_snippet.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html index 6a6ea5360..c7b97c6de 100644 --- a/ishtar_common/templates/blocks/bs_field_snippet.html +++ b/ishtar_common/templates/blocks/bs_field_snippet.html @@ -2,6 +2,9 @@ <div class="form-group {% if field.field.widget.attrs.cols %}col-lg-12{% else %}col-lg-6{% endif %}{% if field.errors %} is-invalid{% endif %}{% if field.field.required %} required{% endif %}" data-alt-name="{{field.field.alt_name}}"> {% if field.label %}{{ field.label_tag }}{% endif %} + {% if show_field_number %}<span class="badge badge-pill badge-success field-tip"> + {{field.field.order_number}} + </span>{% endif %} {% if field.help_text %} <div class="input-group"> {% endif %} |
