race entry self service
This commit is contained in:
@@ -263,14 +263,23 @@
|
||||
</li>
|
||||
<li class="grid_2">
|
||||
<div id="results">
|
||||
<p>
|
||||
{% if race|is_final %}
|
||||
<h2>Final Results</h2>
|
||||
{% else %}
|
||||
<h2>Results</h2>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if results or dns or dnf %}
|
||||
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/compare"
|
||||
title="Compare the workouts of all competitors"><i class="fas fa-chart-line fa-fw"></i></a>
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/mapcompare"
|
||||
title="Compare the courses taken by the competitors"><i class="fas fa-route fa-fw"></i></a>
|
||||
{% endif %}
|
||||
{% if race.manager == request.user %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/download"
|
||||
title="Download Results"><i class="fas fa-file-download fa-fw"></i></a>
|
||||
|
||||
<p>
|
||||
<table class="listtable shortpadded" width="100%">
|
||||
<thead>
|
||||
@@ -330,14 +339,20 @@
|
||||
<td>{{ result.points|sigdig:4 }}</td>
|
||||
{% endif %}
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ result.workoutid|encode }}/view/entry/{{ result.id }}/">
|
||||
Details</a>
|
||||
<a title="Details" href="/rowers/workout/{{ result.workoutid|encode }}/view/entry/{{ result.id }}/">
|
||||
<i class="fas fa-search-plus fa-fw"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
{% if result.userid == request.user.rower.id and not race|is_final %}
|
||||
<a title="Edit" href="/rowers/virtualevent/{{ race.id }}/register/edit/{{ result.id }}">
|
||||
<i class="fas fa-pencil-alt fa-fw"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if race.manager == request.user and not race|is_final %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/disqualify/{{ result.id }}/">
|
||||
Disqualify
|
||||
<a title="Disqualify" href="/rowers/virtualevent/{{ race.id }}/disqualify/{{ result.id }}/">
|
||||
<i class="fas fa-flag-alt fa-fw"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
|
||||
@@ -345,8 +360,8 @@
|
||||
</td>
|
||||
<td>
|
||||
{% if result.userid == request.user.rower.id and not race|is_final %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/withdrawresult/{{ result.id }}">
|
||||
Remove
|
||||
<a title="Remove" href="/rowers/virtualevent/{{ race.id }}/withdrawresult/{{ result.id }}">
|
||||
<i class="fas fa-trash-alt fa-fw"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
@@ -380,7 +395,7 @@
|
||||
<td>DNF</td>
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ result.workoutid|encode }}/view/entry/{{ result.id }}/">
|
||||
Details</a>
|
||||
<i class="fas fa-search-plus fa-fw"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -415,19 +430,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</p>
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/compare"
|
||||
title="Compare the workouts of all competitors">Compare Results</a>
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/mapcompare"
|
||||
title="Compare the courses taken by the competitors">Compare Course</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if race.manager == request.user %}
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/download"
|
||||
title="Download Results">Download Results</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>
|
||||
@@ -506,11 +508,21 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
{% if record.userid == rower.id and 'withdrawbutton' in buttons %}
|
||||
{% if record.userid == request.user.rower.id and not race|is_final %}
|
||||
<td>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/withdraw/{{ record.id }}" >Withdraw</a>
|
||||
<a title="Edit" href="/rowers/virtualevent/{{ race.id }}/register/edit/{{ record.id }}/">
|
||||
<i class="fas fa-pencil-alt fa-fw"></i>
|
||||
</a>
|
||||
</td>
|
||||
{% endif %}
|
||||
{% if record.userid == rower.id and 'withdrawbutton' in buttons %}
|
||||
<td>
|
||||
<a title="Withdraw" href="/rowers/virtualevent/{{ race.id }}/withdraw/{{ record.id }}" >
|
||||
<i class="fas fa-trash-alt fa-fw"></i>
|
||||
</a>
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user