Private
Public Access
1
0

Basic functionality is there

This commit is contained in:
Sander Roosendaal
2022-06-24 16:17:18 +02:00
parent f55e5a2fef
commit f606a7aa09
12 changed files with 366 additions and 19 deletions

View File

@@ -0,0 +1,69 @@
<p>
<table>
<tr>
<th>Rank</th>
<th>Score</th>
<th>Name</th><td></td>
<th>Club</th>
<th>Gender</th>
<th>Year of Birth</th>
</tr>
{% for athlete in athletes %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ athlete.trueskill_exposed|floatformat:2 }}</td>
<td>{{ athlete.first_name }}</td>
<td>{{ athlete.last_name }}</td>
<td>{{ athlete.club }}</td>
<td>{{ athlete.gender }}</td>
<td>{{ athlete.birth_year }}</td>
</tr>
{% endfor %}
</table>
</p>
<p>
This ranking was based on results from following races:
</p>
<p>
<table>
{% for race in races %}
<tr>
<td>{{ race.date }}</td><td>{{ race.name }}</td>
<td>
<a href="race/{{ race.id }}">View Race</a>
</td>
</tr>
{% endfor %}
</table>
</p>
{% if user.is_authenticated and user.is_staff %}
<p>
Unprocessed races
</p>
<p>
<table>
{% for race in new_races %}
<tr>
<td>{{ race.date }}</td><td>{{ race.name }}</td>
<td>
<a href="race/{{ race.id }}">Manage Race</a>
</td>
</tr>
{% endfor %}
</table>
</p>
<p>
<a href="athlete/add/">Add Athlete</a>
</p>
<p>
<a href="crew/add/">Add Crew</a>
</p>
{% endif %}
<p>
<a href="race/add/">Add Race</a>
</p>
{% if user.is_authenticated and user.is_staff %}
<p>
<a href="result/add/">Add Result</a>
</p>
{% endif %}