Files
myep-team/templates/admin/system/user/index.html.twig
T

77 lines
2.5 KiB
Twig

{% extends 'admin/layout.html.twig' %}
{% block title %}Administrative Benutzer{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Administrative Benutzer
</h1>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner">
<table class="data-table">
<thead>
<tr>
<th>
Name
</th>
<th>
Vorname
</th>
<th>
E-Mail
</th>
<th>
Rolle(n)
</th>
<th>
Superadmin
</th>
<th>
Letzter Login
</th>
<th></th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>
{{ user.lastName }}
</td>
<td>
{{ user.firstName }}
</td>
<td>
{{ user.email }}
</td>
<td>
{{ user.rolesLabels|join(', ') }}
</td>
<td class="text-center">
{% if user.superAdmin %}
{{ icon('check', 'w-4 h-4 inline-block') }}
{% endif %}
</td>
<td>
{{ user.lastLoginAt ? user.lastLoginAt|date('d.m.Y, H:i') : '-' }}
</td>
<td>
{% if is_granted('CAN_IMPERSONATE', user) %}
<a href="{{ path('app_index', { '_switch_user': user.email }) }}">
{{ icon('mask', 'w-4 h-4') }}
</a>
{% endif %}
</td>
</tr>
{% else %}
<tr>
<td colspan="6">
Keine Daten...
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}