search_full.html 1.1 KB

1234567891011121314151617181920
  1. {% from 'oscar/macros.html' import icon %}
  2. <form method="{{ method or 'POST' }}" action="{{ url_for('search') }}" id="search_form" role="search">
  3. {% if rtl %}
  4. <div class="input-group">
  5. {% else %}
  6. <div class="input-group col-md-8 col-md-offset-2">
  7. {% endif %}
  8. <input type="search" autofocus name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s">
  9. <span class="input-group-btn">
  10. <button type="submit" class="btn btn-default input-lg" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
  11. <button type="reset" class="btn btn-default input-lg" aria-label="{{ _('Clear search') }}"><span class="hide_if_nojs">{{ icon('remove') }}</span><span class="hidden active_if_nojs">{{ _('Clear') }}</span></button>
  12. </span>
  13. </div>
  14. <div class="col-md-8 col-md-offset-2 advanced">
  15. {% include 'oscar/advanced.html' %}
  16. </div>
  17. </form><!-- / #search_form_full -->