search.html 1.3 KB

123456789101112131415161718192021
  1. <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
  2. <a id="search_logo" href="{{ url_for('index') }}">
  3. <img class="search_logo_img" src="{{ url_for('static', filename='img/favicon.png') }}">
  4. </a>
  5. <div id="search_wrapper">
  6. <div class="search_box">
  7. <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} >
  8. <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>
  9. <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>
  10. </div>
  11. <div class="search_filters">
  12. {% include 'simple/languages.html' %}
  13. {% include 'simple/time-range.html' %}
  14. </div>
  15. </div>
  16. {% set display_tooltip = true %}
  17. {% include 'simple/categories.html' %}
  18. <input type="hidden" name="safesearch" value="{{ safesearch }}" >
  19. <input type="hidden" name="theme" value="{{ theme }}" >
  20. {% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
  21. </form>