{# 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 title %} {% if admin.id(object) %} {{ "title_edit"|trans({'%name%': admin.toString(object) }, 'SonataAdminBundle') }} {% else %} {{ "title_create"|trans({}, 'SonataAdminBundle') }} {% endif %} {% endblock%} {% block actions %}
{% if admin.hasroute('show') and admin.id(object) and admin.isGranted('VIEW', object) and admin.show|length > 0 %} {{ 'link_action_show'|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 %} {% use 'SonataAdminBundle:CRUD:base_edit_form.html.twig' with form as parentForm %} {% block form %} {{ block('parentForm') }} {% endblock %}