mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Merge pull request #3058 from alphagov/content-updates-july
Settings content updates
This commit is contained in:
@@ -153,7 +153,7 @@
|
|||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
{% call settings_row(if_has_permission='sms') %}
|
{% 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) }}
|
{{ boolean_field(current_service.prefix_sms) }}
|
||||||
{{ edit_field(
|
{{ edit_field(
|
||||||
'Change',
|
'Change',
|
||||||
@@ -260,7 +260,7 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if current_user.has_permissions('manage_service') %}
|
{% 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>.
|
<a href="{{ url_for('.request_to_go_live', service_id=current_service.id) }}">request to go live</a>.
|
||||||
{% else %}
|
{% else %}
|
||||||
Your service manager can ask to have these restrictions removed.
|
Your service manager can ask to have these restrictions removed.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
We’ll email you once your branding’s ready to use, or if we need any
|
We’ll email you once your branding’s ready to use, or if we need any
|
||||||
more info.
|
more information.
|
||||||
</p>
|
</p>
|
||||||
{{ page_footer('Request new branding') }}
|
{{ page_footer('Request new branding') }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
{% call form_wrapper() %}
|
{% call form_wrapper() %}
|
||||||
{{ textbox(
|
{{ textbox(
|
||||||
form.letter_contact_block,
|
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',
|
hint='10 lines maximum',
|
||||||
width='1-2',
|
width='1-2',
|
||||||
rows=10,
|
rows=10,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
{% call form_wrapper() %}
|
{% call form_wrapper() %}
|
||||||
{{ textbox(
|
{{ textbox(
|
||||||
form.letter_contact_block,
|
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',
|
hint='10 lines maximum',
|
||||||
width='1-2',
|
width='1-2',
|
||||||
rows=10,
|
rows=10,
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
{% if form.is_default.data %}
|
{% if form.is_default.data %}
|
||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
This is the default address for {{ current_service.name }}
|
This is currently your default address for {{ current_service.name }}.
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
{% if current_service.prefix_sms %}
|
{% if current_service.prefix_sms %}
|
||||||
<p>Users will see your service name:</p>
|
<p>Users will see your service name:</p>
|
||||||
<ul class="list-bullet">
|
<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>
|
<li>as your email sender name</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
Your letters have the {{ current_service.letter_branding.name }} logo.
|
Your letters have the {{ current_service.letter_branding.name }} logo.
|
||||||
</p>
|
</p>
|
||||||
<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.
|
if you want to use a different logo.
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -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.
|
<a href="{{ url_for('.support') }}">Contact us</a> if you want to be able to receive text messages from your users.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
We’ll create a special phone number for your users to contact. You'll be able to see
|
We’ll 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.
|
the messages on your dashboard, or get them using the API.
|
||||||
</p>
|
</p>
|
||||||
It doesn’t 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.
|
messaging a mobile number.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
{% from "components/form.html" import form_wrapper %}
|
{% from "components/form.html" import form_wrapper %}
|
||||||
|
|
||||||
{% block service_page_title %}
|
{% block service_page_title %}
|
||||||
Text messages start with service name
|
Start text messages with service name
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
|
|
||||||
{{ page_header(
|
{{ 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)
|
back_link=url_for('main.service_settings', service_id=current_service.id)
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if form.is_default.data %}
|
{% if form.is_default.data %}
|
||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
This is the default text message sender
|
This is the default text message sender.
|
||||||
</p>
|
</p>
|
||||||
{{ page_footer('Save') }}
|
{{ page_footer('Save') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ def mock_get_service_settings_page_common(
|
|||||||
'Label Value Action',
|
'Label Value Action',
|
||||||
'Send text messages On Change',
|
'Send text messages On Change',
|
||||||
'Text message sender GOVUK 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',
|
'International text messages Off Change',
|
||||||
'Receive text messages Off Change',
|
'Receive text messages Off Change',
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ def mock_get_service_settings_page_common(
|
|||||||
'Label Value Action',
|
'Label Value Action',
|
||||||
'Send text messages On Change',
|
'Send text messages On Change',
|
||||||
'Text message sender GOVUK 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',
|
'International text messages Off Change',
|
||||||
'Receive text messages Off Change',
|
'Receive text messages Off Change',
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ def test_organisation_name_links_to_org_dashboard(
|
|||||||
'Label Value Action',
|
'Label Value Action',
|
||||||
'Send text messages On Change',
|
'Send text messages On Change',
|
||||||
'Text message sender GOVUK 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',
|
'International text messages On Change',
|
||||||
'Receive text messages On Change',
|
'Receive text messages On Change',
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ def test_organisation_name_links_to_org_dashboard(
|
|||||||
'Label Value Action',
|
'Label Value Action',
|
||||||
'Send text messages On Change',
|
'Send text messages On Change',
|
||||||
'Text message sender GOVUK 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',
|
'International text messages Off Change',
|
||||||
'Receive 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.find('input', attrs={"type": "text"})['value'] == 'service one'
|
||||||
assert page.select_one('main p').text == 'Users will see your service name:'
|
assert page.select_one('main p').text == 'Users will see your service name:'
|
||||||
assert normalize_spaces(page.select_one('main ul').text) == (
|
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'
|
'as your email sender name'
|
||||||
)
|
)
|
||||||
app.service_api_client.get_service.assert_called_with(SERVICE_ONE_ID)
|
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', [
|
@pytest.mark.parametrize('user, expected_text, expected_link', [
|
||||||
(
|
(
|
||||||
active_user_with_permissions,
|
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,
|
True,
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
@@ -2594,7 +2594,7 @@ def test_edit_sms_sender(
|
|||||||
(
|
(
|
||||||
'main.service_edit_letter_contact',
|
'main.service_edit_letter_contact',
|
||||||
get_default_letter_contact_block,
|
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',
|
'letter_contact_id',
|
||||||
False
|
False
|
||||||
),
|
),
|
||||||
@@ -2608,14 +2608,14 @@ def test_edit_sms_sender(
|
|||||||
(
|
(
|
||||||
'main.service_edit_sms_sender',
|
'main.service_edit_sms_sender',
|
||||||
get_default_sms_sender,
|
get_default_sms_sender,
|
||||||
'This is the default text message sender',
|
'This is the default text message sender.',
|
||||||
'sms_sender_id',
|
'sms_sender_id',
|
||||||
False
|
False
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
'main.service_edit_sms_sender',
|
'main.service_edit_sms_sender',
|
||||||
get_non_default_sms_sender,
|
get_non_default_sms_sender,
|
||||||
'This is the default text message sender',
|
'This is the default text message sender.',
|
||||||
'sms_sender_id',
|
'sms_sender_id',
|
||||||
True
|
True
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user