adding coach trial functionality
This commit is contained in:
@@ -249,7 +249,21 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
|
||||
{% if user.is_anonymous %}
|
||||
<button style="width:100%">
|
||||
<a href="/rowers/startcoachtrial/">Free COACH trial</a>
|
||||
</button>
|
||||
{% elif rower and rower.rowerplan == 'basic' and rower.coachtrialexpires|date_dif == 1 %}
|
||||
<button style="width:100%">
|
||||
<a href="/rowers/startcoachtrial/">Free COACH trial</a>
|
||||
</button>
|
||||
{% elif rower and rower.rowerplan == 'pro' and rower.coachtrialexpires|date_dif == 1 %}
|
||||
<button style="width:100%">
|
||||
<a href="/rowers/startcoachtrial/">Free COACH trial</a>
|
||||
</button>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user