{% extends "@admin/pages/role.html.twig" %} {% block body_matter %}

{{translate('ROLE.SUMMARY')}}

{% if 'tools' not in tools.hidden %}
{% endif %}

{{role.name}}

{% if 'description' not in fields.hidden %}

{{role.description}}

{% endif %} {% if 'users' not in fields.hidden %}
{{ translate('USER', 2)}}

{{role.users.count}}

{% endif %}
{% if (checkAccess('view_role_field', { property: 'permissions' })) %}

{{translate('PERMISSION', 2)}}

{% include "tables/table-tool-menu.html.twig" %}
{% include "tables/permissions.html.twig" with { "table" : { "id" : "table-role-permissions" } } %}
{% endif %}
{% if (checkAccess('view_role_field', { property: 'users' })) %}

{{translate('USER', 2)}}

{% include "tables/table-tool-menu.html.twig" %}
{% include "tables/users.html.twig" with { "table" : { "id" : "table-role-users", "columns" : ["last_activity"] } } %}
{% endif %}
{% endblock %}