2014-09-27 12:33:22 +02:00
|
|
|
{% from 'oscar/macros.html' import icon %}
|
|
|
|
|
|
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" id="search_form" role="search">
|
2015-02-10 15:23:56 +01:00
|
|
|
{% if rtl %}
|
|
|
|
<div class="input-group">
|
|
|
|
{% else %}
|
2014-09-27 12:33:22 +02:00
|
|
|
<div class="input-group col-md-8 col-md-offset-2">
|
2015-02-10 15:23:56 +01:00
|
|
|
{% endif %}
|
2014-11-30 13:21:58 +01:00
|
|
|
<input type="search" name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
|
2014-09-27 12:33:22 +02:00
|
|
|
<span class="input-group-btn">
|
2015-01-15 16:03:30 +01:00
|
|
|
<button type="submit" class="btn btn-default input-lg"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
|
2014-09-27 12:33:22 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2015-01-15 15:48:50 +01:00
|
|
|
<button type="button" class="btn btn-link btn-collapse center-block collapsed hide_if_nojs" data-toggle="collapse" data-target="#search_categories" data-btn-text-collapsed="{{ _('Show search filters') }}" data-btn-text-not-collapsed="{{ _('Hide search filters') }}">{{ _('Show search filters') }}</button>
|
|
|
|
<div class="row collapse active_if_nojs margin_top_if_nojs" id="search_categories">
|
2014-09-27 12:33:22 +02:00
|
|
|
<div class="col-md-12 text-center">
|
|
|
|
{% include 'oscar/categories.html' %}
|
|
|
|
</div>
|
|
|
|
</div><!-- / #search_categories -->
|
|
|
|
</form><!-- / #search_form_full -->
|