Merge pull request #3058 from alphagov/content-updates-july

Settings content updates
This commit is contained in:
karlchillmaid
2019-07-24 14:17:21 +01:00
committed by GitHub
10 changed files with 22 additions and 22 deletions

View File

@@ -153,7 +153,7 @@
{% endcall %}
{% call settings_row(if_has_permission='sms') %}
{{ text_field('Text messages start with service name') }}
{{ text_field('Start text messages with service name') }}
{{ boolean_field(current_service.prefix_sms) }}
{{ edit_field(
'Change',
@@ -260,7 +260,7 @@
<p>
{% if current_user.has_permissions('manage_service') %}
To remove these restrictions
To remove these restrictions, you can send us a
<a href="{{ url_for('.request_to_go_live', service_id=current_service.id) }}">request to go live</a>.
{% else %}
Your service manager can ask to have these restrictions removed.

View File

@@ -39,7 +39,7 @@
</fieldset>
<p class="form-group">
Well email you once your brandings ready to use, or if we need any
more info.
more information.
</p>
{{ page_footer('Request new branding') }}
{% endcall %}

View File

@@ -20,7 +20,7 @@
{% call form_wrapper() %}
{{ textbox(
form.letter_contact_block,
label='This will appear as the sender address on your letters.'|safe,
label='This will appear as the sender address on your letters.'|safe,
hint='10 lines maximum',
width='1-2',
rows=10,

View File

@@ -18,7 +18,7 @@
{% call form_wrapper() %}
{{ textbox(
form.letter_contact_block,
label='This will appear as the sender address on your letters.'|safe,
label='This will appear as the sender address on your letters.'|safe,
hint='10 lines maximum',
width='1-2',
rows=10,
@@ -28,7 +28,7 @@
{% if form.is_default.data %}
<p class="form-group">
This is the default address for {{ current_service.name }}
This is currently your default address for {{ current_service.name }}.
</p>
{% else %}
<div class="form-group">

View File

@@ -20,7 +20,7 @@
{% if current_service.prefix_sms %}
<p>Users will see your service name:</p>
<ul class="list-bullet">
<li>at the start of every text message, eg {{ current_service.name }}: This is an example message</li>
<li>at the start of every text message</li>
<li>as your email sender name</li>
</ul>
{% else %}

View File

@@ -21,7 +21,7 @@
Your letters have the {{ current_service.letter_branding.name }} logo.
</p>
<p>
<a href="{{ url_for('main.feedback', ticket_type='ask-question-give-feedback', body='letter-branding') }}">Contact support</a>
<a href="{{ url_for('main.feedback', ticket_type='ask-question-give-feedback', body='letter-branding') }}">Contact us</a>
if you want to use a different logo.
</p>
{% else %}

View File

@@ -33,10 +33,10 @@
<a href="{{ url_for('.support') }}">Contact us</a> if you want to be able to receive text messages from your users.
</p>
<p>
Well create a special phone number for your users to contact. You'll be able to see
Well create a special phone number for them to contact. You'll be able to see
the messages on your dashboard, or get them using the API.
</p>
It doesnt cost you anything to receive messages. Users will pay their normal rate for
It does not cost you anything to receive text messages. Users will pay their normal rate for
messaging a mobile number.
</p>
{% endif %}

View File

@@ -5,13 +5,13 @@
{% from "components/form.html" import form_wrapper %}
{% block service_page_title %}
Text messages start with service name
Start text messages with service name
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'Text messages start with service name',
'Start text messages with service name',
back_link=url_for('main.service_settings', service_id=current_service.id)
) }}

View File

@@ -31,7 +31,7 @@
{% endif %}
{% if form.is_default.data %}
<p class="form-group">
This is the default text message sender
This is the default text message sender.
</p>
{{ page_footer('Save') }}
{% else %}

View File

@@ -71,7 +71,7 @@ def mock_get_service_settings_page_common(
'Label Value Action',
'Send text messages On Change',
'Text message sender GOVUK Change',
'Text messages start with service name On Change',
'Start text messages with service name On Change',
'International text messages Off Change',
'Receive text messages Off Change',
@@ -93,7 +93,7 @@ def mock_get_service_settings_page_common(
'Label Value Action',
'Send text messages On Change',
'Text message sender GOVUK Change',
'Text messages start with service name On Change',
'Start text messages with service name On Change',
'International text messages Off Change',
'Receive text messages Off Change',
@@ -207,7 +207,7 @@ def test_organisation_name_links_to_org_dashboard(
'Label Value Action',
'Send text messages On Change',
'Text message sender GOVUK Change',
'Text messages start with service name On Change',
'Start text messages with service name On Change',
'International text messages On Change',
'Receive text messages On Change',
@@ -228,7 +228,7 @@ def test_organisation_name_links_to_org_dashboard(
'Label Value Action',
'Send text messages On Change',
'Text message sender GOVUK Change',
'Text messages start with service name On Change',
'Start text messages with service name On Change',
'International text messages Off Change',
'Receive text messages Off Change',
@@ -341,7 +341,7 @@ def test_should_show_service_name(
assert page.find('input', attrs={"type": "text"})['value'] == 'service one'
assert page.select_one('main p').text == 'Users will see your service name:'
assert normalize_spaces(page.select_one('main ul').text) == (
'at the start of every text message, eg service one: This is an example message '
'at the start of every text message '
'as your email sender name'
)
app.service_api_client.get_service.assert_called_with(SERVICE_ONE_ID)
@@ -400,7 +400,7 @@ def test_should_not_hit_api_if_service_name_hasnt_changed(
@pytest.mark.parametrize('user, expected_text, expected_link', [
(
active_user_with_permissions,
'To remove these restrictions request to go live.',
'To remove these restrictions, you can send us a request to go live.',
True,
),
(
@@ -2594,7 +2594,7 @@ def test_edit_sms_sender(
(
'main.service_edit_letter_contact',
get_default_letter_contact_block,
'This is the default address for service one',
'This is currently your default address for service one.',
'letter_contact_id',
False
),
@@ -2608,14 +2608,14 @@ def test_edit_sms_sender(
(
'main.service_edit_sms_sender',
get_default_sms_sender,
'This is the default text message sender',
'This is the default text message sender.',
'sms_sender_id',
False
),
(
'main.service_edit_sms_sender',
get_non_default_sms_sender,
'This is the default text message sender',
'This is the default text message sender.',
'sms_sender_id',
True
)