Add stats link, year selector

This commit is contained in:
2023-11-02 09:20:09 +01:00
parent 3ee36932c3
commit 71b90b8202
6 changed files with 31 additions and 7 deletions

View File

@ -6,7 +6,15 @@
{% block content %}
<div class="dark:text-white max-w-sm sm:max-w-xl lg:max-w-3xl mx-auto">
<h1 class="text-5xl text-center my-6">Stats for {{ year }}</h1>
<div class="flex justify-center items-center">
<form method="get" class="text-center">
<label class="text-5xl text-center inline-block mb-10" for="yearSelect">Stats for:</label>
<select name="year" id="yearSelect" onchange="this.form.submit();" class="mx-2">
<option value="2022" {% if year == 2022 %}selected{% endif %}>2022</option>
<option value="2023" {% if year == 2023 %}selected{% endif %}>2023</option>
</select>
</form>
</div>
<table class="responsive-table">
<thead>
<tr>