{# 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. #} {% set _preview = block('preview') %} {% set _form = block('form') %} {% set _show = block('show') %} {% set _list_table = block('list_table') %} {% set _list_filters = block('list_filters') %} {% set _side_menu = block('side_menu') %} {% set _content = block('content') %} {% set _title = block('title') %} {% set _breadcrumb = block('breadcrumb') %} {% block meta_tags %} {% endblock %} {% block stylesheets %} {% for stylesheet in admin_pool.getOption('stylesheets', []) %} {% endfor %} {% endblock %} {% block javascripts %} {% for javascript in admin_pool.getOption('javascripts', []) %} {% endfor %} {% endblock %} {{ 'Admin'|trans({}, 'SonataAdminBundle') }} {% if _title is not empty %} {{ _title|raw }} {% else %} {% if action is defined %} - {% for menu in admin.breadcrumbs(action) %} {% if not loop.first %} > {% endif %} {{ menu.label }} {% endfor %} {% endif %} {% endif%} {# initialize block value #}
{% block notice %} {% for notice_level in ['success','error','info', 'warning'] %} {% set session_var = 'sonata_flash_' ~ notice_level %} {% for flash in app.session.flashbag.get(session_var) %}
{{ flash|trans([], 'SonataAdminBundle') }}
{% endfor %} {% endfor %} {% endblock %}
{% if _side_menu is not empty %} {% endif %}
{% block sonata_admin_content %} {% if _preview is not empty %}
{{ _preview|raw }}
{% endif %} {% if _list_table is not empty or _list_filters is not empty %}
{{ _list_table|raw }}
{{ _list_filters|raw }}
{% endif %} {% endblock %}