mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-17 16:11:14 +10:00
42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
{% extends "closedverse_main/layout.html" %}
|
|
{% block main-body %}{% load closedverse_user %}{% load closedverse_tags %}
|
|
{% user_sidebar request user profile 9 False %}
|
|
<div class="main-column"><div class="post-list-outline">
|
|
<h2 class="label">Ban {{ user.username }}</h2>
|
|
<form class="setting-form" method="post" action={% url "main:user-tools-bans" user.username %}>
|
|
{% if not banned %}
|
|
<li class="setting">
|
|
<p class="settings-label">Why this user is banned:</p>
|
|
{{ form.reason }}
|
|
<p class="settings-label">Ban this user for:</p>
|
|
{{ form.expiry_date }}
|
|
<p class='note'>{{ user.username }} will be banned from {{ brand_name }} until the time runs out.</p>
|
|
<p class="settings-label">Purge this user?</p>
|
|
{{ form.purge }}
|
|
<p class='note'>Should we purge {{ user.username }}? All comments and posts will be removed.</p>
|
|
</li>
|
|
{% csrf_token %}
|
|
<div class="form-buttons">
|
|
<input type="submit" class="button apply-button" value="Ban {{ user.username }}">
|
|
</div>
|
|
{% else %}
|
|
<p class="label">This user is banned already.</p>
|
|
<p>The ban will expire on: {{ active_ban.expiry_date }}</p>
|
|
<p>Time remaining: {{ active_ban.expiry_date|timeuntil }}</p>
|
|
|
|
<li class="setting">
|
|
<p class="settings-label">Edit Reasoning:</p>
|
|
{{ form.reason }}
|
|
<p class="settings-label">Change Expiry date:</p>
|
|
{{ form.expiry_date }}
|
|
<p class="settings-label">Active:</p>
|
|
{{ form.active }}
|
|
<p class='note'>Uncheck this to unban {{ user.username }}.</p>
|
|
</li>
|
|
{% csrf_token %}
|
|
<div class="form-buttons">
|
|
<input type="submit" class="button apply-button" value="Edit ban for {{ user.username }}">
|
|
</div>
|
|
{% endif %}
|
|
</form></div></div>
|
|
{% endblock %} |