55 lines
1.1 KiB
HTML
55 lines
1.1 KiB
HTML
{% extends "boatmovers_base.html" %}
|
|
|
|
{% block main %}
|
|
<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><a href="/boatmovers/crew/{{ result.crew.id }}/">{{ result.crew.name }}</a></td>
|
|
{% if result.crew.id in duplicate_crews %}
|
|
<td>!</td>
|
|
{% elif result.crew.id in duplicate_athletes_crews %}
|
|
<td>!</td>
|
|
{% endif %}
|
|
</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 %}
|
|
{% endblock %}
|