aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig
blob: f25de94d1cd3b5321452decf7fcce8532ff8e8c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<form name="search" method="GET" action="{{ path('search')}}">
    {% if form_errors(form) %}
        <span class="black-text">{{ form_errors(form) }}</span>
    {% endif %}

    {% if form_errors(form.term) %}
        <span class="black-text">{{ form_errors(form.term) }}</span>
    {% endif %}

    <input type="hidden" name="currentRoute" value="{{ currentRoute }}" />

    {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }}

    {{ form_rest(form) }}
</form>