search.html 1.4 KB

12345678910111213141516171819202122
  1. <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="search">
  2. <div id="search_header">
  3. <a id="search_logo" href="{{ url_for('index') }}" tabindex="0" title="{{ _('Display the front page') }}">
  4. <span hidden>SearXNG</span>
  5. {% include '__common__/searxng-wordmark.min.svg' without context %}
  6. </a>
  7. <div class="search_box">
  8. <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" spellcheck="false" dir="auto" value="{{ q or '' }}">
  9. <button id="clear_search" type="reset" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button>
  10. <button id="send_search" type="submit" aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button>
  11. </div>
  12. {% set display_tooltip = true %}
  13. {% include 'simple/categories.html' %}
  14. </div>
  15. <div class="search_filters">
  16. {% include 'simple/filters/languages.html' %}
  17. {% include 'simple/filters/time_range.html' %}
  18. {% include 'simple/filters/safesearch.html' %}
  19. </div>
  20. <input type="hidden" name="theme" value="{{ theme }}" >
  21. {% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
  22. </form>