Private
Public Access
1
0

attach workouts to sessions version 0

This commit is contained in:
Sander Roosendaal
2018-02-07 16:37:03 +01:00
parent d3448c66f1
commit 91d59dfc28
13 changed files with 483 additions and 61 deletions

View File

@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Planned Sessions{% endblock %}
@@ -36,8 +37,10 @@
</div>
</div>
<div class="grid_12 alpha">
{% if plannedsessions %}
<p>
Click on session name to view
Click on session name to view, edit to change the session and on the
traffic light symbol to add workouts to the session
</p>
<table width="80%" class="listtable shortpadded">
<thead>
@@ -45,10 +48,11 @@
<th>After</th>
<th>Before</th>
<th>Name</th>
<th>Edit</th>
<th>Value</th>
<th>&nbsp;</th>
<th>Type</th>
<th>Done</th>
<th>Status</th>
<th>
</tr>
</thead>
@@ -66,13 +70,37 @@
href="/rowers/sessions/{{ ps.id }}">Unnamed Session</a>
{% endif %}
</td>
<td>
{% if ps.manager == request.user %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}/edit">Edit</a>
{% else %}
&nbsp;
{% endif %}
</td>
<td> {{ ps.sessionvalue }} </td>
<td> {{ ps.sessionunit }} </td>
<td> {{ ps.sessiontype }} </td>
<td>
{% if completeness|lookup:ps.id == 'not done' %}
<a class="white dot" href="/rowers/sessions/manage/{{ timeperiod }}/rower/{{ rower.id }}">&nbsp;</a>
{% elif completeness|lookup:ps.id == 'completed' %}
<a class="green dot" href="/rowers/sessions/manage/{{ timeperiod }}/rower/{{ rower.id }}">&nbsp;</a>
{% elif completeness|lookup:ps.id == 'partial' %}
<a class="orange dot" href="/rowers/sessions/manage/{{ timeperiod }}/rower/{{ rower.id }}">&nbsp;</a>
{% else %}
<a class="red dot" href="/rowers/sessions/manage/{{ timeperiod }}/rower/{{ rower.id }}">&nbsp;</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
You have no planned workouts for this period. Planned workouts are created
by your coach if you are part of a team. You can create your own
planned workouts by purchasing the "Coach" or "Self-Coach" plans.
{% endif %}
</div>