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,45 @@
<h1>
{{ race.name }}
</h1>
<p>
{{ race.date }}
</p>
<p>
<table>
<tr>
<th>Order</th>
<th>Crew</th><td></td>
</tr>
{% for result in results %}
<tr>
<td>{{ result.order }}</td>
<td>{{ result.crew.name }}</td>
</tr>
{% endfor %}
</table>
</p>
{% if user.is_authenticated and user.is_staff %}
{% if race.verified %}
<p>
Race has been verified
</p>
{% if race.processed %}
<p>
Race has been processed
</p>
{% else %}
<p>
Race is not processed. <a href="process/">Process Race</a>
</p>
{% endif %}
{% else %}
<p>
Race is not verified. <a href="verify/">Verify Race</a>
</p>
{% endif %}
{% if not race.verified and not race.processed %}
<p>
<a href="/boatmovers/result/add/">Add Result</a>
</p>
{% endif %}
{% endif %}