1
0
Fork 0

feat: button in admin view to manually activate pending user

This commit is contained in:
Dustin Steiner 2023-01-27 15:43:34 +00:00
parent 48ac90a984
commit 07f4300176
No known key found for this signature in database
GPG key ID: 918D51522D8CB8F2
5 changed files with 28 additions and 3 deletions

View file

@ -15,6 +15,12 @@
</p>
{% endif %}
{% if not user.is_active and user.deactivation_reason == "pending" %}
<form name="suspend" method="post" action="{% url 'settings-activate-user' user.id %}" class="mr-1">
{% csrf_token %}
<button type="submit" class="button is-success is-light">{% trans "Activate user" %}</button>
</form>
{% endif %}
{% if user.is_active or user.deactivation_reason == "pending" %}
<form name="suspend" method="post" action="{% url 'settings-report-suspend' user.id %}" class="mr-1">
{% csrf_token %}