{# 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 stylesheets %} {% endblock %} {% block javascripts %} {% endblock %} {% trans from 'SonataAdminBundle' %}Admin{% endtrans %} {% if _title is not empty %} {{ _title|raw }} {% else %} {% if action is defined %} - {% for label, uri in admin.breadcrumbs(action) %} {% if not loop.first %} > {% endif %} {{ label }} {% endfor %} {% endif %} {% endif%} {# initialize block value #}
{% if admin_pool is defined %} {% block logo %} {{ admin_pool.title }} {{ admin_pool.title }} {% endblock %}

{% include admin_pool.getTemplate('user_block') %}

{% endif %}
{% if _breadcrumb is not empty or action is defined %} {% endif %} {% block notice %} {% for notice_level in ['success','error','info', 'warning'] %} {% set session_var = 'sonata_flash_' ~ notice_level %} {% if app.session.hasFlash(session_var) %}
{{ app.session.flash(session_var) | trans([],'SonataAdminBundle') }} {#×#}
{% endif %} {% endfor %} {% endblock %}
{%block actions %}{% endblock %}
{% if _title is not empty or action is defined %} {% endif%} {% if _side_menu is not empty %} {% endif %}
{% 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_filters|raw }}
{{ _list_table|raw }}
{% endif %} {% block footer %} {% endblock %}