1
0
Fork 0

Merge pull request #2627 from MeecoLabs/admin-manually-activate-user

Button in admin view to manually activate pending user
This commit is contained in:
Mouse Reeve 2023-01-30 09:01:05 -08:00 committed by GitHub
commit 686d5625ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 7 deletions

View file

@ -15,6 +15,12 @@
</p>
{% endif %}
{% if not user.is_active and user.deactivation_reason == "pending" %}
<form name="activate" 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 %}