aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig
blob: 0ae8b0b333899a0647a996479f2c3e0ee6a1c6b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<form class="input-field nav-panel-item nav-panel-search" style="display: none" name="search" method="GET" action="{{ path('search')}}">
    {% 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>

    {% 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'} }) }}
    <i class="material-icons close" aria-label="clear" role="button"></i>

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