{% form_theme form '@SyliusShop/Form/theme.html.twig' %}

<div>
    {{ form_start(form, {'action': path('monsieurbiz_sylius_search_post'), 'method': 'POST', 'attr': {'class': 'ui search item autocomplete-search'}}) }}
    {{ form_errors(form) }}

    <div class="dropdown">
        <div class="input-group input-search">
            {{ form_widget(form.query, {'value': query, 'attr': {'placeholder': 'monsieurbiz_searchplugin.form.query'|trans, 'autocomplete': 'off'} }) }}
            <div class="input-group-append">
                <button class="btn btn-square" type="submit">
                    {% include '@SyliusShop/Icons/search.html.twig' %}
                </button>
            </div>
        </div>
        <div class="dropdown-menu autocomplete-results" style="overflow-y: auto"></div>
    </div>
    {{ form_end(form, {'render_rest': false}) }}
</div>
