Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-03-22 19:30:56 +01:00
parent 085cec6d43
commit c07b06328e
3 changed files with 38 additions and 7 deletions

View File

@@ -11,6 +11,11 @@
<ul class="main-content">
<li class="grid_4">
<p>Created by: {{ plan.owner.first_name }} {{ plan.owner.last_name }}</p>
{% if plan.url %}
<p>Link:
<a href="{{ plan.url }}" target="_">{{ plan.url }}</a>
</p>
{% endif %}
<p>Plan length: {{ plan.duration }} days</p>
<p>{{ plan.description }}</p>
<p>{{ plan.target }}</p>
@@ -18,27 +23,37 @@
<p>{{ plan.hoursperweek }} hours per week</p>
<p>{{ plan.sessionsperweek }} sessions per week</p>
</li>
<li class="grid_2">
<table width="100%" class="listtable">
<li class="grid_4">
<table width="100%" class="listtable shortpadded">
<thead>
<tr>
<th>Week</th>
<th>Day</th>
<th>Workouts</th>
<th>Day 1</th>
<th>Day 2</th>
<th>Day 3</th>
<th>Day 4</th>
<th>Day 5</th>
<th>Day 6</th>
<th>Day 7</th>
</tr>
</thead>
<tbody>
{% for day in trainingdays %}
{% if day.order|weekbegin %}
<tr>
<td>{{ day.week }}</td>
<td>{{ day.order }}</td>
<td>
<td width="5%">
Week {{ day.week }}
</td>
{% endif %}
<td width="14%">
{% for workout in day.workouts %}
<h3>{{ workout.workoutName }}</h3>
{{ workout|steptostring|safe }}
{% endfor %}
</td>
{% if day.order|weekend %}
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>