From 693c2cbd884d5aa045d4ae2ae7ec005940d8321e Mon Sep 17 00:00:00 2001
From: Étienne Loks
Date: Wed, 16 Mar 2016 20:10:54 +0100
Subject: Show / hide advanced search (refs #3069)
---
.../templates/blocks/form_flex_snippet.html | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
(limited to 'ishtar_common/templates/blocks/form_flex_snippet.html')
diff --git a/ishtar_common/templates/blocks/form_flex_snippet.html b/ishtar_common/templates/blocks/form_flex_snippet.html
index 03d8b15f0..97ac37b44 100644
--- a/ishtar_common/templates/blocks/form_flex_snippet.html
+++ b/ishtar_common/templates/blocks/form_flex_snippet.html
@@ -1,14 +1,25 @@
{% load i18n %}
-
{%endif%}
+ {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
+ {% for field in form.visible_fields %}
+{% if forloop.counter0 == 0 %}
+
+{% trans "Show / hide advanced search" %}
+
+{% endif %}
+{% endfor %}
--
cgit v1.2.3