Private
Public Access
1
0

added explanation on team page

This commit is contained in:
Sander Roosendaal
2019-08-28 21:21:55 +02:00
parent 83e14c1785
commit a22283bb20
2 changed files with 8 additions and 4 deletions

View File

@@ -137,10 +137,6 @@ class RowerPlanMiddleWare(object):
r.paidplan = basicplans[0]
r.save()
# remove from Free Coach groups
for group in r.coachinggroups.all():
coach = rower.objects.get(mycoachgroup=group)
if coach.rowerplan == 'freecoach':
r.coachinggroups.remove(group)
# send email
job = myqueue(queue,

View File

@@ -54,6 +54,14 @@
{% if team.manager == user %}
<p>Use the form to add a new user. You can either select a user from the list of your existing club members who are not on this team yet, or you can type the user's email address, which also works for users who have not registered to the site yet.</p>
{% if team.manager.rower.rowerplan == 'freecoach' %}
<p>
As a Free Coach user, your team members can only be users on a paid
plan. You can also upgrade to a
<a href="/rowers/paidplans/">Paid Coach Plan</a>
which allows you to coach users on a free Rower Plan.
</p>
{% endif %}
{% if inviteform.errors %}
<p style="color: red;">
Please correct the error{{ inviteform.errors|pluralize }} below.