Private
Public Access
1
0

linking back to plan

This commit is contained in:
Sander Roosendaal
2018-09-13 12:54:30 +02:00
parent 1acb549711
commit 0e2c5c9d39
3 changed files with 87 additions and 27 deletions

View File

@@ -1,14 +1,18 @@
{% load rowerfilters %}
<div class="grid_2 alpha">
<p>
{% if timeperiod and rower %}
<a class="button gray small" href="/rowers/sessions/{{ timeperiod }}/rower/{{ rower.id }}">Plan Overview</a>
{% elif timeperiod %}
<a class="button gray small" href="/rowers/sessions/{{ timeperiod }}">Plan Overview</a>
{% else %}
<a class="button gray small" href="/rowers/sessions">Plan Overview</a>
{% endif %}
</p>
<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 %}
<a class="button gray small" href="/rowers/plan/{{ plan.id }}">Plan Overview</a>
</div>
</div>
</div>
<div class="grid_2">
<p>