search.html 1.3 KB

1234567891011121314151617181920212223242526
  1. {% from 'oscar/macros.html' import icon %}
  2. <form method="{{ method or 'POST' }}" action="{{ url_for('search') }}" id="search_form" role="search">
  3. <div class="row">
  4. <div class="col-xs-12 col-md-8">
  5. <div class="input-group search-margin">
  6. <input type="search" autofocus name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s">
  7. <span class="input-group-btn">
  8. <button type="submit" class="btn btn-default" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
  9. <button type="button" id="clear_search" class="btn btn-default hide_if_nojs" aria-label="{{ _('Clear search') }}">{{ icon('remove') }}</button>
  10. </span>
  11. </div>
  12. </div>
  13. <div class="col-xs-6 col-md-2 search-margin">
  14. {%- include 'oscar/time-range.html' -%}
  15. </div>
  16. <div class="col-xs-6 col-md-2 search-margin">
  17. {%- include 'oscar/languages.html' -%}
  18. </div>
  19. </div>
  20. <div class="row">
  21. <div class="col-sm-12">
  22. {%- include 'oscar/categories.html' -%}
  23. </div>
  24. </div>
  25. </form><!-- / #search_form_full -->