22 строки
946 B
HTML
22 строки
946 B
HTML
{% set search_form = SimpleSearchForm(request, search_cat) %}
|
|
<form id="search" action="{{ url('search.search') }}">
|
|
<span class="wrap">
|
|
<input id="search-q" type="text" name="q" autocomplete="off" title=""
|
|
class="text {% if not search_form.q.data %}placeholder{% endif %}"
|
|
placeholder="{{ search_form.placeholder(search_placeholder) }}"
|
|
value="{{ query.q if query else '' }}">
|
|
{% if search_form.cat.value() %}
|
|
{{ search_form.cat }}
|
|
{% endif %}
|
|
{{ search_form.appver }}
|
|
{{ search_form.platform }}
|
|
</span>
|
|
<input id="search-button" type="image" class="submit search-button" title="{{ _('Search') }}"
|
|
src="{{ media('img/zamboni/global/btn-search.png') }}">
|
|
{% if search_cat != 'collections' %}
|
|
<div id="site-search-suggestions"
|
|
data-cat="{{ search_placeholder or search_cat }}"
|
|
data-src="{{ url('search.suggestions') }}"></div>
|
|
{% endif %}
|
|
</form>
|