landing page preferences link to prefs
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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' %}
|
||||
|
||||
Reference in New Issue
Block a user