From ef1672ebd6487e0711f86c3d76b8f6fa5bc03cbb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 7 Mar 2022 19:51:52 +0100 Subject: Operation - Parcels - Modify: display correctly parcel that cannot be deleted --- ishtar_common/templates/blocks/inline_formset.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/blocks/inline_formset.html b/ishtar_common/templates/blocks/inline_formset.html index 37be0f005..f7e18ba2b 100644 --- a/ishtar_common/templates/blocks/inline_formset.html +++ b/ishtar_common/templates/blocks/inline_formset.html @@ -3,11 +3,18 @@ {% if header %} - {% for field in formset.0.visible_fields%} + {% for field in formset.0.visible_fields %} {%endfor%} {% endif %}{% for frm in formset%} {% if forloop.first and not skip %}{%endif%} + {% if frm.non_field_errors %} + + + + {% endif %} {% if not skip or not forloop.first %} {% endif %}{% for field in frm.visible_fields %}
{% trans caption %}
{{field.label}}
+ {{frm.non_field_errors.as_ul}} +
{% if field.errors %}
{{ field.errors.as_ul }}
{% endif %} -- cgit v1.2.3