{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% extends 'SonataAdminBundle:CRUD:base_list.html.twig' %} {% block preview %} {% endblock %} {% block list_filters %} {% if admin.datagrid.filters %}
{{ 'label_filters'|trans({}, 'SonataAdminBundle') }}
{% for filter in admin.datagrid.filters %} {% endfor %}
{{ admin.trans(filter.label) }} {{ form_widget(form.children[filter.formName].children['type']) }} {{ form_widget(form.children[filter.formName].children['value']) }}
{% set foo = form.children['_page'].setRendered() %} {{ form_rest(form) }} {{ 'link_reset_filter'|trans({}, 'SonataAdminBundle') }}
{% endif %} {% endblock %}