app/views/backend/user/form.volt: only show "Send activation email" button for suspended users.
This commit is contained in:
parent
8048b3fda8
commit
d3e52269cd
1 changed files with 3 additions and 0 deletions
|
|
@ -56,9 +56,12 @@
|
||||||
{% 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">
|
||||||
|
|
||||||
|
{% if user.isSuspended() %}
|
||||||
<a class="button button-info" href="{{ url(['for': 'backend-user-activation-email', 'id': user.getId() ]) }}">
|
<a class="button button-info" href="{{ url(['for': 'backend-user-activation-email', 'id': user.getId() ]) }}">
|
||||||
Send activation email
|
Send activation email
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for label, status in actions %}
|
{% for label, status in actions %}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue