diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-03-07 19:51:52 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | ef1672ebd6487e0711f86c3d76b8f6fa5bc03cbb (patch) | |
tree | 6dc7a5f9047cac4d5772d8439bbaa323c1da8086 /ishtar_common/templates/blocks | |
parent | f1ae9d46287bdc6eeda3e7c2da6efcbacf422ef9 (diff) | |
download | Ishtar-ef1672ebd6487e0711f86c3d76b8f6fa5bc03cbb.tar.bz2 Ishtar-ef1672ebd6487e0711f86c3d76b8f6fa5bc03cbb.zip |
Operation - Parcels - Modify: display correctly parcel that cannot be deleted
Diffstat (limited to 'ishtar_common/templates/blocks')
-rw-r--r-- | ishtar_common/templates/blocks/inline_formset.html | 9 |
1 files changed, 8 insertions, 1 deletions
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 %}<table class='inline-table' id='{{formset.prefix}}'> <caption>{% trans caption %}</caption> <thead> - <tr>{% for field in formset.0.visible_fields%} + <tr>{% for field in formset.0.visible_fields %} <th>{{field.label}}</th>{%endfor%} </tr> </thead>{% endif %}{% for frm in formset%} {% if forloop.first and not skip %}<tbody>{%endif%} + {% if frm.non_field_errors %} + <tr class="errors"> + <td colspan="{{formset.0.visible_fields|length}}"> + {{frm.non_field_errors.as_ul}} + </td> + </tr> + {% endif %} {% if not skip or not forloop.first %} <tr>{% endif %}{% for field in frm.visible_fields %}<td> {% if field.errors %}<div class='errors'>{{ field.errors.as_ul }}</div>{% endif %} |