first result working
This commit is contained in:
@@ -187,7 +187,7 @@
|
||||
$.ajax({
|
||||
data: data,
|
||||
type: $(this).attr('method'),
|
||||
url: '/rowers/standards/upload/',
|
||||
url: window.location.pathname,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
error: function(result) {
|
||||
|
||||
@@ -268,7 +268,9 @@
|
||||
<th> </th>
|
||||
<th>Name</th>
|
||||
<th>Team Name</th>
|
||||
<th> </th>
|
||||
{% if race.coursestandards %}
|
||||
<th>Group</th>
|
||||
{% else %}
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
@@ -276,8 +278,12 @@
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<th>Boat</th>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<th>Time</th>
|
||||
<th>Distance</th>
|
||||
{% if race.coursestandards %}
|
||||
<th>Points</th>
|
||||
{% endif %}
|
||||
<th>Details</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
@@ -290,6 +296,9 @@
|
||||
<a href="/rowers/workout/{{ result.workoutid|encode }}/view/entry/{{ result.id }}/">
|
||||
{{ result.username }}</a></td>
|
||||
<td>{{ result.teamname }}</td>
|
||||
{% if race.coursestandards %}
|
||||
<td>{{ result.entrycategory }}</td>
|
||||
{% else %}
|
||||
<td>{{ result.age }}</td>
|
||||
<td>{{ result.sex }}</td>
|
||||
<td>{{ result.weightcategory }}</td>
|
||||
@@ -304,11 +313,17 @@
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<td>{{ result.boattype }}</td>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<td>{{ result.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
||||
<td>{{ result.distance }} m</td>
|
||||
{% if race.coursestandards %}
|
||||
<td>{{ result.points }}</td>
|
||||
{% endif %}
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ result.workoutid|encode }}/view/entry/{{ result.id }}/">
|
||||
Details</a></td>
|
||||
Details</a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if race.manager == request.user and not race|is_final %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/disqualify/{{ result.id }}/">
|
||||
@@ -394,22 +409,29 @@
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Team Name</th>
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<th>Class</th>
|
||||
<th>Boat</th>
|
||||
{% if race.coursestandards %}
|
||||
<th>Group</th>
|
||||
<th>Age</th>
|
||||
{% else %}
|
||||
<th>Class</th>
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<th>Boat</th>
|
||||
{% endif %}
|
||||
<th>Class</th>
|
||||
<th>Age</th>
|
||||
<th>Gender</th>
|
||||
<th>Weight Category</th>
|
||||
<th>Adaptive</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
<tbody>
|
||||
{% for record in records %}
|
||||
<tr>
|
||||
<td>{{ record.username }}
|
||||
<td>{{ record.teamname }}</td>
|
||||
{% if race.coursestandards %}
|
||||
<td>{{ record.entrycategory }}</td>
|
||||
<td>{{ record.age }}</td>
|
||||
{% else %}
|
||||
<td>{{ record.boatclass }}</td>
|
||||
{% if race.sessiontype == 'race' %}
|
||||
<td>{{ record.boattype }}</td>
|
||||
@@ -424,6 +446,7 @@
|
||||
{{ record.adaptiveclass }}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
{% if record.userid == rower.id and 'withdrawbutton' in buttons %}
|
||||
<td>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/withdraw/{{ record.id }}" >Withdraw</a>
|
||||
|
||||
Reference in New Issue
Block a user