feat: disable/block teamer users as admin

This commit is contained in:
Björn Fromme
2025-07-22 17:11:39 +02:00
parent 0fc7684fc7
commit ea574427fb
10 changed files with 300 additions and 6 deletions
@@ -0,0 +1,19 @@
{% extends 'htmx_modal.html.twig' %}
{% block title %}Benutzeraccount sperren{% endblock %}
{% block content %}
{{ form_start(form) }}
<h2 class="font-bold text-lg pb-4">
Teamer:in {{ teamer }}
</h2>
<div class="flex flex-col space-y-4 pb-4">
{{ form_row(form.disabledReason) }}
{{ form_row(form.disabledReasonInternal) }}
</div>
<button type="submit" class="btn bg-red-500 text-white">
Sperren
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}
@@ -0,0 +1,10 @@
{% extends 'htmx_confirmation_modal.html.twig' %}
{% block content %}
<div class="pb-4">
Möchtest du den Benutzeraccount von <em>{{ teamer }}</em> wirklich reaktivieren?
</div>
<div>
Der Grund der Sperrung war: <em>{{ teamer.user.disabledReasonInternal ?? teamer.user.disabledReason }}</em>
</div>
{% endblock %}