diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-22 18:20:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 18:20:33 +0200 |
commit | 12c90a1b47356fbc3f7616d805ab9040bdaa7a10 (patch) | |
tree | ef4c95c65634bde194b0e494be877c94c3b62af9 | |
parent | b04b7e6fb57dd76658dc95cf0746f279f59eff06 (diff) | |
parent | 575483ad2a6af330335bc3864261109fbbc322d8 (diff) | |
download | searxng-12c90a1b47356fbc3f7616d805ab9040bdaa7a10.tar.gz searxng-12c90a1b47356fbc3f7616d805ab9040bdaa7a10.zip |
Merge pull request #336 from MrPaulBlack/simple-search-form
[theme] remove categories, language and time range from index.html
-rw-r--r-- | searx/templates/simple/index.html | 2 | ||||
-rw-r--r-- | searx/templates/simple/simple_search.html | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/searx/templates/simple/index.html b/searx/templates/simple/index.html index 4e8e76cce..afa62be13 100644 --- a/searx/templates/simple/index.html +++ b/searx/templates/simple/index.html @@ -7,6 +7,6 @@ <nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon('navicon-round') }}</a></nav> <div class="index"> <div class="title"><h1>searx</h1></div> - {% include 'simple/search.html' %} + {% include 'simple/simple_search.html' %} </div> {% endblock %} diff --git a/searx/templates/simple/simple_search.html b/searx/templates/simple/simple_search.html new file mode 100644 index 000000000..3d0e11834 --- /dev/null +++ b/searx/templates/simple/simple_search.html @@ -0,0 +1,9 @@ +<form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}"> + <div id="search_wrapper"> + <div class="search_box"> + <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} > + <button id="clear_search" type="button" tabindex="-1"><span class="hide_if_nojs">{{ icon('close') }}</span><span class="show_if_nojs">{{ _('Clear search') }}</span></button> + <button id="send_search" type="submit" tabindex="-1"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="show_if_nojs">{{ _('Start search') }}</span></button> + </div> + </div> +</form> |