{% endif %}
{% if user.is_active or user.deactivation_reason == "pending" %}
{% else %}
{% endif %}
{% if user.local %}
{% trans "Permanently delete user" as button_text %}
{% include "snippets/toggle/open_button.html" with controls_text="delete_user" text=button_text class="is-danger is-light" %}
{% endif %}
{% if user.local %}
{% include "user_admin/delete_user_form.html" with controls_text="delete_user" class="mt-2 mb-2" %}