forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-27 22:07:27 -06:00
parent dc9808ddeb
commit a9e712b27c
1 changed files with 35 additions and 30 deletions

View File

@ -8,6 +8,9 @@
Manage User
</h2>
<ul class="flex flex-col mt-3 mb-0 space-y-6">
<li>
<div class="label text-black dark:text-gray-200">Attributes</div>
<ul class="flex flex-col mb-0 space-y-2">
<li class="flex space-x-2">
<input type="checkbox" value="verify" class="w-5 h-5" onchange="verifyBadge(this,'{{u.id}}')" {% if u.verified %}checked{% endif %}>
<div>
@ -35,8 +38,10 @@
</small>
</div>
</li>
</ul>
</li>
<li>
<div class="label">Custom flair</div>
<div class="label text-black dark:text-gray-200">Custom flair</div>
<form id="sidebar-flair-change" action="/admin/title_change/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<div class="flex items-center space-x-2 mb-2">
@ -72,7 +77,7 @@
<ul class="flex flex-col mt-3 mb-0 space-y-6">
<li>
{% if u.is_suspended %}
<div class="label">Unban {{ u.username }}</div>
<div class="label text-black dark:text-gray-200">Unban {{ u.username }}</div>
<form id="sidebar-unban" action="/unban_user/{{u.id}}" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="hidden" name="redir" value="true">
@ -91,7 +96,7 @@
</button>
</form>
{% else %}
<div class="label">Ban {{ u.username }}</div>
<div class="label text-black dark:text-gray-200">Ban {{ u.username }}</div>
<form id="sidebar-ban" action="/ban_user/{{u.id}}/" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="redir" value="true">
@ -116,7 +121,7 @@
{% endif %}
{% if v.admin_level > 2 %}
<li>
<div class="label">Admin persmissions</div>
<div class="label text-black dark:text-gray-200">Admin persmissions</div>
<button class="btn btn-red w-full" onclick="postToast('/@{{u.username}}/remove_admin'); this.disabled = true">
<i class="fas fa-user-slash fa-sm fa-fw mr-2"></i>
Revoke admin permissions