bia-fitness/templates/lifting/day.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2015-04-06 17:51:33 +00:00
{% extends "base.html" %}
2015-04-06 18:53:17 +00:00
{% load lifting %}
2015-04-06 17:51:33 +00:00
{% block content %}
<section class="row header-row">
<section class="col-sm-12">
<a href="{% url 'lifting-day' prev_date.year prev_date.month prev_date.day %}">&larr; Previous</a>
<h3 class="month-name">{{date|date:"F d Y"}}</h3>
<a href="{% url 'lifting-day' next_date.year next_date.month next_date.day %}">Next &rarr;</a>
</section>
</section>
2015-04-06 18:25:49 +00:00
<section class="row">
2015-04-08 15:46:09 +00:00
<section class="col-sm-5">
2015-04-06 18:25:49 +00:00
<table class="table day-workouts">
<thead>
<tr>
<th>Exercise</th>
<th>Weight</th>
<th>Reps</th>
<tr>
</thead>
<tbody>
{% for set in sets %}
<tr>
2015-04-08 15:21:37 +00:00
<td><a href="{% url 'lift-detail' set.exercise.id %}">{{set.exercise}}</a></td>
2015-04-06 18:53:17 +00:00
<td>{% mass_unit set.weight_kg %}</td>
2015-04-06 18:25:49 +00:00
<td>{{set.reps}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
</section>
2015-04-06 17:51:33 +00:00
{% endblock %}