mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 02:44:10 -04:00
Change both existing branding URLs
This changes the URLs for someone to request new email or letter branding to match the new URLs we've agreed for the new email branding changes. The old URLs are still in place for now too to keep backwards compatibility.
This commit is contained in:
@@ -1154,6 +1154,7 @@ def create_email_branding_zendesk_ticket(form_option_selected, detail=None):
|
||||
|
||||
|
||||
@main.route("/services/<uuid:service_id>/branding-request/email", methods=['GET', 'POST'])
|
||||
@main.route("/services/<uuid:service_id>/service-settings/email-branding", methods=['GET', 'POST'])
|
||||
@user_has_permissions('manage_service')
|
||||
def email_branding_request(service_id):
|
||||
form = BrandingOptions(current_service, branding_type='email')
|
||||
@@ -1260,6 +1261,7 @@ def email_branding_something_else(service_id):
|
||||
|
||||
|
||||
@main.route("/services/<uuid:service_id>/branding-request/letter", methods=['GET', 'POST'])
|
||||
@main.route("/services/<uuid:service_id>/service-settings/letter-branding", methods=['GET', 'POST'])
|
||||
@user_has_permissions('manage_service')
|
||||
def letter_branding_request(service_id):
|
||||
form = BrandingOptions(current_service, branding_type='letter')
|
||||
|
||||
@@ -5761,7 +5761,7 @@ def test_service_settings_links_to_branding_request_page_for_letters(
|
||||
page = client_request.get(
|
||||
'.service_settings', service_id=SERVICE_ONE_ID
|
||||
)
|
||||
assert len(page.find_all('a', attrs={'href': '/services/{}/branding-request/letter'.format(SERVICE_ONE_ID)})) == 1
|
||||
assert len(page.find_all('a', attrs={'href': f'/services/{SERVICE_ONE_ID}/service-settings/letter-branding'})) == 1
|
||||
|
||||
|
||||
def test_show_service_data_retention(
|
||||
|
||||
Reference in New Issue
Block a user