72 lines
1.6 KiB
HTML
72 lines
1.6 KiB
HTML
{% extends "boatmovers_base.html" %}
|
|
|
|
{% block main %}
|
|
<h1>
|
|
{{ race.name }}
|
|
</h1>
|
|
<p>
|
|
{{ race.date }}
|
|
</p>
|
|
<p>
|
|
<a target="_" href="{{ race.resulturl }}">Results</a>
|
|
</p>
|
|
<p>
|
|
<table class="shortpadded">
|
|
<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>
|
|
{% for athlete in result.crew.athletes.all %}
|
|
<td>
|
|
{{ athlete.first_name }} {{ athlete.last_name }}
|
|
</td>
|
|
{% endfor %}
|
|
{% 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>
|
|
<p>
|
|
<a href="/boatmovers/race/{{ race.id }}/deleteresults/">Remove all results</a>
|
|
</p>
|
|
{% endif %}
|
|
{% if not race.verified and not race.processed %}
|
|
<p>
|
|
<a href="/boatmovers/result/add/">Add Result</a>
|
|
</p>
|
|
<p>
|
|
<a href="/boatmovers/race/{{ race.id }}/csv/">Add Result CSV</a>
|
|
</p>
|
|
<p>
|
|
<a href="/boatmovers/race/{{ race.id }}/timeteam/">Add Result from Time Team</a>
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|