Archived
1
0
Fork 0

app/views/backend/user/form.volt: Add button for sending activation email.

# Conflicts:
#	app/views/backend/user/form.volt
This commit is contained in:
Henrik Hautakoski 2022-08-27 13:08:29 +02:00
parent 14eb4a9137
commit 0f5f42ca92

View file

@ -56,6 +56,10 @@
{% if (user.getId()) %} {% if (user.getId()) %}
{% set actions = [ 'Activate': 'Active', 'Suspend': 'Suspended', 'Delete': 'Deleted' ] %} {% set actions = [ 'Activate': 'Active', 'Suspend': 'Suspended', 'Delete': 'Deleted' ] %}
<div class="float-end"> <div class="float-end">
<a class="button button-info" href="{{ url(['for': 'backend-user-activation-email', 'id': user.getId() ]) }}">
Send activation email
</a>
{% for label, status in actions %} {% for label, status in actions %}
{% if (user.status != status) %} {% if (user.status != status) %}