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