feat: demotion of user accounts via crm

This commit is contained in:
Björn Fromme
2026-08-10 13:01:01 +02:00
parent b01c2e84c7
commit b39a78da82
11 changed files with 240 additions and 3 deletions
@@ -3,6 +3,8 @@
{{ form_row(form.roles) }}
{{ form_row(form.superAdmin) }}
{{ form_row(form.hotelCodes) }}
{{ form_row(form.disabled) }}
{{ form_row(form.disabledReason) }}
</div>
<div class="flex items-center space-x-2">
<button type="submit" class="btn">
+11 -1
View File
@@ -26,6 +26,9 @@
<th>
Superadmin
</th>
<th>
Status
</th>
<th>
Letzter Login
</th>
@@ -52,6 +55,13 @@
{{ icon('check', 'w-4 h-4 inline-block') }}
{% endif %}
</td>
<td>
{% if user.disabled %}
<span class="inline-block py-1 px-2 text-xs bg-red-500 text-white">
gesp. am {{ user.disabledAt|date('d.m.Y') }}
</span>
{% endif %}
</td>
<td>
{{ user.lastLoginAt ? user.lastLoginAt|date('d.m.Y, H:i') : '-' }}
</td>
@@ -72,7 +82,7 @@
</tr>
{% else %}
<tr>
<td colspan="7">
<td colspan="8">
Keine Daten...
</td>
</tr>