{# 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 sonata_block.templates.block_base %} {% block block %} {% for group in groups %} {% set display = (group.roles is empty or is_granted('ROLE_SUPER_ADMIN') ) %} {% for role in group.roles if not display %} {% set display = is_granted(role)%} {% endfor %} {% if display %}

{{ group.label|trans({}, group.label_catalogue) }}

{% for admin in group.items %} {% if admin.dashboardActions|length > 0 %} {% endif %} {% endfor %}
{{ admin.label|trans({}, admin.translationdomain) }}
{% for action in admin.dashboardActions %} {% include action.template|default('SonataAdminBundle:CRUD:dashboard__action.html.twig') with {'action': action} %} {% endfor %}
{% endif %} {% endfor %} {% endblock %}