{% form_theme filters_form with easyadmin_config('design.form_theme') only %}

{{ form_start(filters_form, { attr: {'id': filters_form.vars.id} }) }}
    {% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %}

    <input type="hidden" name="action" value="{{ referer_action }}">
    <input type="hidden" name="entity" value="{{ _entity_config.name }}">
    <input type="hidden" name="menuIndex" value="{{ app.request.get('menuIndex') }}">
    <input type="hidden" name="submenuIndex" value="{{ app.request.get('submenuIndex') }}">
    <input type="hidden" name="sortField" value="{{ app.request.get('sortField', '') }}">
    <input type="hidden" name="sortDirection" value="{{ app.request.get('sortDirection', 'DESC') }}">

    {% if 'search' == referer_action %}
    <input type="hidden" name="query" value="{{ app.request.get('query') }}">
    {% endif %}

    {{ form_widget(filters_form) }}
{{ form_end(filters_form) }}
