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 | e5123c28e4ef5773d416b06805cec471ec432f57 (patch) | |
| tree | 4272d98a6f29f4b16ee69d6c6a6eae63f3c22f09 /ishtar_common/templates | |
| parent | dd63f57e3fc55ec8e88dbcc55a17d221b6c82562 (diff) | |
| download | Ishtar-e5123c28e4ef5773d416b06805cec471ec432f57.tar.bz2 Ishtar-e5123c28e4ef5773d416b06805cec471ec432f57.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 %} |
