bia-fitness/templates/lifting/month.html

53 lines
1.6 KiB
HTML
Raw Normal View History

2015-04-03 20:46:59 +00:00
{% extends "base.html" %}
{% block content %}
2015-04-06 15:43:36 +00:00
<section class="row header-row">
<section class="col-sm-12">
<a href="{% url 'lifting-month' prev_date.year prev_date.month %}">&larr; Previous</a>
<h3 class="month-name">{{date|date:"F Y"}}</h3>
<a href="{% url 'lifting-month' next_date.year next_date.month %}">Next &rarr;</a>
2015-04-03 20:46:59 +00:00
</section>
</section>
<section class="row">
<section class="col-sm-12">
2015-04-03 21:09:38 +00:00
<table class="table calendar-month">
2015-04-03 20:46:59 +00:00
<thead>
<tr>
<th>Sunday</th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
<tr>
</thead>
<tbody>
{% for week in days %}
<tr>
{% for day in week %}
2015-04-03 21:09:38 +00:00
<td class="calendar-day">
2015-04-03 20:46:59 +00:00
{% if day %}
2015-04-06 17:51:33 +00:00
<div class="day-number">
<a href="{% url 'lifting-day' date.year date.month day.number %}">{{day.number}}</a>
</div>
2015-04-06 15:43:36 +00:00
<ul class="month-day-list">
2015-04-03 21:09:38 +00:00
{% for set in day.sets %}
<li>
{{set}}
</li>
{% endfor %}
</ul>
2015-04-03 20:46:59 +00:00
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</section>
</section>
{% endblock %}