edit_button.html.twig 565 B

12345678910111213141516171819
  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.canAccessObject('edit', object) and admin.hasRoute('edit') %}
  8. <li>
  9. <a class="sonata-action-element" href="{{ admin.generateObjectUrl('edit', object) }}">
  10. <i class="fa fa-edit" aria-hidden="true"></i>
  11. {{ 'link_action_edit'|trans({}, 'SonataAdminBundle') }}
  12. </a>
  13. </li>
  14. {% endif %}