37 lines
875 B
HTML
37 lines
875 B
HTML
{% extends "base.html" %}
|
|
{% load staticfiles %}
|
|
|
|
{% block title %}Workouts{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>My Workouts</h1>
|
|
{% if workouts %}
|
|
<table width="70%">
|
|
<tr>
|
|
<td> <strong>Date</strong> </td>
|
|
<td> <strong>Time </strong></td>
|
|
<td> <strong>Name </strong></td>
|
|
<td> <strong>Type </strong></td>
|
|
<td> <strong>Distance</strong> </td>
|
|
<td> <strong>Duration</strong> </td>
|
|
<td> <strong>Edit</strong></td>
|
|
</tr>
|
|
|
|
{% for workout in workouts %}
|
|
<tr>
|
|
<td> {{ workout.date }} </td>
|
|
<td> {{ workout.starttime }} </td>
|
|
<td> {{ workout.name }} </td>
|
|
<td> {{ workout.workouttype }} </td>
|
|
<td> {{ workout.distance }}m</td>
|
|
<td> {{ workout.duration }} </td>
|
|
<td> <a href="/rowers/workout/{{ workout.id }}/edit">E</td>
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</table>
|
|
{% else %}
|
|
<p> No workouts found </p>
|
|
{% endif %}
|
|
{% endblock %}
|