From c01be9de3ea65ab7a5360444e5cc27caebc1c061 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 7 Jul 2021 09:39:29 +0200 Subject: Preventive file - inline forms --- ishtar_common/templates/blocks/bs_field_snippet.html | 2 +- .../templates/blocks/bs_formset_snippet.html | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'ishtar_common/templates/blocks') diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html index dcee87f7f..beecf624f 100644 --- a/ishtar_common/templates/blocks/bs_field_snippet.html +++ b/ishtar_common/templates/blocks/bs_field_snippet.html @@ -1,5 +1,5 @@ {% load i18n %} -
{% if field.label %}{{ field.label_tag }}{% endif %} {% if extra_field_label %}{% endif %} diff --git a/ishtar_common/templates/blocks/bs_formset_snippet.html b/ishtar_common/templates/blocks/bs_formset_snippet.html index 0d089ee1b..3a7e537d3 100644 --- a/ishtar_common/templates/blocks/bs_formset_snippet.html +++ b/ishtar_common/templates/blocks/bs_formset_snippet.html @@ -1,6 +1,9 @@ {% load i18n from_dict %} -
+
+ {{ formset.non_form_errors.as_ul }} + {{ formset.management_form }} {% for form in formset %} +
{% if form.non_field_errors and not no_error %} {% endfor %} + {% if formset.dynamic_add %} +
+
+ +
+
+ + {% endif %}
-- cgit v1.2.3