{% extends "pages/abstract/dashboard.html.twig" %} {% block stylesheets_page %} {{ assets.css('css/form-widgets') | raw }} {% endblock %} {# Overrides blocks in head of base template #} {% block page_title %}{{translate("ROLE", 2)}} | {{role.name}}{% endblock %} {% block page_description %}{{translate("ROLE.INFO_PAGE", {name: role.name})}}{% endblock %} {% 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 %}

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

{% include "tables/table-tool-menu.html.twig" %}
{% include "tables/permissions.html.twig" with { "table" : { "id" : "table-role-permissions" } } %}

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

{% include "tables/table-tool-menu.html.twig" %}
{% include "tables/users.html.twig" with { "table" : { "id" : "table-role-users", "columns" : ["last_activity"] } } %}
{% endblock %} {% block scripts_page %} {{ assets.js('js/form-widgets') | raw }} {{ assets.js('js/pages/role') | raw }} {% endblock %}