landing page preferences link to prefs
This commit is contained in:
@@ -20,7 +20,7 @@ class RowerInline(admin.StackedInline):
|
|||||||
|
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
('Rower Plan',
|
('Rower Plan',
|
||||||
{'fields':('rowerplan','planexpires','teamplanexpires','clubsize','protrialexpires','plantrialexpires',)}),
|
{'fields':('rowerplan','paymenttype','planexpires','teamplanexpires','clubsize','protrialexpires','plantrialexpires',)}),
|
||||||
('Rower Settings',
|
('Rower Settings',
|
||||||
{'fields':
|
{'fields':
|
||||||
('gdproptin','gdproptindate','weightcategory','sex','birthdate','getemailnotifications',
|
('gdproptin','gdproptindate','weightcategory','sex','birthdate','getemailnotifications',
|
||||||
|
|||||||
@@ -704,6 +704,7 @@ class Rower(models.Model):
|
|||||||
choices=plans)
|
choices=plans)
|
||||||
paymenttype = models.CharField(
|
paymenttype = models.CharField(
|
||||||
default='single',max_length=30,
|
default='single',max_length=30,
|
||||||
|
verbose_name='Payment Type',
|
||||||
choices=(
|
choices=(
|
||||||
('single','single'),
|
('single','single'),
|
||||||
('recurring','recurring')
|
('recurring','recurring')
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li>
|
<li>
|
||||||
<a href="/rowers/me/edit" title="Profile">
|
<a href="/rowers/me/preferences" title="Profile">
|
||||||
{% if user.rower.rowerplan == 'pro' %}
|
{% if user.rower.rowerplan == 'pro' %}
|
||||||
<i class="fas fa-user-ninja "></i>
|
<i class="fas fa-user-ninja "></i>
|
||||||
{% elif user.rower.rowerplan == 'coach' %}
|
{% elif user.rower.rowerplan == 'coach' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user