search.html 1.6 KB

123456789101112131415161718192021222324
  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 'simple/searxng-wordmark.min.svg' without context %}
  6. </a>
  7. <div id="search_view">
  8. <div class="search_box">
  9. <input id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" autocapitalize="none" spellcheck="false" autocorrect="off" dir="auto" value="{{ q or '' }}">
  10. <button id="clear_search" type="reset" aria-label="{{ _('clear') }}" class="hide_if_nojs"><span>{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button>
  11. <button id="send_search" type="submit" {%- if search_on_category_select -%}name="category_{{ selected_categories[0]|replace(' ', '_') }}"{%- endif -%} aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button>
  12. </div>
  13. </div>
  14. {% set display_tooltip = true %}
  15. {% include 'simple/categories.html' %}
  16. </div>
  17. <div class="search_filters">
  18. {% include 'simple/filters/languages.html' %}
  19. {% include 'simple/filters/time_range.html' %}
  20. {% include 'simple/filters/safesearch.html' %}
  21. </div>
  22. <input type="hidden" name="theme" value="{{ theme }}" >
  23. {% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
  24. </form>