{# 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 'admin/base_edit.html.twig' %} {% block formactions %}
{% block sonata_form_actions %} {% if app.request.isxmlhttprequest %} {# NEXT_MAJOR: remove default filter #} {% if objectId|default(admin.id(object)) is not null %} {% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %} {{ 'delete_or'|trans({}, 'SonataAdminBundle') }} {{ 'link_delete'|trans({}, 'SonataAdminBundle') }} {% endif %} {% else %} {% endif %} {% else %} {% if admin.supportsPreviewMode %} {% endif %} {# NEXT_MAJOR: remove default filter #} {% if objectId|default(admin.id(object)) is not null %} {% if admin.hasRoute('list') and admin.hasAccess('list') %} {% endif %} {% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %} {{ 'delete_or'|trans({}, 'SonataAdminBundle') }} {{ 'link_delete'|trans({}, 'SonataAdminBundle') }} {% endif %} {% if admin.isAclEnabled() and admin.hasRoute('acl') and admin.hasAccess('acl', object) %} {# {{ 'link_edit_acl'|trans({}, 'SonataAdminBundle') }}#} {% endif %} {% else %} {% if admin.hasroute('edit') and admin.hasAccess('edit') %} {% endif %} {% if admin.hasroute('list') and admin.hasAccess('list') %} {% endif %} {% endif %} {% endif %} {% endblock %}
{% endblock formactions %}