diff options
Diffstat (limited to 'ishtar_common/templates/blocks/bs_formset_snippet.html')
-rw-r--r-- | ishtar_common/templates/blocks/bs_formset_snippet.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/bs_formset_snippet.html b/ishtar_common/templates/blocks/bs_formset_snippet.html new file mode 100644 index 000000000..0d089ee1b --- /dev/null +++ b/ishtar_common/templates/blocks/bs_formset_snippet.html @@ -0,0 +1,26 @@ +{% load i18n from_dict %} +<div class="form-row"> + {% for form in formset %} + {% if form.non_field_errors and not no_error %} + <div class="alert alert-danger" role="alert"> + {{form.non_field_errors}} + </div> + {% endif %} + + {% for hidden in form.hidden_fields %} + {{hidden}} + {% if hidden.errors %}<div class="invalid-feedback"> + {{ hidden.errors }} + </div>{% endif %} + {% endfor %} + + {% csrf_token %} + {% for field in form.visible_fields %} + {% include "blocks/bs_field_snippet.html" %} + {% endfor %} + + {% if form.extra_render %} + {{form.extra_render|safe}} + {% endif %} + {% endfor %} +</div> |