race entry self service
This commit is contained in:
71
rowers/templates/entryedit.html
Normal file
71
rowers/templates/entryedit.html
Normal file
@@ -0,0 +1,71 @@
|
||||
{% extends "newbase.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}Register for a Virtual Race{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<script type='text/javascript'
|
||||
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
|
||||
</script>
|
||||
<script type='text/javascript'
|
||||
src='https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js'>
|
||||
</script>
|
||||
<script>
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block main %}
|
||||
<h1>Change your entry for {{ race.name }}</h1>
|
||||
|
||||
|
||||
|
||||
<form id="race_register_form"
|
||||
method="post">
|
||||
<div class="grid_12 alpha">
|
||||
<p>If you are participating in a single, we will take the age and weight
|
||||
value from your user settings. For other boat types, please fill out
|
||||
crew weight class and average age.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You will register as a crew with the gender of your user settings. If
|
||||
your user settings have gender "not specified", you will be registered
|
||||
as a Male crew. Check the "Mixed gender" check box to register as a
|
||||
mixed gender crew (except for 1x where this check box does nothing).
|
||||
</p>
|
||||
<p>
|
||||
The challenge organizer may want to publish about the challenge on social media and
|
||||
use your name in the results. If you do not want your name to appear on social media,
|
||||
you can let this know by unchecking the check box in the form.
|
||||
</p>
|
||||
{% if race.coursestandards %}
|
||||
<p>This race uses standard times and limits the race groups to those where
|
||||
standard times exist. The "Group" form choice will overrule other selections you
|
||||
make in the form (boat type, weight, etc) and your entry will be rejected
|
||||
if the age and gender doesn't match.
|
||||
</p>
|
||||
<p>
|
||||
You can check the valid race groups and standard times <a target="_" href="/rowers/standards/{{ race.coursestandards.id }}/">here</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
<div class="grid_6 alpha">
|
||||
<table width="100%">
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% csrf_token %}
|
||||
<input class="button" type="submit" value="Submit">
|
||||
|
||||
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% include 'menu_racing.html' %}
|
||||
{% endblock %}
|
||||
@@ -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