feat: disable/block teamer users as admin
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user