{# 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 _tab_menu = block('tab_menu') %} {% set _content = block('content') %} {% set _title = block('title') %} {% set _breadcrumb = block('breadcrumb') %} {% set _actions = block('actions') %} {% set _navbar_title = block('navbar_title') %} {% set _list_filters_actions = block('list_filters_actions') %} {% block meta_tags %} {% endblock %} {% block stylesheets %} {% for stylesheet in sonata_admin.adminPool.getOption('stylesheets', []) %} {% endfor %} {% endblock %} {% block javascripts %} {% for javascript in sonata_admin.adminPool.getOption('javascripts', []) %} {% endfor %} {% set locale = app.request.locale %} {# localize moment #} {% if locale[:2] != 'en' %} {% endif %} {# localize select2 #} {% if sonata_admin.adminPool.getOption('use_select2') %} {% if locale == 'pt' %}{% set locale = 'pt_PT' %}{% endif %} {# omit default EN locale #} {% if locale[:2] != 'en' %} {% endif %} {% endif %} {% endblock %} {% block sonata_head_title %} {{ '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 %} {% if loop.index != 2 %} > {% endif %} {{ menu.label }} {% endif %} {% endfor %} {% endif %} {% endif%} {% endblock %}
{% block sonata_header %}
{% block sonata_header_noscript_warning %} {% endblock %} {% block logo %} {% spaceless %} {% endspaceless %} {% endblock %} {% block sonata_nav %} {% endblock sonata_nav %}
{% endblock sonata_header %} {% block sonata_wrapper %} {% block sonata_left_side %} {% endblock sonata_left_side %}
{% block sonata_page_content %}
{% block sonata_page_content_header %} {% block sonata_page_content_nav %} {% if _tab_menu is not empty or _actions is not empty or _list_filters_actions is not empty %} {% endif %} {% endblock sonata_page_content_nav %} {% endblock sonata_page_content_header %}
{% block sonata_admin_content %} {% block notice %} {% include 'SonataCoreBundle:FlashMessage:render.html.twig' %} {% endblock notice %} {% 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 %} {% if _list_filters|trim %}
{{ _list_filters|raw }}
{% endif %}
{{ _list_table|raw }}
{% endif %} {% endblock sonata_admin_content %}
{% endblock sonata_page_content %}
{% endblock sonata_wrapper %}
{% if sonata_admin.adminPool.getOption('use_bootlint') %} {% block bootlint %} {# Bootlint - https://github.com/twbs/bootlint#in-the-browser #} {% endblock %} {% endif %}