From 5d8a340c76470f47c45dd944a28f01b752ce6e98 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 17 Nov 2017 11:35:10 +0100 Subject: UI: search --- ishtar_common/templates/blocks/JQueryJqGrid.html | 5 +-- .../templates/blocks/bs_form_snippet.html | 50 ++++++++++++---------- .../templates/ishtar/wizard/default_wizard.html | 2 +- ishtar_common/templates/ishtar/wizard/search.html | 4 +- 4 files changed, 33 insertions(+), 28 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/JQueryJqGrid.html b/ishtar_common/templates/blocks/JQueryJqGrid.html index f9548a743..9c18c4399 100644 --- a/ishtar_common/templates/blocks/JQueryJqGrid.html +++ b/ishtar_common/templates/blocks/JQueryJqGrid.html @@ -11,12 +11,11 @@

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

-
+
-

+
diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html index f715c3ece..a6997507c 100644 --- a/ishtar_common/templates/blocks/bs_form_snippet.html +++ b/ishtar_common/templates/blocks/bs_form_snippet.html @@ -3,61 +3,65 @@ -{%endif%} +{% endif %} + {% for hidden in form.hidden_fields %} {{hidden}} {% if field.errors %}
{{ field.errors }}
{% endif %} {% endfor %} + {% for field in form.visible_fields %} -{% if search and forloop.counter0 == 0 %} +{% if field.name == 'pk' %} +{{field}} +{% elif field.name == 'search_vector' and forloop.counter0 == 0 %}
-
+
{{field|safe}}
- {% if field.errors %}
- {{ field.errors }} -
{% endif %} {% if field.help_text %} -
-
- {{field.help_text}} -
+ {% trans 'help'%}{% endif %} + {% if field.errors %} +
+ {{ field.errors }} +
{% endif %} +
+ + + {% if field.help_text %} +
+
+ {{field.help_text}}
- {% endif %}
+ {% endif %}
{% else %} - {% if search and forloop.counter0 == 1 %} -
-
-

- -

-
{% endif %} -{% if search and forloop.counter0|divisibleby:2 or search and forloop.counter1|divisibleby:2 %} +{% if not search and forloop.counter0|divisibleby:2 or search and forloop.counter1|divisibleby:2 %} {% if forloop.counter0 %}
{% endif %}
{% endif %} -
{{ field.label_tag }} {{field|safe}} diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html index 06e8be05a..7ba87c44d 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -5,7 +5,7 @@ {% endblock %} {% block content %} {% block wizard_head %} -

{{wizard_label}}

+

{{wizard_label}}

{% include "ishtar/blocks/wizard_breadcrumb.html" %} diff --git a/ishtar_common/templates/ishtar/wizard/search.html b/ishtar_common/templates/ishtar/wizard/search.html index 7b8f142e4..da7955c26 100644 --- a/ishtar_common/templates/ishtar/wizard/search.html +++ b/ishtar_common/templates/ishtar/wizard/search.html @@ -4,8 +4,9 @@ {{wizard.form.media}} {% endblock %} {% block content %} -

{{wizard_label}}

+

{{wizard_label}}

+{% comment %} +{% endcomment %} {% if wizard.form.forms %}
-- cgit v1.2.3