diff options
author | tcit <tcit@tcit.fr> | 2014-03-22 11:09:18 +0100 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-03-22 11:09:18 +0100 |
commit | a33a3d2afb6a861e194599973e31e5e448617296 (patch) | |
tree | a8c846472db8fabe7cadbaad0f87bb420ce228ae /themes/default/home.twig | |
parent | 028e34b6c40c3571d35c49d5a27b7eac19ceb4ef (diff) | |
download | wallabag-a33a3d2afb6a861e194599973e31e5e448617296.tar.gz wallabag-a33a3d2afb6a861e194599973e31e5e448617296.tar.zst wallabag-a33a3d2afb6a861e194599973e31e5e448617296.zip |
Implemented rudimental search engine
Diffstat (limited to 'themes/default/home.twig')
-rwxr-xr-x | themes/default/home.twig | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/themes/default/home.twig b/themes/default/home.twig index bd5fc2d6..e3e8c6af 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -12,7 +12,29 @@ | |||
12 | {% include '_menu.twig' %} | 12 | {% include '_menu.twig' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | {% block precontent %} | 14 | {% block precontent %} |
15 | {% include '_sorting.twig' %} | 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 | |||
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 | {% endblock %} | 38 | {% endblock %} |
17 | {% block content %} | 39 | {% block content %} |
18 | {% if tag %} | 40 | {% if tag %} |