From a8c123dd20c310c8321d9bec0b76a03e4196b726 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 7 Feb 2022 12:08:49 +0100 Subject: Operation - Parcels - Modify: template - display table inline --- .../ishtar/forms/operation_modify_parcels.html | 25 ++++++++-------------- ishtar_common/templates/blocks/inline_formset.html | 2 +- ishtar_common/templatetags/inline_formset.py | 2 +- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html b/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html index 6128150be..117141e59 100644 --- a/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html +++ b/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html @@ -14,23 +14,16 @@ diff --git a/ishtar_common/templates/blocks/inline_formset.html b/ishtar_common/templates/blocks/inline_formset.html index 9c1daad28..d6e76bc90 100644 --- a/ishtar_common/templates/blocks/inline_formset.html +++ b/ishtar_common/templates/blocks/inline_formset.html @@ -1,5 +1,5 @@ {% load i18n %} - {% if extra_formset.non_form_errors %}
{{extra_formset.non_form_errors.as_ul}}
{% endif %} + {% if formset.non_form_errors %}
{{formset.non_form_errors.as_ul}}
{% endif %} {% if header %} diff --git a/ishtar_common/templatetags/inline_formset.py b/ishtar_common/templatetags/inline_formset.py index 9e3bfe9c9..2d225e448 100644 --- a/ishtar_common/templatetags/inline_formset.py +++ b/ishtar_common/templatetags/inline_formset.py @@ -10,7 +10,7 @@ register = template.Library() def inline_formset(caption, formset, header=True, skip=False): """ Render a formset as an inline table. - For i18n of the caption be carreful to add manualy the caption label to + For i18n of the caption be careful to add manually the caption label to the translated fields """ return {'caption': caption, 'formset': formset, 'header': header, -- cgit v1.2.3
{% trans caption %}