{# 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 'SonataBlockBundle:Block:block_base.html.twig' %} {% block block %} {% for group in groups %} {% for admin in group.items %} {% if admin.hasroute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %} {% endif %} {% endfor %}
{{ group.label|trans({}, group.label_catalogue) }}
{{ admin.label|trans({}, admin.translationdomain) }} {% if admin.hasroute('create') and admin.isGranted('CREATE') %} {%- trans from 'SonataAdminBundle' %}link_add{% endtrans -%} {%- trans from 'SonataAdminBundle' %}link_add{% endtrans -%} {% endif %} {% if admin.hasroute('list') and admin.isGranted('LIST') %} {%- trans from 'SonataAdminBundle' %}link_list{% endtrans -%} {%- trans from 'SonataAdminBundle' %}link_list{% endtrans -%} {% endif %}
{% endfor %} {% endblock %}