list__action_delete.html.twig 583 B

1234567891011121314151617
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% if admin.isGranted('DELETE', object) and admin.hasRoute('delete') %}
  8. <a href="{{ admin.generateObjectUrl('delete', object) }}" class="btn btn-sm btn-default delete_link" title="{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}">
  9. <i class="fa fa-times"></i>
  10. {{ 'action_delete'|trans({}, 'SonataAdminBundle') }}
  11. </a>
  12. {% endif %}