{# 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') %} {% set _actions = block('actions') %} {% block stylesheets %} {% if admin_pool is defined and admin_pool.getOption('use_select2') %} {% endif %} {% endblock %} {% block javascripts %} {% if admin_pool is defined and admin_pool.getOption('use_select2') %} {% endif %} {% if admin_pool is defined and admin_pool.getOption('confirm_exit') %}{% endif %} {% 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 sonata_nav %} {% endblock sonata_nav %}
{% block sonata_page_content %} {% block notice %} {% include 'SonataCoreBundle:FlashMessage:render.html.twig' %} {% endblock %}
{% block sonata_breadcrumb %} {% if _breadcrumb is not empty or action is defined %}
{% endif %} {% endblock sonata_breadcrumb %} {% if _actions is not empty %}
{{ _actions|raw }}
{% endif %}
{% if _side_menu is not empty %} {% endif %}
{% block sonata_admin_content %} {% if _preview is not empty %}
{{ _preview|raw }}
{% endif %} {% if _content is not empty %}
{{ _content|raw }}
{% endif %} {% if _show is not empty %}
{{ _show|raw }}
{% endif %} {% if _form is not empty %}
{{ _form|raw }}
{% endif %} {% if _list_table is not empty or _list_filters is not empty %}
{{ _list_table|raw }}
{% if _list_filters|trim %}
{{ _list_filters|raw }}
{% endif %}
{% endif %} {% endblock %}
{% block footer %} {% endblock %} {% endblock %}