base_acl.html.twig 784 B

123456789101112131415161718192021222324252627
  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. {% extends base_template %}
  8. {%- block actions -%}
  9. {% include 'SonataAdminBundle:CRUD:action_buttons.html.twig' %}
  10. {%- endblock -%}
  11. {% import 'SonataAdminBundle:CRUD:base_acl_macro.html.twig' as acl %}
  12. {% block form %}
  13. {% block form_acl_roles %}
  14. {{ acl.render_form(aclRolesForm, permissions, 'td_role', admin, sonata_admin.adminPool, object) }}
  15. {% endblock %}
  16. {% block form_acl_users %}
  17. {{ acl.render_form(aclUsersForm, permissions, 'td_username', admin, sonata_admin.adminPool, object) }}
  18. {% endblock %}
  19. {% endblock %}