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,35 +8,40 @@
Manage User Manage User
</h2> </h2>
<ul class="flex flex-col mt-3 mb-0 space-y-6"> <ul class="flex flex-col mt-3 mb-0 space-y-6">
<li class="flex space-x-2"> <li>
<input type="checkbox" value="verify" class="w-5 h-5" onchange="verifyBadge(this,'{{u.id}}')" {% if u.verified %}checked{% endif %}> <div class="label text-black dark:text-gray-200">Attributes</div>
<div> <ul class="flex flex-col mb-0 space-y-2">
<label class="label mb-0" for="verify">Verify</label> <li class="flex space-x-2">
<small class="block text-gray-600 dark:text-gray-400"> <input type="checkbox" value="verify" class="w-5 h-5" onchange="verifyBadge(this,'{{u.id}}')" {% if u.verified %}checked{% endif %}>
Gives <i class="fas fa-badge-check fa-sm fa-fw"></i> {{ u.username }} a badge <div>
</small> <label class="label mb-0" for="verify">Verify</label>
</div> <small class="block text-gray-600 dark:text-gray-400">
</li> Gives <i class="fas fa-badge-check fa-sm fa-fw"></i> {{ u.username }} a badge
<li class="flex space-x-2"> </small>
<input type="checkbox" value="club" class="w-5 h-5" onchange="clubAccess(this,'{{u.username}}')" {% if u.paid_dues %}checked{% endif %}> </div>
<div> </li>
<label class="label mb-0" for="club">Country Club Access</label> <li class="flex space-x-2">
<small class="block text-gray-600 dark:text-gray-400"> <input type="checkbox" value="club" class="w-5 h-5" onchange="clubAccess(this,'{{u.username}}')" {% if u.paid_dues %}checked{% endif %}>
Grant @{{ u.username }} access to the Country Club <div>
</small> <label class="label mb-0" for="club">Country Club Access</label>
</div> <small class="block text-gray-600 dark:text-gray-400">
</li> Grant @{{ u.username }} access to the Country Club
<li class="flex space-x-2"> </small>
<input type="checkbox" value="club" class="w-5 h-5" onchange="memeAdmin(this,'{{u.username}}')" {% if u.admin_level == 1%}checked{% endif %}> </div>
<div> </li>
<label class="label mb-0" for="club">Meme Moderator</label> <li class="flex space-x-2">
<small class="block text-gray-600 dark:text-gray-400"> <input type="checkbox" value="club" class="w-5 h-5" onchange="memeAdmin(this,'{{u.username}}')" {% if u.admin_level == 1%}checked{% endif %}>
Give @{{ u.username }} meme moderator status <div>
</small> <label class="label mb-0" for="club">Meme Moderator</label>
</div> <small class="block text-gray-600 dark:text-gray-400">
Give @{{ u.username }} meme moderator status
</small>
</div>
</li>
</ul>
</li> </li>
<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"> <form id="sidebar-flair-change" action="/admin/title_change/{{u.id}}" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}"> <input type="hidden" name="formkey" value="{{v.formkey}}">
<div class="flex items-center space-x-2 mb-2"> <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"> <ul class="flex flex-col mt-3 mb-0 space-y-6">
<li> <li>
{% if u.is_suspended %} {% 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"> <form id="sidebar-unban" action="/unban_user/{{u.id}}" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}"> <input type="hidden" name="formkey", value="{{v.formkey}}">
<input type="hidden" name="redir" value="true"> <input type="hidden" name="redir" value="true">
@ -91,7 +96,7 @@
</button> </button>
</form> </form>
{% else %} {% 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"> <form id="sidebar-ban" action="/ban_user/{{u.id}}/" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}"> <input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="redir" value="true"> <input type="hidden" name="redir" value="true">
@ -116,7 +121,7 @@
{% endif %} {% endif %}
{% if v.admin_level > 2 %} {% if v.admin_level > 2 %}
<li> <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"> <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> <i class="fas fa-user-slash fa-sm fa-fw mr-2"></i>
Revoke admin permissions Revoke admin permissions