diff --git a/rowers/middleware.py b/rowers/middleware.py index 35a979ca..c7a8df6d 100644 --- a/rowers/middleware.py +++ b/rowers/middleware.py @@ -124,7 +124,7 @@ class RowerPlanMiddleWare(object): self.get_response = get_response def __call__(self, request): - if request.user.is_authenticated and request.user.rower.rowerplan != 'basic': + if request.user.is_authenticated and request.user.rower.rowerplan not in ['basic','freecoach']: if request.user.rower.paymenttype == 'single': if request.user.rower.planexpires < timezone.now().date(): messg = 'Your paid plan has expired. We have reset you to a free basic plan.' diff --git a/rowers/templates/freecoach_registration_form.html b/rowers/templates/freecoach_registration_form.html new file mode 100644 index 00000000..dfa330bb --- /dev/null +++ b/rowers/templates/freecoach_registration_form.html @@ -0,0 +1,51 @@ +{% extends "newbase.html" %} +{% load staticfiles %} +{% load rowerfilters %} +{% block title %}New User Registration{% endblock title %} +{% block meta %} + +{% endblock %} +{% block main %} +
+ Please correct the error{{ form.errors|pluralize }} below. +
+ {% endif %} + + +To use rowsandall, you need to register and agree with the Terms of Service.
+Registration is free.
+ +Some of our advanced services only work if you give us your + (approximate) birth date, sex and weight category, with 72.5 kg the + bounday between heavies and lighties for men, and 59 kg for women. +
+ +Also, we are restricting access to the site to 16 years and older + because of EU data protection regulations.
+