diff options
Diffstat (limited to 'ishtar_common/templates/blocks/bs_form_snippet.html')
-rw-r--r-- | ishtar_common/templates/blocks/bs_form_snippet.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html index cc17b45eb..7c7d4175a 100644 --- a/ishtar_common/templates/blocks/bs_form_snippet.html +++ b/ishtar_common/templates/blocks/bs_form_snippet.html @@ -71,10 +71,7 @@ </div>{% endif %} <h3>{{field.name|from_dict:form.HEADERS|call:'render'}}</h3> <div class="form-row"> - -{% elif not search and forloop.counter0|divisibleby:2 or search and forloop.counter1|divisibleby:2 %} -{% if forloop.counter0 %} - </div>{% endif %} +{% elif not search and not forloop.counter0 or search and forloop.counter0 == 1 %} <div class="form-row"> {% endif %} {% include "blocks/bs_field_snippet.html" %} @@ -89,6 +86,7 @@ </div> </div> </div> + </div> {% endif %} </div> {% endif %} |