Incorporate the permanent user deletion sprinkle
This commit is contained in:
24
templates/tables/columns/deleted_users-actions.html.twig
Normal file
24
templates/tables/columns/deleted_users-actions.html.twig
Normal file
@@ -0,0 +1,24 @@
|
||||
<script id="{{table.id}}-column-actions" type="text/x-handlebars-template">
|
||||
{% verbatim %}
|
||||
<td class="uf-table-fit-width">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
{% endverbatim %}{{translate("ACTIONS")}}{% verbatim %}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
||||
<li>
|
||||
<a href="#" data-user_name="{{row.user_name}}" class="js-user-restore">
|
||||
<i class="fas fa-trash-restore"></i> {% endverbatim %}{{translate("USER.RESTORE_DELETED")}}{% verbatim %}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-user_name="{{row.user_name}}" class="js-user-permanentDelete">
|
||||
<i class="fas fa-trash-alt"></i> {% endverbatim %}{{translate("USER.PERMANENT_DELETE")}}{% verbatim %}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
{% endverbatim %}
|
||||
</script>
|
||||
5
templates/tables/deleted-users.html.twig
Normal file
5
templates/tables/deleted-users.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "@uf-tweaks/tables/users.html.twig" %}
|
||||
|
||||
{% block table_users_column_actions %}
|
||||
{% include "tables/columns/deleted_users-actions.html.twig" %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user