72 lines
2.7 KiB
Twig
72 lines
2.7 KiB
Twig
{% extends 'admin/layout.html.twig' %}
|
|
|
|
{% block title %}Teamerübersicht{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Teamerübersicht
|
|
</h1>
|
|
<div class="data-table-wrapper">
|
|
<div class="data-table-wrapper__inner">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Name', 'teamer.lastName') }}
|
|
</th>
|
|
<th>
|
|
Vorname
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Status', 'teamer.status') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'E-Mail', 'teamer.communication.email') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Letzter Login', 'teamer.lastLoginAt') }}
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for teamer in pagination %}
|
|
<tr>
|
|
<td>
|
|
<a href="#" class="whitespace-nowrap">
|
|
{{ teamer.lastName }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="#" class="whitespace-nowrap">
|
|
{{ teamer.firstName }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{{ teamer.status|teamer_status_label }}
|
|
</td>
|
|
<td>
|
|
{{ teamer.communication.email }}
|
|
</td>
|
|
<td>
|
|
{% if teamer.user.lastLoginAt is not null %}
|
|
{{ teamer.user.lastLoginAt | date('d.m.Y') }}
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<div class="flex items-center space-x-1 justify-end">
|
|
<a href="{{ path('app_admin_teamer_profile', { 'uuid': teamer.uuid }) }}" title="Teamerprofil {{ teamer }}">
|
|
{{ icon('user') }}
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{{ knp_pagination_render(pagination) }}
|
|
</div>
|
|
</div>
|
|
{% endblock %} |