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 --- ishtar_common/templates/blocks/JQueryJqGrid.html | 8 ++++-- .../templates/blocks/bs_form_snippet.html | 30 ++++++++++++++++------ ishtar_common/templates/ishtar/wizard/search.html | 2 +- 3 files changed, 29 insertions(+), 11 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/JQueryJqGrid.html b/ishtar_common/templates/blocks/JQueryJqGrid.html index 1768ab427..f9548a743 100644 --- a/ishtar_common/templates/blocks/JQueryJqGrid.html +++ b/ishtar_common/templates/blocks/JQueryJqGrid.html @@ -1,18 +1,22 @@ {% load i18n %} - +

+ + {% if url_new %}

{{new_message}}

{% endif %} -

{% trans "Search and select an item" %}

+

{% trans "Search and select an item" %}

  {% trans "Pinned search:" %}
+

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 %} diff --git a/ishtar_common/templates/ishtar/wizard/search.html b/ishtar_common/templates/ishtar/wizard/search.html index 89ce860d4..7b8f142e4 100644 --- a/ishtar_common/templates/ishtar/wizard/search.html +++ b/ishtar_common/templates/ishtar/wizard/search.html @@ -26,7 +26,7 @@ {% else %} -
+ {% endif %} -- cgit v1.2.3