tested upgrade stuff, improved new user emails
This commit is contained in:
@@ -241,7 +241,6 @@ def create_subscription(rower,data):
|
|||||||
"payment_method_nonce": nonce_from_the_client
|
"payment_method_nonce": nonce_from_the_client
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
if result.is_success:
|
if result.is_success:
|
||||||
payment_method_token = result.payment_method.token
|
payment_method_token = result.payment_method.token
|
||||||
else:
|
else:
|
||||||
@@ -252,6 +251,7 @@ def create_subscription(rower,data):
|
|||||||
"plan_id": plan.external_id
|
"plan_id": plan.external_id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
if result.is_success:
|
if result.is_success:
|
||||||
rower.paidplan = plan
|
rower.paidplan = plan
|
||||||
rower.planexpires = result.subscription.billing_period_end_date
|
rower.planexpires = result.subscription.billing_period_end_date
|
||||||
|
|||||||
@@ -597,7 +597,7 @@ def process_request_code(manager,code):
|
|||||||
if rekwest.team.manager != manager:
|
if rekwest.team.manager != manager:
|
||||||
return (0,'You are not the manager of this team')
|
return (0,'You are not the manager of this team')
|
||||||
|
|
||||||
result = add_member(t.id,r)
|
result,comment = add_member(t.id,r)
|
||||||
if not result:
|
if not result:
|
||||||
return (result,"The member couldn't be added")
|
return (result,"The member couldn't be added")
|
||||||
|
|
||||||
@@ -622,7 +622,7 @@ def process_invite_code(user,code):
|
|||||||
return (0,'The invitation has expired')
|
return (0,'The invitation has expired')
|
||||||
|
|
||||||
t = invitation.team
|
t = invitation.team
|
||||||
result = add_member(t.id,r)
|
result, comment = add_member(t.id,r)
|
||||||
if not result:
|
if not result:
|
||||||
return (result,"The member couldn't be added")
|
return (result,"The member couldn't be added")
|
||||||
|
|
||||||
|
|||||||
42
rowers/templates/coachregisteremail.html
Normal file
42
rowers/templates/coachregisteremail.html
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{% extends "emailbase.html" %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<p>Dear <strong>{{ first_name }}</strong>,</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Thank you for registering on rowsandall.com.
|
||||||
|
You can now login using the credentials you provided.
|
||||||
|
The first thing you should do is go to the
|
||||||
|
<a href="https://rowsandall.com/rowers/me/edit/">Settings page</a>
|
||||||
|
and make yourself familiar with the various options
|
||||||
|
available to personalize your experience on the website.
|
||||||
|
To get there, use the link in the email or click the user icon
|
||||||
|
in the upper right corner of the opening page.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
As a new member on the free coach plan, you can start with your first training
|
||||||
|
group and invite athletes to join it.
|
||||||
|
For more information about training groups and managing athletes, please read
|
||||||
|
our explanation at
|
||||||
|
<a href="https://analytics.rowsandall.com/2019/02/24/managing-a-rowing-training-group-coaching-and-remote-coaching-on-rowsandall-com/">https://analytics.rowsandall.com/2019/02/24/managing-a-rowing-training-group-coaching-and-remote-coaching-on-rowsandall-com/</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
As long as you are on the free coach plan, you can only managing athletes who are
|
||||||
|
on one of the paid plans. To remove this limitation, upgrade to one of the paid
|
||||||
|
coaching plans:
|
||||||
|
<a href="https://rowsandall.com/rowers/paidplans">https://rowsandall.com/rowers/paidplans</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Oh, one more thing. The site is
|
||||||
|
developing fast. Bear with us. Don't hesitate to
|
||||||
|
contact me at info@rowsandall.com if anything is broken
|
||||||
|
or doesn't seem to work as advertised.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Best Regards, the Rowsandall Team
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
||||||
@@ -250,6 +250,16 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
{% elif rower and rower.rowerplan == 'freecoach' %}
|
||||||
|
<td colspan="3">
|
||||||
|
<button style="width:100%">
|
||||||
|
{% if user|existing_customer %}
|
||||||
|
<a href="/rowers/upgrade/">UPGRADE NOW</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="/rowers/billing/">BUY NOW</a>
|
||||||
|
{% endif %}
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
{% elif rower and rower.rowerplan == 'pro' %}
|
{% elif rower and rower.rowerplan == 'pro' %}
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
<a href="https://rowsandall.com/rowers/me/edit/">Settings page</a>
|
<a href="https://rowsandall.com/rowers/me/edit/">Settings page</a>
|
||||||
and make yourself familiar with the various options
|
and make yourself familiar with the various options
|
||||||
available to personalize your experience on the website.
|
available to personalize your experience on the website.
|
||||||
To get there, use the link in the email or click the button
|
To get there, use the link in the email or click the user icon
|
||||||
with your first name on it in the upper right corner of the opening page.
|
in the upper right corner of the opening page.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -614,7 +614,7 @@ def freecoach_register_view(request):
|
|||||||
d = {'first_name':theuser.first_name}
|
d = {'first_name':theuser.first_name}
|
||||||
|
|
||||||
send_template_email(from_address,[fullemail],
|
send_template_email(from_address,[fullemail],
|
||||||
subject,'registeremail.html',d)
|
subject,'coachregisteremail.html',d)
|
||||||
|
|
||||||
|
|
||||||
subject2 = "New Free Coach"
|
subject2 = "New Free Coach"
|
||||||
|
|||||||
Reference in New Issue
Block a user