{# 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:action.html.twig' %} {% block title %} {{ "title_edit"|trans({'%name%': admin.toString(object)|truncate(15) }, 'SonataAdminBundle') }} {% endblock %} {% block navbar_title %} {{ block('title') }} {% endblock %} {% block body_attributes %}class="sonata-bc skin-black fixed page-composer-page sonata-ba-no-side-menu"{% endblock %} {% block content %}

{{ 'page.compose_page'|trans({}, 'SonataPageBundle') }} "{{ page.name }}" [{{ 'page.compose_template_label'|trans({}, 'SonataPageBundle') }}: {{ template.name }}]

{% if containers|length == 0 %} {% include 'SonataPageBundle:PageAdmin:compose_hint.html.twig' %} {% else %}
{% for container in containers %} {% if container.block is defined and container.block %}
{{ container.block.name|default(container.area.name) }}
{{ container.block.children|length }} {% transchoice container.block.children|length from 'SonataPageBundle' %}page.compose_blocks_label{% endtranschoice %}
{% else %}
{{ container.area.name }}
{% endif %} {% endfor %}
{% if orphanContainers|length > 0 %} {% endif %}
{% endif %}
{% endblock %}