Private
Public Access
1
0

added registration form

This commit is contained in:
Sander Roosendaal
2018-04-20 13:38:00 +02:00
parent 82da46ef0c
commit f70a2b2510
6 changed files with 199 additions and 28 deletions

View File

@@ -87,12 +87,13 @@
<div id="results">
<h2>Results</h2>
<p>
{% if results %}
{% if results or dns %}
<table class="listtable shortpadded" width="100%">
<thead>
<tr>
<th>&nbsp;</th>
<th>Name</th>
<th>Team Name</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
@@ -109,7 +110,8 @@
<td>{{ forloop.counter }}</td>
<td>
<a href="/rowers/workout/{{ result.workout.id }}">
{{ result.username }}</a></td>
{{ result.username }}</a></td>
<td>{{ result.teamname }}</th>
<td>{{ result.age }}</td>
<td>{{ result.sex }}</td>
<td>{{ result.weightcategory }}</td>
@@ -120,9 +122,8 @@
{% for result in dns %}
<tr>
<td>&nbsp;</td>
<td>
<a href="/rowers/workout/{{ result.workout.id }}">
{{ result.username }}</a></td>
<td>{{ result.username }}</td>
<td>{{ result.teamname }}</td>
<td>{{ result.age }}</td>
<td>{{ result.sex }}</td>
<td>{{ result.weightcategory }}</td>
@@ -137,6 +138,30 @@
{% endif %}
</p>
</div>
<div id="registered">
{% if records %}
<h2>Registered Competitors</h2>
<table class="listtable shortpadded" width="80%">
<thead>
<tr>
<th>Name</th>
<th>Team Name</th>
<th>Age</th>
<th>Weight Category</th>
</tr>
<tbody>
{% for record in records %}
<tr>
<td>{{ record.username }}
<td>{{ record.teamname }}</td>
<td>{{ record.weightcategory }}</td>
<td>{{ record.age }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div id="rules">
<h2>Rules</h2>
<p>