mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Add left-hand navigation to pricing pages
So that you don’t have to use the footer navigation to switch between these related pages. Matches the template we use for organising features-related content.
This commit is contained in:
@@ -16,7 +16,7 @@ from app import email_branding_client, letter_branding_client, status_api_client
|
||||
from app.main import main
|
||||
from app.main.forms import FieldWithNoneOption, SearchByNameForm
|
||||
from app.main.views.feedback import QUESTION_TICKET_TYPE
|
||||
from app.main.views.sub_navigation_dictionaries import features_nav
|
||||
from app.main.views.sub_navigation_dictionaries import features_nav, pricing_nav
|
||||
from app.utils import get_logo_cdn_domain
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ def pricing():
|
||||
for cc, country in INTERNATIONAL_BILLING_RATES.items()
|
||||
], key=lambda x: x[0]),
|
||||
search_form=SearchByNameForm(),
|
||||
navigation_links=pricing_nav(),
|
||||
)
|
||||
|
||||
|
||||
@@ -83,7 +84,8 @@ def pricing():
|
||||
def how_to_pay():
|
||||
return render_template(
|
||||
'views/pricing/how-to-pay.html',
|
||||
support_link=url_for('main.feedback', ticket_type=QUESTION_TICKET_TYPE)
|
||||
support_link=url_for('main.feedback', ticket_type=QUESTION_TICKET_TYPE),
|
||||
navigation_links=pricing_nav(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -39,3 +39,16 @@ def features_nav():
|
||||
"link": "main.terms",
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
def pricing_nav():
|
||||
return [
|
||||
{
|
||||
"name": "Pricing",
|
||||
"link": "main.pricing",
|
||||
},
|
||||
{
|
||||
"name": "How to pay",
|
||||
"link": "main.how_to_pay",
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user