From ea1ad872dec9d6beeafe6ccd4264132f5865079e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 10 Nov 2017 18:46:14 +0100 Subject: UI: search layout --- .../templates/blocks/bs_form_snippet.html | 30 ++++++++++++++++------ 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'ishtar_common/templates/blocks/bs_form_snippet.html') diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html index 8aa6a5333..f413fd860 100644 --- a/ishtar_common/templates/blocks/bs_form_snippet.html +++ b/ishtar_common/templates/blocks/bs_form_snippet.html @@ -4,9 +4,24 @@ {{form.non_field_errors}} {%endif%} +{% for hidden in form.hidden_fields %} +{{field}}{% if field.errors %}
+ {{ field.errors }} +
{% endif %} +{% endfor %} +{% for field in form.visible_fields %} +{% if search and forloop.counter0 == 10 %} + +

+ +

+
+
+
+{% endif %} -{% for field in form %} -{% if not field.is_hidden %} {% if forloop.counter0|divisibleby:2 %} {% if forloop.counter0 %}
{% endif %} @@ -29,12 +44,11 @@
{% endif %}
-{% else %}{{field}} -{% if field.errors %}
- {{ field.errors }} -
{% endif %} -{% endif %} -{% if forloop.counter0.last%} +{% if forloop.last %} +{% if search and forloop.counter0 >= 10 %} + {% endif %} + +{% endif %} {% endfor %} -- cgit v1.2.3