summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks/bs_form_snippet.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/blocks/bs_form_snippet.html')
-rw-r--r--ishtar_common/templates/blocks/bs_form_snippet.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html
index a4d772236..cc17b45eb 100644
--- a/ishtar_common/templates/blocks/bs_form_snippet.html
+++ b/ishtar_common/templates/blocks/bs_form_snippet.html
@@ -1,4 +1,4 @@
-{% load i18n %}
+{% load i18n from_dict %}
{% if form.non_field_errors %}
<div class="alert alert-danger" role="alert">
{{form.non_field_errors}}
@@ -66,8 +66,13 @@
</div>
<div class="modal-body form-row">
{% endif %}
+{% if field.name in form.HEADERS %}
+{% if forloop.counter0 %}
+</div>{% endif %}
+<h3>{{field.name|from_dict:form.HEADERS|call:'render'}}</h3>
+<div class="form-row">
-{% if not search and forloop.counter0|divisibleby:2 or search and forloop.counter1|divisibleby:2 %}
+{% elif not search and forloop.counter0|divisibleby:2 or search and forloop.counter1|divisibleby:2 %}
{% if forloop.counter0 %}
</div>{% endif %}
<div class="form-row">