2022-05-03 23:28:20 +02:00
|
|
|
<form class="input-field nav-panel-item nav-panel-search" style="display: none" name="search" method="GET" action="{{ path('search') }}">
|
2016-11-04 23:24:43 +01:00
|
|
|
{% if form_errors(form) %}
|
|
|
|
<span class="black-text">{{ form_errors(form) }}</span>
|
|
|
|
{% endif %}
|
2020-11-11 14:52:20 +01:00
|
|
|
<button type="submit" class="nav-form-button" aria-label="search"><i class="material-icons search" aria-hidden="true"></i></button>
|
2016-11-04 23:24:43 +01:00
|
|
|
|
|
|
|
{% if form_errors(form.term) %}
|
|
|
|
<span class="black-text">{{ form_errors(form.term) }}</span>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-11-10 15:23:53 +01:00
|
|
|
<input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
|
|
|
|
|
2022-05-03 23:28:20 +02:00
|
|
|
{{ form_widget(form.term, {'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'}}) }}
|
2020-11-11 14:52:20 +01:00
|
|
|
<i class="material-icons close" aria-label="clear" role="button"></i>
|
2016-11-04 23:24:43 +01:00
|
|
|
|
|
|
|
{{ form_rest(form) }}
|
|
|
|
</form>
|