Private
Public Access
1
0

landing page preferences link to prefs

This commit is contained in:
Sander Roosendaal
2018-11-27 14:10:34 +01:00
parent 2f17ca12ec
commit 35f298f63d
3 changed files with 3 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ class RowerInline(admin.StackedInline):
fieldsets = (
('Rower Plan',
{'fields':('rowerplan','planexpires','teamplanexpires','clubsize','protrialexpires','plantrialexpires',)}),
{'fields':('rowerplan','paymenttype','planexpires','teamplanexpires','clubsize','protrialexpires','plantrialexpires',)}),
('Rower Settings',
{'fields':
('gdproptin','gdproptindate','weightcategory','sex','birthdate','getemailnotifications',

View File

@@ -704,6 +704,7 @@ class Rower(models.Model):
choices=plans)
paymenttype = models.CharField(
default='single',max_length=30,
verbose_name='Payment Type',
choices=(
('single','single'),
('recurring','recurring')

View File

@@ -165,7 +165,7 @@
</li>
{% if user.is_authenticated %}
<li>
<a href="/rowers/me/edit" title="Profile">
<a href="/rowers/me/preferences" title="Profile">
{% if user.rower.rowerplan == 'pro' %}
<i class="fas fa-user-ninja "></i>
{% elif user.rower.rowerplan == 'coach' %}