{# 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 base_template %} {% block actions %}
{% if admin.hasRoute('edit') and admin.isGranted('EDIT', object)%} {{ 'link_action_edit'|trans({}, 'SonataAdminBundle') }} {% endif %} {% if admin.hasroute('history') and admin.id(object) and admin.isGranted('EDIT', object) %} {{ 'link_action_history'|trans({}, 'SonataAdminBundle') }} {% endif %} {% include 'SonataAdminBundle:Core:create_button.html.twig' %} {% if admin.hasroute('list') and admin.isGranted('LIST')%} {{ 'link_action_list'|trans({}, 'SonataAdminBundle') }} {% endif %}
{% endblock %} {% block side_menu %}{{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active'}, 'list') }}{% endblock %} {% block show %}
{% for name, view_group in admin.showgroups %} {% if name %} {% endif %} {% for field_name in view_group.fields %} {% if elements[field_name] is defined %} {{ elements[field_name]|render_view_element(object) }} {% endif %} {% endfor %}
{{ admin.trans(name) }}
{% endfor %}
{% endblock %}