{{ 'accounts-note'|text }}

{{ 'accounts'|text }}

{% if user.can('system_account_index') %} {{ 'password-reset-request'|text }} {{ 'request-new-account'|text }} {% endif %} {% if user.can('system_account_insert') %} {{ 'create-new-account'|text }} {% endif %}
{% for account in accounts %} {% endfor %}
# {{ 'photo'|text }} {{ 'name'|text }} {{ 'login'|text }} {{ 'organization'|text }} {{ 'role2'|text }} {{ 'status'|text }} {{ 'action'|text }}
{{ account['id'] }} {% if account['photo'] is not empty %} {% else %} {% endif %} {{ account['first_name'] ~ ' ' ~ account['last_name'] }} {% if account['phone'] is not null and account['phone'] is not empty %}
{{ account['phone'] }}{% endif %}
{{ account['username'] }}
{{ account['email'] }}
{% for org in account['organizations'] %} {{ organizations[org]['name'] }} {% endfor %} {% for role in account['roles'] %} {{ role }} {% endfor %} {{ statuses[account['status']]['title'][localization.code] ?? account['status'] }} {% if account['id'] == user.getAccount()['id'] or user.can('system_account_index') %} {% endif %} {% if account['id'] == user.getAccount()['id'] or (account['id'] != 1 and user.can('system_account_update')) %} {% endif %} {% if account['id'] != user.getAccount()['id'] and account['id'] != 1 and user.can('system_account_delete') %} {% endif %}