forked from
pds.dad/at-advent
this repo has no description
1{% extends "layout.askama.html" %}
2
3{% block content %}
4<div class="flex flex-col items-center justify-center min-h-[60vh]">
5 <div class="card w-full max-w-md shadow-2xl bg-base-100">
6 <div class="card-body items-center text-center">
7 <h2 class="card-title text-3xl mb-4">Global Unlock</h2>
8
9 {% if let Some(msg) = message %}
10 <div class="alert alert-error mb-4">
11 <span>{{ msg }}</span>
12 </div>
13 {% endif %}
14
15 <p class="text-lg mb-2">Currently unlocked up to day:</p>
16 <p class="text-6xl font-bold mb-6">{{ current_unlock_day }}</p>
17
18 <div class="flex gap-4">
19 <form method="POST" action="/admin">
20 <input type="hidden" name="action" value="down"/>
21 <button type="submit" class="btn btn-lg btn-outline" {% if current_unlock_day <= 1 %}disabled{% endif %}>
22 - Day
23 </button>
24 </form>
25 <form method="POST" action="/admin">
26 <input type="hidden" name="action" value="up"/>
27 <button type="submit" class="btn btn-lg btn-primary" {% if current_unlock_day >= 25 %}disabled{% endif %}>
28 + Day
29 </button>
30 </form>
31 </div>
32 </div>
33 </div>
34</div>
35{% endblock %}