forked from rDrama/rDrama
102 lines
5.3 KiB
HTML
102 lines
5.3 KiB
HTML
![]() |
<div class="modal fade" id="adminManageUserModal" tabindex="-1" role="dialog" aria-labelledby="adminManageUserModalTitle" aria-hidden="true">
|
||
|
<div class="modal-dialog modal-dialog-centered mx-auto max-w-xl" role="document">
|
||
|
<div class="modal-content mx-auto max-w-xl bg-gray-100 rounded-md shadow-lg">
|
||
|
<div class="modal-header">
|
||
|
<h5 class="font-bold text-xl text-black font-heading leading-normal">Manage @{{u.username}}</h5>
|
||
|
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
|
||
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
||
|
</button>
|
||
|
</div>
|
||
![]() |
<div class="modal-body flex flex-col space-y-4">
|
||
![]() |
<div class="p-4 rounded bg-gray-300 border border-gray-400 shadow-inset-t-white-10">
|
||
![]() |
{% if v and v.admin_level > 1 %}
|
||
![]() |
<div>
|
||
![]() |
<strong>True score:</strong> {{u.truecoins}}
|
||
![]() |
</div>
|
||
![]() |
{% if u.is_private %}
|
||
|
<p>User has private mode enabled.</p>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
{% if v and (v.admin_level > 1 or v.alt) %}
|
||
![]() |
<storng>Alts:</span>
|
||
![]() |
<ul>
|
||
|
{% for account in u.alts_unique %}
|
||
![]() |
<li>
|
||
|
<a href="{{account.url}}">@{{account.username}}</a>{% if account._is_manual %} [m]{% endif %}
|
||
|
</li>
|
||
![]() |
{% endfor %}
|
||
|
</ul>
|
||
|
{% endif %}
|
||
|
</div>
|
||
![]() |
<div class="w-full">
|
||
|
<form action="/admin/title_change/{{u.id}}" method="post">
|
||
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||
![]() |
<input id="customtitlebody-mobile" type="text" name="title" class="form-input" placeholder='Enter a flair here' value="{% if u.customtitle %}{{u.customtitle}}{% endif %}">
|
||
![]() |
<div class="flex mt-2">
|
||
![]() |
<a class="format" href="javascript:void(0)"><i class="btn btn-secondary format inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody-mobile')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Add Emoji"></i></a>
|
||
![]() |
|
||
|
<div class="custom-control custom-checkbox">
|
||
|
<input type="checkbox" class="custom-control-input" id="locked-mobile" name="locked" {% if u.flairchanged %}checked{% endif %}>
|
||
|
<label class="custom-control-label" for="locked-mobile">locked</label>
|
||
|
</div>
|
||
|
|
||
|
<input class="btn btn-primary ml-auto" type="submit" value="Change Flair">
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
{% if u.is_suspended %}
|
||
|
<form action="/unban_user/{{u.id}}" method="post">
|
||
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||
|
<input type="hidden" name="redir" value="true">
|
||
|
<br>
|
||
|
<div class="custom-control custom-checkbox">
|
||
|
<input type="checkbox" id="alts-1-mobile" class="custom-control-input" name="alts" value="1">
|
||
|
<label class="custom-control-label" for="alts-1-mobile">Include alts</label>
|
||
|
</div>
|
||
|
<br >
|
||
![]() |
<input type="submit" class="btn btn-gray" value="Unban user">
|
||
![]() |
</form>
|
||
|
{% else %}
|
||
|
<form action="/ban_user/{{u.id}}/" method="post">
|
||
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||
|
<input type="hidden" name="redir" value="true">
|
||
![]() |
<input style="font-size:11px;" type="text" class="form-input" name="reason" placeholder="Ban Reason" onchange="document.getElementById('user-ban-submit2').disabled=false">
|
||
|
<input style="font-size:11px;" type="number" step="any" class="form-input" name="days" placeholder="Days (blank = permanent)">
|
||
![]() |
<br >
|
||
|
<div class="custom-control custom-checkbox">
|
||
|
<input type="checkbox" id="alts-2-mobile" class="custom-control-input" name="alts" value="1">
|
||
|
<label class="custom-control-label" for="alts-2-mobile">Include alts</label>
|
||
|
</div>
|
||
|
<br >
|
||
![]() |
<input id="user-ban-submit2" type="submit" class="btn btn-red" value="Ban user" disabled>
|
||
![]() |
</form>
|
||
|
{% endif %}
|
||
|
<form id="agendaposter2" class="{% if u.agendaposter %}hidden{% endif %}" action="/agendaposter/{{u.id}}" method="post">
|
||
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||
![]() |
<input type="number" step="any" name="days" class="form-input" placeholder="Days (0 or blank = permanent)" >
|
||
![]() |
<input type="submit" class="btn btn-red" value="Lock Agendaposter Theme" >
|
||
![]() |
</form>
|
||
![]() |
<a id="unagendaposter2" class="{% if not u.agendaposter %}hidden{% endif %} btn btn-gray" href="javascript:void(0)" onclick="post_toast2('/agendaposter/{{u.id}}','agendaposter2','unagendaposter2')">Disable Agendaposter Theme</a>
|
||
![]() |
<form action="/admin/unnuke_user" method="post">
|
||
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||
|
<input type="hidden" name="user" value="{{u.username}}">
|
||
![]() |
<input type="submit" class="btn btn-gray" value="Approve User's Content">
|
||
![]() |
</form>
|
||
|
<pre></pre>
|
||
|
<form action="/admin/nuke_user" method="post">
|
||
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||
|
<input type="hidden" name="user" value="{{u.username}}">
|
||
![]() |
<input type="submit" class="btn btn-red" value="Remove User's Content">
|
||
![]() |
</form>
|
||
|
</div>
|
||
|
<div class="flex justify-end space-x-2 border-t border-gray-300 p-4">
|
||
|
<button type="button" class="px-4 py-2 text-sm font-bold text-gray-500 hover:text-gray-700" data-bs-dismiss="modal">
|
||
|
Cancel
|
||
|
</button>
|
||
|
<button type="submit" form="message" class="btn btn-green">
|
||
|
Done
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|