mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-17 21:20:32 -04:00
Show different page for local org users when adding new service
This commit is contained in:
@@ -80,6 +80,13 @@ def add_service():
|
||||
template_id=example_sms_template['data']['id']
|
||||
))
|
||||
else:
|
||||
if default_organisation_type == 'local':
|
||||
return render_template(
|
||||
'views/add-service-local.html',
|
||||
form=form,
|
||||
heading=heading,
|
||||
default_organisation_type=default_organisation_type,
|
||||
)
|
||||
return render_template(
|
||||
'views/add-service.html',
|
||||
form=form,
|
||||
|
||||
@@ -88,7 +88,7 @@ def test_show_different_page_if_user_org_type_is_local(
|
||||
assert page.select_one('h1').text.strip() == 'About your service'
|
||||
assert page.select_one('input[name=name]')['value'] == ''
|
||||
assert page.select_one('main .govuk-body').text.strip() == (
|
||||
'Give your service a name that tells users what your'
|
||||
'Give your service a name that tells users what your '
|
||||
'messages are about, as well as who they’re from. For example:')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user