search.html 1.1 KB

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