Private
Public Access
1
0

can now create new instantplan

This commit is contained in:
Sander Roosendaal
2021-03-11 15:53:01 +01:00
parent 64a1b14536
commit 09558e848b
4 changed files with 30 additions and 18 deletions

View File

@@ -9,10 +9,16 @@
<h1>Training Plans</h1>
<ul class="main-content">
{% for plan in trainingdict %}
<li>
<p><a href="/rowers/plans/{{ plan.ID }}">{{ plan.name }}</a></p>
<p>{{ plan.plan|lookup:"duration"}}</p>
{% for plan in plans %}
<li class="rounder">
<h2><a href="/rowers/plans/{{ plan.uuid }}">{{ plan.name }}</a></h2>
<p>Created by: {{ plan.owner.first_name }} {{ plan.owner.last_name }}</p>
<p>Plan length: {{ plan.duration }} days</p>
<p>{{ plan.description }}</p>
<p>{{ plan.target }}</p>
<p>Goal: {{ plan.goal }}</p>
<p>{{ plan.hoursperweek }} hours per week</p>
</li>
{% endfor %}
{% if user.is_authenticated and user.is_staff %}