diff options
Diffstat (limited to 'ishtar_common/templates/blocks/bs_field_snippet.html')
| -rw-r--r-- | ishtar_common/templates/blocks/bs_field_snippet.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html new file mode 100644 index 000000000..c157461b7 --- /dev/null +++ b/ishtar_common/templates/blocks/bs_field_snippet.html @@ -0,0 +1,26 @@ +{% load i18n %} + <div class="form-group col-lg-6{% if field.field.required %} required{% endif %}"> + {{ field.label_tag }} + {% if field.help_text %} + <div class="input-group"> + {% endif %} + {{field|safe}} + {% if field.help_text %} + <span class="input-group-append"> + <a class="input-group-text" data-toggle="collapse" + href="#{{field.auto_id}}_help" + aria-expanded="false" aria-controls="{{field.auto_id}}_help"> + <i class="fa fa-question-circle" aria-hidden="true"></i> + </a> + </span> + </div> + <div class="collapse" id="{{field.auto_id}}_help"> + <div class="card card-body"> + {{field.help_text}} + </div> + </div> + {% endif %} + {% if field.errors %}<div class="invalid-feedback"> + {{ field.errors }} + </div>{% endif %} + </div> |
