Private
Public Access
1
0

register and withdraw done

This commit is contained in:
Sander Roosendaal
2018-04-19 13:28:12 +02:00
parent 8bb50596a2
commit 6a9b61bef3
5 changed files with 270 additions and 13 deletions

View File

@@ -29,6 +29,12 @@
<tr>
<th>Course</th><td>{{ race.course }}</td>
</tr>
{% if race.has_registration %}
<tr>
<th>Registration closure</th>
<td>{{ race.registration_closure }}</td>
</tr>
{% endif %}
<tr>
<th>Date</th><td>{{ race.startdate }}</td>
</tr>
@@ -55,9 +61,31 @@
</p>
</div>
<div id="registerbuttons">
{% if request.user.is_anonymous %}
<p>
hier komen de registratieknoppen en zo
Registered users of rowsandall.com can participate in this event.
</p>
{% else %}
<p>
See race rules below.
</p>
<p>
{% for button in buttons %}
{% if button == 'registerbutton' %}
<a href="/rowers/virtualevent/{{ race.id }}/register" class="button gray small grid_2">Register</a>
{% endif %}
{% if button == 'submitbutton' %}
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="button gray small grid_2">Submit Result</a>
{% endif %}
{% if button == 'resubmitbutton' %}
<a href="/rowers/virtualevent/{{ race.id }}/resubmit" class="button gray small grid_2">Submit New Result</a>
{% endif %}
{% if button == 'withdrawbutton' %}
<a href="/rowers/virtualevent/{{ race.id }}/withdraw" class="button gray small grid_2">Withdraw</a>
{% endif %}
{% endfor %}
</p>
{% endif %}
</div>
<div id="results">
<h2>Results</h2>
@@ -65,6 +93,42 @@
No results yet
</p>
</div>
<div id="rules">
<h2>Rules</h2>
<p>
As a rowsandall.com user, you can
register to take part in this event.
If the race organizer has set a registration deadline, you must
register before the deadline. Otherwise, it is sufficient to
register before the start of the race window.
You can always withdraw from participating before the registration
deadline or the start of the race window, if no registration
deadline was set.
</p>
<p>
After the start of the race window and before the submission deadline,
you can submit results by linking the race to one of your uploaded
workouts. The workout start time must be within the race window
and your trajectory must pass through the blue polygons on the course
map (in the right order), for your result to be valid.
</p>
<p>
The results table has a link to a page where details of your workout
are shown.
</p>
<p>
Race results are stored permanently and are not deleted when
you delete the respective workout or remove your account.
By registering, you agree with this and the race rules.
</p>
<p>
Virtual Racing on rowsandall.com is honors based. Please be a good
sport, submit real results rowed by you, and make sure you set the
boat type correctly. For (future functionality) age and gender
corrected times, please be sure your gender and birth date are set
correctly in your user settings.
</p>
</div>
</div>
<div class="grid_4 omega">
<h2>Course</h2>