Private
Public Access
1
0

works but cannot change address

This commit is contained in:
Sander Roosendaal
2021-03-24 06:35:25 +01:00
parent 9a06a8902f
commit a9091bfed7
12 changed files with 419 additions and 10 deletions

View File

@@ -27,6 +27,11 @@
<p>What the plan will achieve: {{ plan.target }}</p>
{% endif %}
<p>Weekly volume: {{ plan.hoursperweek }} hours per week over {{ plan.sessionsperweek }} sessions.</p>
{% if plan.price == 0 %}
<p>Price: Free</p>
{% else %}
<p>Price: {{ plan.price }}&euro;</p>
{% endif %}
</li>
<li class="grid_2">
<p>
@@ -37,12 +42,20 @@
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>
{% if plan.price == 0 %}
<form enctype="multipart/form-data" action="" method="post">
{% else %}
<form enctype="multipart/form-data" action="/rowers/buyplan/{{ plan.id }}/" method="post">
{% endif %}
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
{% if plan.price == 0 %}
<p><input class="button" type="submit" value="Create Plan and Add Sessions"></p>
{% else %}
<p><input class="button" type="submit" action="/rowers/buyplan/{{ plan.id }}/" value="BUY NOW and Add Sessions"></p>
{% endif %}
</form>
</li>
<li class="grid_4">