107 lines
2.9 KiB
HTML
107 lines
2.9 KiB
HTML
{% extends "newbase.html" %}
|
|
{% load static %}
|
|
{% load rowerfilters %}
|
|
{% load leaflet_tags %}
|
|
|
|
{% block meta %}
|
|
{% leaflet_js %}
|
|
{% leaflet_css %}
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block title %}{{ workout.name }} {% endblock %}
|
|
{% block og_title %}{{ workout.name }} {% endblock %}
|
|
{% block description %}{{ workout.name }}
|
|
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
|
|
{% block og_description %}{{ workout.name }}
|
|
{{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %}
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
<h1>{{ workout.name }}</h1>
|
|
<ul class="main-content">
|
|
{% if records %}
|
|
<li class="grid_4">
|
|
<h2>Course Results</h2>
|
|
<table class="listtable shortpadded">
|
|
<thead>
|
|
<tr>
|
|
<th>Course</th>
|
|
<th>Time</th>
|
|
<th>Distance</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in records %}
|
|
<tr>
|
|
<td><a href="/rowers/courses/{{ record.course.id }}">{{ record.course.name }}</a></td>
|
|
<td>{{ record.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
|
<td>{{ record.distance }} m</td>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</li>
|
|
{% endif %}
|
|
{% if courses %}
|
|
<li class="grid_4">
|
|
<h2>Add a course</h2>
|
|
<p>
|
|
This functionality allows you to record a time on a set course that you've rowed during the workout.
|
|
The summary will be updated to show time on course, and you can compare this with other
|
|
attempts.
|
|
</p>
|
|
<p>
|
|
{% if rower.share_course_results %}
|
|
You are currently sharing your course results with all Rowsandall users.
|
|
Click <a href="/rowers/me/edit/?courseshare=false">here</a> to hide your course results.
|
|
{% else %}
|
|
You are currently hiding your course results (except for your participation in online challenges).
|
|
Click <a href="/rowers/me/edit/?courseshare=true">here</a> to hide your course results.
|
|
{% endif %}
|
|
</p>
|
|
<form ecntype="multipart/form-data" method="post">
|
|
<table>
|
|
{{ courseselectform.as_table }}
|
|
</table>
|
|
{% csrf_token %}
|
|
<input class="button" type="submit" value="Select Course">
|
|
</form>
|
|
</li>
|
|
{% endif %}
|
|
<li class="grid_2">
|
|
<h2>Workout Summary</h2>
|
|
<table width=100%>
|
|
<tr>
|
|
<th>Rower:</th><td>{{ first_name }} {{ last_name }}</td>
|
|
</tr><tr>
|
|
<tr>
|
|
<th>Name:</th><td>{{ workout.name }}</td>
|
|
</tr><tr>
|
|
<tr>
|
|
<th>Date:</th><td>{{ workout.date }}</td>
|
|
</tr><tr>
|
|
<th>Time:</th><td>{{ workout.starttime }}</td>
|
|
</tr><tr>
|
|
<th>Distance:</th><td>{{ workout.distance }}m</td>
|
|
</tr><tr>
|
|
<th>Duration:</th><td>{{ workout.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
|
</tr><tr>
|
|
<th>Type:</th><td>{{ workout.workouttype }}</td>
|
|
</tr><tr>
|
|
<th>Weight Category:</th><td>{{ workout.weightcategory }}</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% include 'menu_workout.html' %}
|
|
{% endblock %}
|