can now create new instantplan
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user