{% extends "@admin/pages/user.html.twig" %} {% block body_matter %} {% block group_box %} {% endblock %}
{% block user_box %}

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

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

{{user.full_name}}

{% if user.flag_enabled == 0 %} {% endif %} {% if user.flag_verified == 0 %} {% endif %}

{{user.user_name}}{% if 'group' not in fields.hidden and user.group.name is not null %} • {{user.group.name}}{% endif %}

{% if 'email' not in fields.hidden %}
{{translate("EMAIL")}}

{{user.email}}

{% endif %} {% if 'locale' not in fields.hidden %}
{{translate("LOCALE")}}

{{locales[user.locale]}}

{% endif %} {% block user_profile %}{% endblock %} {% if 'roles' not in fields.hidden %}
{{translate("ROLE", 2)}}

{% for role in user.roles %} {{role.name}} {% endfor %}

{% endif %}
{% endblock %} {% block organisations_box %}

{{translate('USER.ORGANISATIONS')}}

{% for organisation in user.organisations %}

{{organisation.name}}
{{organisation.description}}
{% if checkAccess('update_user_field', { 'user' : user, 'fields' : ['organisations'] }) or hasRole('organisations-admin') -%}
{% endif -%}

{% endfor %} {% for organisation in user.pendingOrganisations %}
{{organisation.name}}
{{organisation.description}}
{% if checkAccess('update_user_field', { 'user' : user, 'fields' : ['organisations'] }) or hasRole('organisations-admin') -%}
{% endif -%}

{% endfor %}

{% endblock %}
{% if 'activities' not in widgets.hidden %}
{% block activity_box %}

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

{% include "tables/table-tool-menu.html.twig" %}
{% include "tables/activities.html.twig" with { "table" : { "id" : "table-user-activities" } } %}
{% endblock %}
{% endif %}
{% if 'permissions' not in widgets.hidden %}

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

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