feat: admin-managed roles and hotel codes
This commit is contained in:
@@ -22,9 +22,16 @@
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'BusPro Personen Id', 'user.personId') }}
|
||||
</th>
|
||||
<th>
|
||||
Rollen
|
||||
</th>
|
||||
<th>
|
||||
Häuser
|
||||
</th>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Letzter Login', 'user.lastLoginAt') }}
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -39,13 +46,26 @@
|
||||
<td>
|
||||
{{ user.personId | default('-') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ user.roles | map_roles | join(', ') | default('-') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ user.hotelCodes | join(', ') | default('-') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ user.lastLoginAt | date('d.m.Y, H:i') }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<twig:dropdown>
|
||||
<twig:dropdown:hxbutton url="{{ path('app_admin_user_edit', { 'id': user.id, 'r': return_url() }) }}">
|
||||
Berechtigungen bearbeiten
|
||||
</twig:dropdown:hxbutton>
|
||||
</twig:dropdown>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<td colspan="7">
|
||||
{{ filter.isActive ? 'Keine Treffer für diesen Filter.' : 'Keine Daten...' }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{% extends 'htmx_modal_admin.html.twig' %}
|
||||
{% form_theme form 'forms_admin.html.twig' %}
|
||||
|
||||
{% block title %}
|
||||
Berechtigungen
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="pb-4 text-sm text-gray-500">
|
||||
{{ user.email }}
|
||||
</div>
|
||||
{{ form_start(form) }}
|
||||
<div class="grid lg:grid-cols-2 gap-y-4 lg:gap-x-8">
|
||||
{{ form_row(form.roles) }}
|
||||
{{ form_row(form.hotelCodes) }}
|
||||
</div>
|
||||
<div class="flex justify-end pt-8">
|
||||
<button type="submit" class="button button--primary button--small">
|
||||
speichern
|
||||
</button>
|
||||
</div>
|
||||
{{ form_rest(form) }}
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user