works but cannot change address
This commit is contained in:
@@ -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 }}€</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">
|
||||
|
||||
Reference in New Issue
Block a user