wallabag/templates/Entry/search_form.html.twig

18 lines
804 B
Twig
Raw Normal View History

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