Incorporate the permanent user deletion sprinkle

This commit is contained in:
bwilliams committed 2023-07-25 14:21:42 +01:00
1 parent 243987382a
commit 50b8e02839
18 files changed
+934 -66

No files matched your search

@@ -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
View 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 %}