Make wording on 2nd-level pages match prev. commit

This commit is contained in:
Chris Hill-Scott
2016-01-08 17:17:34 +00:00
parent 11ea68e471
commit 86db5fa0b9
8 changed files with 24 additions and 26 deletions

View File

@@ -34,8 +34,7 @@ def confirm_name_change():
if request.method == 'GET':
return render_template(
'views/service-settings/confirm.html',
heading='Rename service',
submit_button_text='Confirm'
heading='Change your service name'
)
elif request.method == 'POST':
return redirect(url_for('.service_settings'))
@@ -68,8 +67,7 @@ def confirm_status_change():
if request.method == 'GET':
return render_template(
'views/service-settings/confirm.html',
heading='Turn off outgoing messages',
submit_button_text='Confirm',
heading='Turn off all outgoing notifications',
destructive=True
)
elif request.method == 'POST':
@@ -92,8 +90,7 @@ def confirm_delete():
if request.method == 'GET':
return render_template(
'views/service-settings/confirm.html',
heading='Delete service',
submit_button_text='Confirm',
heading='Delete this service from Notify',
destructive=True
)
elif request.method == 'POST':

View File

@@ -13,7 +13,7 @@
{
'title': 'Change your service name',
'link': url_for('.name'),
'hint': 'Your service name ({}) is included in every sent notification'.format(service.name)
'hint': 'Your service name ({}) is included in every sent notification'.format(service.name)
},
{
'title': 'Request to go live and turn off sending restrictions',

View File

@@ -16,7 +16,7 @@ GOV.UK Notify | Service settings
<form method="post">
{{ textbox('new_name', 'Enter your password', password=True) }}
{{ page_footer(
submit_button_text,
'Confirm',
destructive=destructive,
back_link=url_for('.service_settings')
) }}

View File

@@ -7,9 +7,10 @@
{% block maincolumn_content %}
<h1 class="heading-xlarge">Delete this service from Notify</h1>
<div class="grid-row">
<div class="column-three-quarters">
<h1 class="heading-xlarge">Delete service</h1>
<p>
This cant be undone. You will lose:

View File

@@ -8,13 +8,13 @@ GOV.UK Notify | Service settings
{% block maincolumn_content %}
<h1 class="heading-xlarge">Change your service name</h1>
<div class="grid-row">
<div class="column-three-quarters">
<h1 class="heading-xlarge">Rename service</h1>
<p>
Users will see this name where?
Your service name ({{ service.name }}) is included in every sent notification
</p>
<form method="post">

View File

@@ -7,7 +7,7 @@
{% block maincolumn_content %}
<h1 class="heading-xlarge">Request to make service live</h1>
<h1 class="heading-xlarge">Request to go live</h1>
<div class="grid-row">
<div class="column-three-quarters">
@@ -38,7 +38,7 @@
<form method="post">
{{ page_footer(
'Request to make service live',
'Send request',
back_link=url_for('.service_settings')
) }}
</form>

View File

@@ -7,23 +7,23 @@ GOV.UK Notify | Service settings
{% block maincolumn_content %}
<h1 class="heading-xlarge">Turn off outgoing messages</h1>
<h1 class="heading-xlarge">Turn off all outgoing notifications</h1>
<div class="grid-row">
<div class="column-three-quarters">
<p>
Youll still be able to send messages to yourself by uploading a CSV
file.
Youll still be able to send notifications to yourself by uploading a
CSV file.
</p>
<p>
You can start sending messages again when youre ready.
You can start sending notifications again when youre ready.
</p>
<form method="post">
{{ page_footer(
'Turn off outgoing messages',
'Turn off all outgoing notifications',
destructive=True,
back_link=url_for('.service_settings')
) }}

View File

@@ -9,7 +9,7 @@ def test_should_show_service_name(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/name')
assert response.status_code == 200
assert 'Rename service' in response.get_data(as_text=True)
assert 'Change your service name' in response.get_data(as_text=True)
def test_should_redirect_after_change_service_name(notifications_admin):
@@ -23,7 +23,7 @@ def test_should_show_service_name_confirmation(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/name/confirm')
assert response.status_code == 200
assert 'Rename service' in response.get_data(as_text=True)
assert 'Change your service name' in response.get_data(as_text=True)
def test_should_redirect_after_service_name_confirmation(notifications_admin):
@@ -37,7 +37,7 @@ def test_should_show_request_to_go_live(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/request-to-go-live')
assert response.status_code == 200
assert 'Request to make service live' in response.get_data(as_text=True)
assert 'Request to go live' in response.get_data(as_text=True)
def test_should_redirect_after_request_to_go_live(notifications_admin):
@@ -51,7 +51,7 @@ def test_should_show_status_page(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/status')
assert response.status_code == 200
assert 'Turn off outgoing messages' in response.get_data(as_text=True)
assert 'Turn off all outgoing notifications' in response.get_data(as_text=True)
def test_should_show_redirect_after_status_change(notifications_admin):
@@ -65,7 +65,7 @@ def test_should_show_status_confirmation(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/status/confirm')
assert response.status_code == 200
assert 'Turn off outgoing messages' in response.get_data(as_text=True)
assert 'Turn off all outgoing notifications' in response.get_data(as_text=True)
def test_should_redirect_after_status_confirmation(notifications_admin):
@@ -79,7 +79,7 @@ def test_should_show_delete_page(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/delete')
assert response.status_code == 200
assert 'Delete service' in response.get_data(as_text=True)
assert 'Delete this service from Notify' in response.get_data(as_text=True)
def test_should_show_redirect_after_deleting_service(notifications_admin):
@@ -93,7 +93,7 @@ def test_should_show_delete_confirmation(notifications_admin):
response = notifications_admin.test_client().get('/service-settings/delete/confirm')
assert response.status_code == 200
assert 'Delete service' in response.get_data(as_text=True)
assert 'Delete this service from Notify' in response.get_data(as_text=True)
def test_should_redirect_delete_confirmation(notifications_admin):