simple_search.html 1.3 KB

12345678910111213141516171819
  1. <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="search">
  2. <div id="search_header">
  3. <div id="search_view">
  4. <div class="search_box">
  5. <input id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" autocapitalize="none" spellcheck="false" autocorrect="off" dir="auto" value="{{ q or '' }}">
  6. <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>
  7. <button id="send_search" type="submit" aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button>
  8. </div>
  9. </div>
  10. </div>
  11. {% for category in selected_categories %}
  12. <input type="hidden" name="category_{{ category }}" value="1" >
  13. {% endfor %}
  14. <input type="hidden" name="language" value="{{ current_language }}" >
  15. <input type="hidden" name="time_range" value="{{ time_range }}" >
  16. <input type="hidden" name="safesearch" value="{{ safesearch }}" >
  17. <input type="hidden" name="theme" value="{{ theme }}" >
  18. {% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
  19. </form>