Private
Public Access
1
0

copy/pasts plan to calendar

This commit is contained in:
Sander Roosendaal
2021-03-11 19:42:20 +01:00
parent 09558e848b
commit 99b1514d13
3 changed files with 111 additions and 5 deletions

View File

@@ -10,6 +10,14 @@
<ul class="main-content">
<li class="grid_4">
<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>
<li class="grid_2">
<table width="100%" class="listtable">
<thead>
<tr>
@@ -34,6 +42,23 @@
</tbody>
</table>
</li>
<li class="grid_2">
<p>
When you submit this form, a training plan will be created based on {{ plan.name }}, ending at your target date,
and the sessions will be copied to your session calendar.
</p>
<p>
You can select the end date manually or use the training target (if you have any), and the plan will start at
the date it needs to complete in time.
</p>
<form enctype="multipart/form-data" action="" method="post">
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<p><input class="button" type="submit" value="Create Plan and Add Sessions"></p>
</form>
</li>
</ul>
{% endblock %}