Private
Public Access
1
0
Files
rowsandall/rowers/templates/planningbuttons.html
Sander Roosendaal f5f6842a7c select back to plan
2018-09-14 06:49:23 +02:00

67 lines
2.5 KiB
HTML

{% load rowerfilters %}
<div class="grid_2 alpha">
<div class="grid_2 dropdown alpha">
<button class="grid_2 alpha button gray small dropbtn">Overview</button>
<div class="dropdown-content">
{% if timeperiod and rower %}
<a class="button gray small" href="/rowers/sessions/{{ timeperiod }}/rower/{{ rower.id }}">Sessions Overview</a>
{% elif timeperiod %}
<a class="button gray small" href="/rowers/sessions/{{ timeperiod }}">Sessions Overview</a>
{% else %}
<a class="button gray small" href="/rowers/sessions">Sessions Overview</a>
{% endif %}
{% if plan %}
<a class="button gray small" href="/rowers/plan/{{ plan.id }}">Plan Overview</a>
{% endif %}
</div>
</div>
</div>
<div class="grid_2">
<p>
{% if timeperiod and rower %}
<a class="button gray small" href="/rowers/sessions/manage/{{ timeperiod }}/rower/{{ rower.id }}">Link to Workouts</a>
{% elif timeperiod %}
<a class="button gray small" href="/rowers/sessions/manage/{{ timeperiod }}">Link to Workouts</a>
{% else %}
<a class="button gray small" href="/rowers/sessions/manage">Link to Workouts</a>
{% endif %}
</p>
</div>
<div class="grid_2">
<p>
{% if timeperiod and rower %}
<a class="button gray small" href="/rowers/sessions/create/{{ timeperiod }}/rower/{{ rower.id }}">Add Session</a>
{% elif timeperiod %}
<a class="button gray small" href="/rowers/sessions/create/{{ timeperiod }}">Add Session</a>
{% else %}
<a class="button gray small" href="/rowers/sessions/create">Add Session</a>
{% endif %}
</p>
</div>
<div class="grid_2">
<a class="button blue small" href="/rowers/sessions/multicreate/{{ timeperiod }}/rower/{{ rower.id }}">Plan Complete MicroCycle ({{ timeperiod|verbosetimeperiod }})</a>
</div>
<div class="grid_2">
{% if user.is_authenticated and user|is_manager %}
{% if timeperiod %}
<a class="button gray small" href="/rowers/sessions/teamcreate/{{ timeperiod }}">Add Team Session</a>
{% else %}
<a class="button gray small" href="/rowers/sessions/teamcreate">Add Team Session</a>
{% endif %}
{% else %}
&nbsp;
{% endif %}
</div>
<div class="grid_2 omega">
{% if user.is_authenticated and user|is_manager %}
{% if timeperiod %}
<a class="button gray small" href="/rowers/sessions/coach/{{ timeperiod }}">Coach Overview</a>
{% else %}
<a class="button gray small" href="/rowers/sessions/coach">Coach Overview</a>
{% endif %}
{% else %}
&nbsp;
{% endif %}
</div>