Basic functionality is there
This commit is contained in:
45
boatmovers/templates/race.html
Normal file
45
boatmovers/templates/race.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user