From bcadb6adc502f8c2aeacd4fae8aca34fc748f354 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 22 Jan 2018 12:58:56 +0100 Subject: Put advanced search inside a modal - get a text summary of advanced search --- ishtar_common/templates/base.html | 2 ++ .../templates/blocks/bs_form_snippet.html | 38 ++++++++++++++++++---- 2 files changed, 33 insertions(+), 7 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index fa62acdd2..d5d138bd2 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -32,6 +32,8 @@ var activate_own_search_url = '{% url "activate-own-search" %}'; var activate_all_search_msg = "{% trans 'Searches in the shortcut menu deal with all items.' %}"; var activate_own_search_msg = "{% trans 'Searches in the shortcut menu deal with only your items.' %}"; + var YES = "{% trans 'yes' %}"; + var NO = "{% trans 'no' %}"; {% endcompress %} {% compress css %} diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html index c636465f3..c9716794c 100644 --- a/ishtar_common/templates/blocks/bs_form_snippet.html +++ b/ishtar_common/templates/blocks/bs_form_snippet.html @@ -36,9 +36,10 @@

- +

@@ -50,11 +51,21 @@ {% endif %} + {% else %} {% if search and forloop.counter0 == 1 %} -
-
-
+ {% endif %}
{% endif %} {% endif %} {% endfor %} + +{% if search %} + +{% endif %} -- cgit v1.2.3