From 12fd2be76304653e91fc17390e18e73b6015abb1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 29 Jul 2021 19:02:32 +0200 Subject: Preventive file: work on inlines - 3 --- ishtar_common/templates/blocks/bs_formset_snippet.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/bs_formset_snippet.html b/ishtar_common/templates/blocks/bs_formset_snippet.html index 3a7e537d3..cfc9bb37b 100644 --- a/ishtar_common/templates/blocks/bs_formset_snippet.html +++ b/ishtar_common/templates/blocks/bs_formset_snippet.html @@ -19,9 +19,9 @@ {% csrf_token %} {% for field in form.visible_fields %} - {% with bs_col_width='col-3' %} - {% include "blocks/bs_field_snippet.html" %} - {% endwith %} + {% ifequal field.name "DELETE" %}{% with bs_col_width='col-2' %}{% include "blocks/bs_field_snippet.html" %}{% endwith %} + {% else %}{% with bs_col_width='col-3' %}{% include "blocks/bs_field_snippet.html" %}{% endwith %} + {% endifequal %} {% endfor %} {% if form.extra_render %} -- cgit v1.2.3