Show disabled trash icon instead of not showing it at all
This commit is contained in:
@@ -112,11 +112,9 @@
|
||||
<a href="#" class="admin-role toggle-admin-role ${'remove' if is_instuctor else 'add'}-admin-role">${_("Remove Admin Access") if is_instuctor else _("Add Admin Access")}</a>
|
||||
% endif
|
||||
</li>
|
||||
% if request.user.id != user.id: ## can't remove yourself
|
||||
<li class="action action-delete">
|
||||
<li class="action action-delete ${"is-disabled" if request.user.id == user.id else ""}">
|
||||
<a href="#" class="delete remove-user action-icon" data-id="${user.email}"><i class="icon-trash"></i><span class="sr">${_("Delete the user, {username}").format(username=user.username)}</span></a>
|
||||
</li>
|
||||
% endif
|
||||
</ul>
|
||||
% endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user