32 lines
680 B
HTML
32 lines
680 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Workouts{% endblock %}
|
|
{% block content %}
|
|
<h1>Workouts</h1>
|
|
<a href="/workouts/new" role="button">New Workout</a>
|
|
|
|
{% if workouts %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Name</th>
|
|
<th>Status</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for w in workouts %}
|
|
<tr>
|
|
<td>{{ w.date }}</td>
|
|
<td>{{ w.name }}</td>
|
|
<td>{{ w.status }}</td>
|
|
<td><a href="/workouts/{{ w.id }}">View</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No workouts yet.</p>
|
|
{% endif %}
|
|
{% endblock %}
|