small improvements in popup race
This commit is contained in:
@@ -1349,6 +1349,7 @@ class VirtualRaceResult(models.Model):
|
|||||||
verbose_name='Weight Category')
|
verbose_name='Weight Category')
|
||||||
race = models.ForeignKey(VirtualRace)
|
race = models.ForeignKey(VirtualRace)
|
||||||
duration = models.TimeField(default=datetime.time(1,0))
|
duration = models.TimeField(default=datetime.time(1,0))
|
||||||
|
distance = models.IntegerField(default=0)
|
||||||
boattype = models.CharField(choices=boattypes,max_length=40,
|
boattype = models.CharField(choices=boattypes,max_length=40,
|
||||||
default='1x',
|
default='1x',
|
||||||
verbose_name = 'Boat Type'
|
verbose_name = 'Boat Type'
|
||||||
|
|||||||
@@ -720,6 +720,7 @@ def add_workout_race(ws,race,r):
|
|||||||
return result,comments, errors
|
return result,comments, errors
|
||||||
|
|
||||||
record.coursecompleted=coursecompleted
|
record.coursecompleted=coursecompleted
|
||||||
|
record.distance = int(coursemeters)
|
||||||
record.workoutid=ws[0].id
|
record.workoutid=ws[0].id
|
||||||
record.duration = duration
|
record.duration = duration
|
||||||
record.save()
|
record.save()
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<th>Country</th><td>{{ course.country }}</td>
|
<th>Country</th><td>{{ course.country }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Notes</th><td>{{ course.notes }}</td>
|
<th>Notes</th><td>{{ course.notes|linebreaks }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<th>Event</th>
|
<th>Event</th>
|
||||||
<th>Country</th>
|
<th>Country</th>
|
||||||
<th>Course</th>
|
<th>Course</th>
|
||||||
|
<th>Distance</th>
|
||||||
<th>Click for Details</th>
|
<th>Click for Details</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -25,6 +26,7 @@
|
|||||||
<td><a href="/rowers/virtualevent/{{ race.id }}">{{ race.name }}</a></td>
|
<td><a href="/rowers/virtualevent/{{ race.id }}">{{ race.name }}</a></td>
|
||||||
<td>{{ race.course.country }}</td>
|
<td>{{ race.course.country }}</td>
|
||||||
<td><a href="/rowers/courses/{{ race.course.id }}">{{ race.course.name }}</a></td>
|
<td><a href="/rowers/courses/{{ race.course.id }}">{{ race.course.name }}</a></td>
|
||||||
|
<td>{{ race.sessionvalue }} m</td>
|
||||||
<td>
|
<td>
|
||||||
{% if rower %}
|
{% if rower %}
|
||||||
{% if race|can_register:rower %}
|
{% if race|can_register:rower %}
|
||||||
|
|||||||
@@ -23,6 +23,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Course</th><td>{{ race.course }}</td>
|
<th>Course</th><td>{{ race.course }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Distance</th><td>{{ race.sessionvalue }} m</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Registration closure</th>
|
<th>Registration closure</th>
|
||||||
<td>{{ race.registration_closure }}</td>
|
<td>{{ race.registration_closure }}</td>
|
||||||
@@ -98,6 +101,7 @@
|
|||||||
<th> </th>
|
<th> </th>
|
||||||
<th>Boat</th>
|
<th>Boat</th>
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
|
<th>Distance</th>
|
||||||
<th>Details</th>
|
<th>Details</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -114,6 +118,7 @@
|
|||||||
<td>{{ result.weightcategory }}</td>
|
<td>{{ result.weightcategory }}</td>
|
||||||
<td>{{ result.boattype }}</td>
|
<td>{{ result.boattype }}</td>
|
||||||
<td>{{ result.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
<td>{{ result.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
||||||
|
<td>{{ result.distance }} m</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="/rowers/workout/{{ result.workoutid }}">
|
<a href="/rowers/workout/{{ result.workoutid }}">
|
||||||
Details</a></td>
|
Details</a></td>
|
||||||
|
|||||||
@@ -13624,6 +13624,7 @@ def virtualevent_create_view(request):
|
|||||||
course=geocourse,
|
course=geocourse,
|
||||||
comment=comment,
|
comment=comment,
|
||||||
sessiontype = 'coursetest',
|
sessiontype = 'coursetest',
|
||||||
|
sessionvalue = sessionvalue,
|
||||||
timezone=timezone_str,
|
timezone=timezone_str,
|
||||||
evaluation_closure=evaluation_closure,
|
evaluation_closure=evaluation_closure,
|
||||||
registration_closure=registration_closure,
|
registration_closure=registration_closure,
|
||||||
|
|||||||
Reference in New Issue
Block a user