Private
Public Access
1
0

adding coach trial functionality

This commit is contained in:
Sander Roosendaal
2022-08-24 13:32:53 +02:00
parent 85612b2a47
commit 936a524804
10 changed files with 140 additions and 15 deletions

View File

@@ -249,7 +249,21 @@
{% endif %}
</td>
<td>
&nbsp;
{% 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 %}
&nbsp;
{% endif %}
</td>
</tr>
<tr>