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()) %}
|
||||
{% set actions = [ 'Activate': 'Active', 'Suspend': 'Suspended', 'Delete': 'Deleted' ] %}
|
||||
<div class="float-end">
|
||||
|
||||
{% if user.isSuspended() %}
|
||||
<a class="button button-info" href="{{ url(['for': 'backend-user-activation-email', 'id': user.getId() ]) }}">
|
||||
Send activation email
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% for label, status in actions %}
|
||||
|
||||
|
|
|
|||
Reference in a new issue