Moved active status to a database entry apposed to a function

Added settings page
Cleaned up rollover page
This commit is contained in:
John Mullins
2023-12-21 16:14:56 +11:00
parent 1240ab2538
commit 25ddf1edfa
12 changed files with 128 additions and 58 deletions
@@ -0,0 +1,16 @@
{% extends "admin/base_site.html" %}
{% block content %}
<h1>Yearly rollover</h1>
<p>Initiating a rollover will perform the following actions.</p>
<ul>
<li>Set any active Year 12 traveller without an exit date to the selected exit date.</li>
<li>Set any active traveller with an exit date before today to inactive</li>
<li>Increase the year level of everyone except for <b>Adult Learners</b> and <b>Year 12</b></li>
</ul>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
</form>
<input type="submit" style="padding: 15px 30px; font-size: 18px; background: var(--delete-button-bg);" value="Initiate!">
{% endblock %}