aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/_menu.twig1
-rw-r--r--themes/default/_search-form.twig23
-rwxr-xr-xthemes/default/home.twig21
3 files changed, 24 insertions, 21 deletions
diff --git a/themes/default/_menu.twig b/themes/default/_menu.twig
index e2644b0f..0e7dd0a7 100644
--- a/themes/default/_menu.twig
+++ b/themes/default/_menu.twig
@@ -9,4 +9,5 @@
9 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> 9 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
10 </ul> 10 </ul>
11 {% include '_pocheit-form.twig' %} 11 {% include '_pocheit-form.twig' %}
12 {% include '_search-form.twig' %}
12 13
diff --git a/themes/default/_search-form.twig b/themes/default/_search-form.twig
new file mode 100644
index 00000000..74f420d0
--- /dev/null
+++ b/themes/default/_search-form.twig
@@ -0,0 +1,23 @@
1<div id="search-form" class="messages info">
2<form method="get" action="index.php">
3 <p>
4 <input type="hidden" name="view" value="search"></input>
5 <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" />
6 <input type="submit" value="{% trans "Search" %} !"></input>
7 </p>
8</form>
9</div>
10<script type="text/javascript">
11 $(document).ready(function() {
12
13 $("#search-form").hide();
14
15 $("#search").click(function(){
16 $("#search-form").toggle();
17 $("#search").toggleClass("current");
18 $("#search-arrow").toggleClass("arrow-down");
19 });
20
21
22 });
23</script> \ No newline at end of file
diff --git a/themes/default/home.twig b/themes/default/home.twig
index e3e8c6af..b6185df1 100755
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -12,28 +12,7 @@
12{% include '_menu.twig' %} 12{% include '_menu.twig' %}
13{% endblock %} 13{% endblock %}
14{% block precontent %} 14{% block precontent %}
15<div id="search-form" class="messages info">
16<form method="post" action="index.php?view=search">
17 <p>
18 <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" />
19 <input type="submit" value="{% trans "Search" %} !"></input>
20 </p>
21</form>
22</div>
23<script type="text/javascript">
24 $(document).ready(function() {
25 15
26 $("#search-form").hide();
27
28 $("#search").click(function(){
29 $("#search-form").toggle();
30 $("#search").toggleClass("current");
31 $("#search-arrow").toggleClass("arrow-down");
32 });
33
34
35 });
36</script>
37{% include '_sorting.twig' %} 16{% include '_sorting.twig' %}
38{% endblock %} 17{% endblock %}
39{% block content %} 18{% block content %}