mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-17 16:11:14 +10:00
- Change password page from profile settings has been moved over to forms.py - Login page has been moved over to forms.py. There is no JavaScript right now, however it is still functional. -Profile_tools_Form has been altered to remove a few unneeded fields that administrators don't need to mess with. - warned_reason and warned fields are gone from User_tools_Form and will be removed from models.py at a later point. - a new ban system has been implemented. While bans are still incomplete and lack capabilities to ban IP addresses as of right now, the groundwork is now here and those features can be added later. - manage_bans page was added. - A new warning system has been implemented. If a Warning is created, a notification is created automatically with it. A warning notification replaces the "new announcement" notification type. - Warning notifications are larger and stand out compared to normal notifications - When posting, commenting or messaging someone, a check is performed to make sure you've seen the warning notification. - manage_warnings page was added. This page will also show you the warning history. - help_text was added to a bunch of fields.
49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
{% extends "closedverse_main/layout.html" %}
|
|
{% block main-body %}{% load closedverse_user %}{% load closedverse_tags %}
|
|
{% user_sidebar request user profile 8 False %}
|
|
<div class="main-column"><div class="post-list-outline">
|
|
<h2 class="label">Send a warning to {{ user.username }}</h2>
|
|
<form class="setting-form" method="post" action={% url "main:user-tools-warnings" user.username %}>
|
|
<li class="setting">
|
|
<p class="settings-label">Reasoning:</p>
|
|
{{ form.reason }}
|
|
<p class='note'>Warnings will show as notifications. {{ user.username }} will not be able to post, comment, or message another user until this notification is seen. {{ user.username }} will not see who sent this warning.</p>
|
|
</li>
|
|
<div class="user-data">
|
|
{% if unread_warnings %}<li>
|
|
<p class='setting'>Warnings that have not been read yet:<p>
|
|
<table style="width:100%">
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Incident</th>
|
|
</tr>
|
|
{% for Notifications in unread_warnings %}
|
|
<tr>
|
|
<td>{{ Notifications.created }}</td>
|
|
<td>{{ Notifications.context_warning.reason }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>{% endif %}
|
|
</li>{% if all_warnings %}
|
|
<p class='setting'>Incident history:<p>
|
|
<table style="width:100%">
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Issued by</th>
|
|
<th>Incident</th>
|
|
</tr>
|
|
{% for Warning in all_warnings %}
|
|
<tr>
|
|
<td>{{ Warning.created }}</td>
|
|
<td>{{ Warning.by }}</td>
|
|
<td>{{ Warning.reason }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>{% endif %}
|
|
</div>
|
|
{% csrf_token %}
|
|
<div class="form-buttons">
|
|
<input type="submit" class="button apply-button" value="Send warning to {{ user.username }}">
|
|
</div>
|
|
</form></div></div>
|
|
{% endblock %} |