Private
Public Access
1
0

next steps in training plan/target

- delete cycles
- change user
This commit is contained in:
Sander Roosendaal
2018-09-10 15:10:43 +02:00
parent 2c4c0030b4
commit 357193c9c8
7 changed files with 219 additions and 52 deletions

View File

@@ -18,7 +18,18 @@
<div class="grid_12">
<div class="grid_12 alpha">
<h1>Training Plan - {{ plan.name }}</h1>
<p><a href="/rowers/editplan/{{ plan.id }}">Edit</a></p>
<p>This plan starts on {{ plan.startdate }} and ends on {{ plan.enddate }}. The training plan target is: {{ plan.target.name }} on {{ plan.target.date }}.</p>
<p><a href="/rowers/editplan/{{ plan.id }}">Edit the plan</a></p>
<p>Click on the plan cycles below to edit their names, start and end dates. The gray "filler"
cycles are generated, adjusted and deleted automatically to ensure the entire plan
duration is covered with non-overlapping cycles.
Once you edit a filler cycle, it become a user-defined cycle, which cannot be deleted
by the system.</p>
<p>A good way to organize the plan is to think of micro cycles as training weeks. Macro cycles
are typically used to address specific phases of preparation and to indicate the racing
season and may span several months.
Meso cycles can be used to group sequences of three to five light, medium and
hard weeks. </p>
</div>
<div class="grid_4 alpha">
<h2>Macro Cycles</h2>
@@ -33,26 +44,45 @@
<div class="grid_12 alpha">
{% for key,macrocycle in cycles.items %}
<div class="grid_12 alpha">
<div class="grid_4 palegreen alpha">
{% if macrocycle.0.type == 'filler' %}
<div class="grid_4 filler alpha">
{% else %}
<div class="grid_4 palegreen alpha">
{% endif %}
<div class="padded">
<h3>{{ macrocycle.0.name }} ({{ macrocycle.0.startdate }} - {{ macrocycle.0.enddate }})</h3>
<p><a href="/rowers/macrocycle/{{ macrocycle.0.id }}">edit</a></p>
<p><a href="/rowers/macrocycle/{{ macrocycle.0.id }}">edit</a>
/
<a href="/rowers/deletemacrocycle/{{ macrocycle.0.id }}">delete</a></p>
</div>
</div>
<div class="grid_8 alpha">
{% for key, mesocycle in macrocycle.1.items %}
{% if mesocycle.0.type == 'filler' %}
<div class="grid_4 filler alpha">
{% else %}
<div class="grid_4 lightsalmon alpha">
{% endif %}
<div class="padded">
<h3>{{ mesocycle.0.name }} ({{ mesocycle.0.startdate }} - {{ mesocycle.0.enddate }})</h3>
<p><a href="/rowers/mesocycle/{{ mesocycle.0.id }}">edit</a></p>
<p><a href="/rowers/mesocycle/{{ mesocycle.0.id }}">edit</a>
/
<a href="/rowers/deletemesocycle/{{ mesocycle.0.id }}">delete</a></p>
</div>
</div>
<div class="grid_4 omega">
{% for microcycle in mesocycle.1 %}
<div class="grid_4 paleblue ">
{% if microcycle.type == 'filler' %}
<div class="grid_4 filler">
{% else %}
<div class="grid_4 paleblue ">
{% endif %}
<div class="padded">
<h3>{{ microcycle.name }} ({{ microcycle.startdate }} - {{ microcycle.enddate }})</h3>
<p><a href="/rowers/microcycle/{{ microcycle.id }}">edit</a></p>
<p>
<a href="/rowers/microcycle/{{ microcycle.id }}">edit</a>
/
<a href="/rowers/deletemicrocycle/{{ microcycle.id }}">delete</a></p>
</div>
</div>
{% endfor %}