From f3c5d966f73d56db0d927e8d5a9312c197d1a8f1 Mon Sep 17 00:00:00 2001
From: karlchillmaid To change your email branding: To add a reply-to email address: To change the text message sender from the default of ‘GOVUK’: To add a logo to your letters: To send a batch of messages at once: You can see a list of formatting instructions on the edit template page: To add a placeholder to the template: To add optional content to your emails and text messages: To upload and send a letter from a PDF file: The content of your letter must appear inside the printable area. To help you set up your letter, you can download: To help you set up your letter, you can download our:
-
Add a reply-to email address
@@ -38,9 +37,8 @@
-
@@ -51,9 +49,8 @@
-
@@ -64,9 +61,8 @@
-
{% endblock %}
From 29c8050bc4700933914061825ad76a86252b50e1 Mon Sep 17 00:00:00 2001
From: karlchillmaid
-
-
@@ -63,8 +62,7 @@
-
-
-
@@ -34,11 +33,11 @@
-
From 78ac345148a11ac93a242f5ef2a516f25b79e7f2 Mon Sep 17 00:00:00 2001
From: Chris Hill-Scott
- Estimated delivery date: {{ estimated_letter_delivery_date|string|format_date_short }} + Estimated delivery date: {{ estimated_letter_delivery_date|format_day_of_week }} {{ estimated_letter_delivery_date|format_date_short }}
{% endif %} {% endif %} diff --git a/tests/app/main/views/test_notifications.py b/tests/app/main/views/test_notifications.py index 012ccaa1a..426aeade2 100644 --- a/tests/app/main/views/test_notifications.py +++ b/tests/app/main/views/test_notifications.py @@ -202,7 +202,7 @@ def test_notification_page_shows_page_for_letter_notification( 'Printing starts today at 5:30pm' ) assert normalize_spaces(page.select('main p:nth-of-type(3)')[0].text) == ( - 'Estimated delivery date: 6 January' + 'Estimated delivery date: Wednesday 6 January' ) assert len(page.select('.letter-postage')) == 1 assert normalize_spaces(page.select_one('.letter-postage').text) == ( @@ -473,7 +473,9 @@ def test_notification_page_shows_page_for_first_class_letter_notification( ) assert normalize_spaces(page.select('main p:nth-of-type(2)')[0].text) == 'Printing starts tomorrow at 5:30pm' - assert normalize_spaces(page.select('main p:nth-of-type(3)')[0].text) == 'Estimated delivery date: 5 January' + assert normalize_spaces(page.select('main p:nth-of-type(3)')[0].text) == ( + 'Estimated delivery date: Tuesday 5 January' + ) assert normalize_spaces(page.select_one('.letter-postage').text) == ( 'Postage: first class' ) From f4e4de0d03b90c4150452c18958fee02fc5fa72c Mon Sep 17 00:00:00 2001 From: karlchillmaidTo change your email branding:
To add a reply-to email address:
To change the text message sender from the default of ‘GOVUK’:
To add a logo to your letters:
This page explains how to:
- +The default branding for email templates is the GOV.UK logo.
- +To change your email branding:
You can choose the email address that your users reply to. You must add at least one reply-to address for your service before you can request to go live.
To add a reply-to email address:
The text message sender tells your users who the message is from.
To change the text message sender from the default of ‘GOVUK’:
- +Letter templates do not have default branding.
- +To add a logo to your letters:
- +Create an account to see a short tutorial explaining how to create and send messages.
- +To send a batch of messages at once:
You can see a list of formatting instructions on the edit template page:
To add a placeholder to the template:
To add optional content to your emails and text messages:
Contact us if you want to send files by email.
Then follow the instructions to send a file by email in our API documentation.
- + {% endblock %} - diff --git a/app/templates/views/guidance/upload-a-letter.html b/app/templates/views/guidance/upload-a-letter.html index 2fbbec5d2..42f33d765 100644 --- a/app/templates/views/guidance/upload-a-letter.html +++ b/app/templates/views/guidance/upload-a-letter.html @@ -1,6 +1,5 @@ {% extends "content_template.html" %} -{% from "components/table.html" import mapping_table, row, text_field, edit_field, field with context %} -{% from "components/sub-navigation.html" import sub_navigation %} +{% from "components/current-service-link.html" import current_service_link %} {% block per_page_title %} Upload a letter @@ -9,13 +8,13 @@ {% block content_column_content %}You can upload and send your own letters instead of creating a reusable letter template.
- +To upload and send a letter from a PDF file:
- +The content of your letter must appear inside the printable area.
- +To help you set up your letter, you can download our:
{% if is_precompiled_letter %}
- Provided as PDF
+ {% if created_by %}
+ Uploaded
+ {% else %}
+ Provided as PDF
+ {% endif %}
{% else %}
{% if help %}
‘{{ template.name }}’
diff --git a/tests/app/main/views/test_notifications.py b/tests/app/main/views/test_notifications.py
index 10fc2d4d2..590e61c89 100644
--- a/tests/app/main/views/test_notifications.py
+++ b/tests/app/main/views/test_notifications.py
@@ -247,6 +247,51 @@ def test_notification_page_shows_page_for_letter_notification(
assert mock_page_count.call_args_list[0][1]['values'] == {'name': 'Jo'}
+@freeze_time("2020-01-01 00:00")
+def test_notification_page_shows_uploaded_letter(
+ client_request,
+ mocker,
+ fake_uuid,
+):
+ mocker.patch(
+ 'app.main.views.notifications.view_letter_notification_as_preview',
+ return_value=(b'foo', {
+ 'message': '',
+ 'invalid_pages': '[]',
+ 'page_count': '1'
+ })
+ )
+ mocker.patch(
+ 'app.main.views.notifications.pdf_page_count',
+ return_value=1
+ )
+ mocker.patch(
+ 'app.main.views.notifications.get_page_count_for_letter',
+ return_value=1,
+ )
+
+ notification = create_notification(
+ notification_status='created',
+ template_type='letter',
+ is_precompiled_letter=True,
+ sent_one_off=True,
+ )
+ mocker.patch('app.notification_api_client.get_notification', return_value=notification)
+
+ page = client_request.get(
+ 'main.view_notification',
+ service_id=SERVICE_ONE_ID,
+ notification_id=fake_uuid,
+ )
+
+ assert normalize_spaces(page.select('main p:nth-of-type(1)')[0].text) == (
+ 'Uploaded by Test User yesterday at midnight'
+ )
+ assert normalize_spaces(page.select('main p:nth-of-type(2)')[0].text) == (
+ 'Printing starts today at 5:30pm'
+ )
+
+
@freeze_time("2016-01-01 01:01")
@pytest.mark.parametrize('is_precompiled_letter, expected_p1, expected_p2, expected_postage', (
(
From cd36182ea67e64a3f300adfef74b5de4c4121353 Mon Sep 17 00:00:00 2001
From: Tom Byers
{% if folder_path|length == 1 %}
- Services
+ Services
{{ folder_path_separator() }}
{% endif %}
{% for folder in folder_path %}
@@ -51,15 +51,15 @@
{% else %}
{% if folder.id %}
{% if current_user.has_template_folder_permission(folder) %}
- {{ folder.name }}
+ {{ folder.name }}
{% else %}
{{ folder.name }}
{% endif %}
{% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% elif folder.parent_id == None %}
- {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
+ {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% else %}
- {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
+ {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% endif %}
{% endif %}
{% endfor %}
diff --git a/app/templates/components/page-footer.html b/app/templates/components/page-footer.html
index fb9f478be..deae3e7cf 100644
--- a/app/templates/components/page-footer.html
+++ b/app/templates/components/page-footer.html
@@ -26,11 +26,11 @@
{% endif %}
{% if delete_link %}
{% endif %}
{% if secondary_link and secondary_link_text %}
- {{ secondary_link_text }}
+ {{ secondary_link_text }}
{% endif %}
{% if previous_page %}
- You can check our system status page to see if there are any known issues. + You can check our system status page to see if there are any known issues.
- To report a problem, email notify-support@digital.cabinet-office.gov.uk + To report a problem, email notify-support@digital.cabinet-office.gov.uk
diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index 92c05dd6c..50e17b29d 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -5,32 +5,32 @@- In trial mode you can only + In trial mode you can only send to yourself and members of your team
diff --git a/app/templates/partials/check/too-many-messages.html b/app/templates/partials/check/too-many-messages.html index a26fb9a13..341622ba5 100644 --- a/app/templates/partials/check/too-many-messages.html +++ b/app/templates/partials/check/too-many-messages.html @@ -8,7 +8,7 @@You can only send {{ current_service.message_limit }} messages per day {%- if current_service.trial_mode %} - in trial mode + in trial mode {%- endif -%} .
diff --git a/app/templates/partials/check/trying-to-send-letters-in-trial-mode.html b/app/templates/partials/check/trying-to-send-letters-in-trial-mode.html index 43f225e75..55c8f784d 100644 --- a/app/templates/partials/check/trying-to-send-letters-in-trial-mode.html +++ b/app/templates/partials/check/trying-to-send-letters-in-trial-mode.html @@ -3,6 +3,6 @@ {{ 'this letter' if count_of_recipients == 1 else 'these letters' }}- In trial mode you + In trial mode you can only preview how your letters will look
diff --git a/app/templates/partials/jobs/notifications.html b/app/templates/partials/jobs/notifications.html index 869573da2..842a9d805 100644 --- a/app/templates/partials/jobs/notifications.html +++ b/app/templates/partials/jobs/notifications.html @@ -7,7 +7,7 @@Sending - {{ job.template.name }} + {{ job.template.name }} {{ job.scheduled_for|format_datetime_relative }}
You and members of - your team + your team are included in the whitelist automatically.
diff --git a/app/templates/views/check/column-errors.html b/app/templates/views/check/column-errors.html index 976c7a17d..b9e641594 100644 --- a/app/templates/views/check/column-errors.html +++ b/app/templates/views/check/column-errors.html @@ -9,7 +9,7 @@ {% set file_contents_header_id = 'file-preview' %} {% macro skip_to_file_contents() %} {% endmacro %} @@ -150,7 +150,7 @@ ) }} {% endif %}- Skip to file contents + Skip to file contents
{% endmacro %} @@ -76,7 +76,7 @@ {% if (item.index + 2) == preview_row %} {{ item.index + 2 }} {% else %} - {{ item.index + 2 }} + {{ item.index + 2 }} {% endif %} {% endcall %} diff --git a/app/templates/views/check/row-errors.html b/app/templates/views/check/row-errors.html index 6df7563fc..69b6bc373 100644 --- a/app/templates/views/check/row-errors.html +++ b/app/templates/views/check/row-errors.html @@ -9,7 +9,7 @@ {% set file_contents_header_id = 'file-preview' %} {% macro skip_to_file_contents() %} {% endmacro %} @@ -55,7 +55,7 @@ button_text='Upload your file again' ) }}{{ org.count_of_live_services }} live service{% if org.count_of_live_services != 1 %}s{% endif %} @@ -30,7 +30,7 @@ {% endfor %} {% for service in services %}
{{ org_count|format_thousands }} organisations, {{ live_service_count|format_thousands }} live services
diff --git a/app/templates/views/conversations/conversation.html b/app/templates/views/conversations/conversation.html index a3548e936..eaadc1d58 100644 --- a/app/templates/views/conversations/conversation.html +++ b/app/templates/views/conversations/conversation.html @@ -24,7 +24,7 @@ {% if current_user.has_permissions('send_messages') %} {% endif %} diff --git a/app/templates/views/dashboard/_inbox_messages.html b/app/templates/views/dashboard/_inbox_messages.html index 5e2d338f6..5a8e45449 100644 --- a/app/templates/views/dashboard/_inbox_messages.html +++ b/app/templates/views/dashboard/_inbox_messages.html @@ -5,7 +5,7 @@- Download these messages + Download these messages
{% endif %} {% call(item, row_number) list_table( @@ -21,7 +21,7 @@ ) %} {% call field() %} {{ item.user_number | format_phone_number_human_readable }} diff --git a/app/templates/views/dashboard/_jobs.html b/app/templates/views/dashboard/_jobs.html index 9020b926c..15fbe770a 100644 --- a/app/templates/views/dashboard/_jobs.html +++ b/app/templates/views/dashboard/_jobs.html @@ -20,9 +20,9 @@ {% call row_heading() %}- Contact us if you want to switch this feature off. + Contact us if you want to switch this feature off.
{% if current_user.has_permissions('manage_api_keys') %}You can set up callbacks for received text messages on the - API integration page. + API integration page.
{% endif %} {% else %}- Contact us if you want to be able to receive text messages from your users. + Contact us if you want to be able to receive text messages from your users.
We’ll create a unique phone number for your service that they can reply to. diff --git a/app/templates/views/service-settings/set-international-sms.html b/app/templates/views/service-settings/set-international-sms.html index 8327c8b4d..400d47cc5 100644 --- a/app/templates/views/service-settings/set-international-sms.html +++ b/app/templates/views/service-settings/set-international-sms.html @@ -20,7 +20,7 @@ Messages to international mobile numbers are charged at 1, 2, or 3 times the cost of messages to UK mobile numbers.
- See pricing for the list + See pricing for the list of rates.
{% call form_wrapper() %} diff --git a/app/templates/views/service-settings/set-letter.html b/app/templates/views/service-settings/set-letter.html index 7d2f85c64..96f8b4e0c 100644 --- a/app/templates/views/service-settings/set-letter.html +++ b/app/templates/views/service-settings/set-letter.html @@ -20,7 +20,7 @@ It costs between 30p and 76p to send a letter using Notify.- See pricing for the list + See pricing for the list of rates.
{% call form_wrapper() %} diff --git a/app/templates/views/service-settings/set-sms.html b/app/templates/views/service-settings/set-sms.html index ef7d62ecb..1c442e1b8 100644 --- a/app/templates/views/service-settings/set-sms.html +++ b/app/templates/views/service-settings/set-sms.html @@ -26,7 +26,7 @@ after your free allowance.- See pricing for more details. + See pricing for more details.
{% call form_wrapper() %} {{ radios(form.enabled) }} diff --git a/app/templates/views/service-settings/sms-senders.html b/app/templates/views/service-settings/sms-senders.html index e36003fc9..7fcf59770 100644 --- a/app/templates/views/service-settings/sms-senders.html +++ b/app/templates/views/service-settings/sms-senders.html @@ -33,7 +33,7 @@ {% endif %} {% if current_user.has_permissions('manage_service') %} - Change + Change {% endif %} {% if current_service.count_sms_senders > 1 %} {{ api_key(item.id, thing="ID") }} diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html index 66e379a32..2b6bd0479 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -16,10 +16,10 @@ @@ -38,7 +38,7 @@ "classes": "product-page-button button-container__button govuk-!-margin-right-3", "href": url_for('main.register' ) }) }} - or sign in if you’ve used + or sign in if you’ve used it beforeSee the - list of services and organisations. + list of services and organisations.
@@ -163,7 +163,7 @@There’s no monthly charge, no setup fee and no procurement process.
-Find out more about pricing. +
Find out more about pricing.
@@ -180,7 +180,7 @@ and is supported 24 hours a day, 7 days a week.- Contact us if you have a question or want + Contact us if you have a question or want to give feedback.
diff --git a/app/templates/views/signin.html b/app/templates/views/signin.html index 047d51c8c..c51349b9a 100644 --- a/app/templates/views/signin.html +++ b/app/templates/views/signin.html @@ -27,7 +27,7 @@If you do not have an account, you can - create one now. + create one now.
{% endif %} diff --git a/app/templates/views/styleguide.html b/app/templates/views/styleguide.html index 430ffb399..34cbe4ea6 100644 --- a/app/templates/views/styleguide.html +++ b/app/templates/views/styleguide.html @@ -16,11 +16,11 @@ {% block maincolumn_content %}- Add a job now + Add a job now
diff --git a/app/templates/views/support/bat-phone.html b/app/templates/views/support/bat-phone.html index 6a48c0d4b..82b7b6972 100644 --- a/app/templates/views/support/bat-phone.html +++ b/app/templates/views/support/bat-phone.html @@ -15,7 +15,7 @@First, check the - system status page. + system status page. You do not need to contact us if the problem you’re having is listed on that page.
@@ -33,11 +33,11 @@- Fill in this form + Fill in this form and we’ll get back to you by the next working day.
You can also contact us on Slack.
+You can also contact us on Slack.
Our office hours are 9:30am to 5:30pm, Monday to Friday.
diff --git a/app/templates/views/support/report-problem.html b/app/templates/views/support/report-problem.html index 12f40e2c1..99c250640 100644 --- a/app/templates/views/support/report-problem.html +++ b/app/templates/views/support/report-problem.html @@ -19,7 +19,7 @@- Check our system status + Check our system status page to see if there are any known issues with GOV.UK Notify.
If you need to send {{ message_count_label(999, notification_type, suffix='') }} - get in touch with the GOV.UK Notify team. + get in touch with the GOV.UK Notify team.
- Back to current templates + Back to current templates
{% endblock %} diff --git a/app/templates/views/templates/copy.html b/app/templates/views/templates/copy.html index 84c5a36ed..7aac461ec 100644 --- a/app/templates/views/templates/copy.html +++ b/app/templates/views/templates/copy.html @@ -25,23 +25,23 @@Personalisation is hidden after sending
diff --git a/app/templates/views/terms-of-use.html b/app/templates/views/terms-of-use.html index 5109906c8..2974c2734 100644 --- a/app/templates/views/terms-of-use.html +++ b/app/templates/views/terms-of-use.html @@ -20,9 +20,9 @@You can leave Notify at any time. Just contact us and we’ll close your account.
+You can leave Notify at any time. Just contact us and we’ll close your account.
When you leave Notify, all your data will be deleted.
{% endblock %} diff --git a/app/templates/views/trial-mode.html b/app/templates/views/trial-mode.html index 316bc3b30..a367876c2 100644 --- a/app/templates/views/trial-mode.html +++ b/app/templates/views/trial-mode.html @@ -18,7 +18,7 @@ {% if current_service and current_service.trial_mode %}- To remove these restrictions, you can request to go live.
+ To remove these restrictions, you can request to go live. {% else %}To remove these restrictions: diff --git a/app/templates/views/uploads/choose-file.html b/app/templates/views/uploads/choose-file.html index 3897a6019..897926997 100644 --- a/app/templates/views/uploads/choose-file.html +++ b/app/templates/views/uploads/choose-file.html @@ -33,7 +33,7 @@ )}}
You can upload a single letter as a PDF.
-Your file must meet our letter specification.
+Your file must meet our letter specification.
diff --git a/app/templates/views/uploads/preview.html b/app/templates/views/uploads/preview.html index 718cf8c6d..05e70e5a8 100644 --- a/app/templates/views/uploads/preview.html +++ b/app/templates/views/uploads/preview.html @@ -24,7 +24,7 @@ button_text='Upload your file again' ) }} - Back to top + Back to top {% elif current_service.trial_mode %} diff --git a/app/templates/views/usage.html b/app/templates/views/usage.html index 294d25dfd..a91a4814f 100644 --- a/app/templates/views/usage.html +++ b/app/templates/views/usage.html @@ -132,7 +132,7 @@ diff --git a/app/templates/views/using-notify.html b/app/templates/views/using-notify.html index f986accf4..41127b2b6 100644 --- a/app/templates/views/using-notify.html +++ b/app/templates/views/using-notify.html @@ -19,11 +19,11 @@Find out more about:
Add message templates with examples of the content you plan to send. You can use our guidance to help you.
+Add message templates with examples of the content you plan to send. You can use our guidance to help you.
Review your settings to add message branding, reply-to addresses and sender information.
-Add team members and check their permissions.
+Add team members and check their permissions.
{% else %}Review your settings to add message branding, reply-to addresses and sender information.
-Add team members and check their permissions.
+Add team members and check their permissions.
{% endif %}
- You can check our system status page to see if there are any known issues.
To report a problem, email notify-support@digital.cabinet-office.gov.uk
+ You can check our system status page to see if there are any known issues.
To report a problem, email notify-support@digital.cabinet-office.gov.uk
diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js
index 22a7f1a68..f81a9eabe 100644
--- a/app/assets/javascripts/templateFolderForm.js
+++ b/app/assets/javascripts/templateFolderForm.js
@@ -114,7 +114,7 @@
this.makeButton = (text, opts) => {
let $btn = $('')
.html(text)
- .addClass('govuk-link govuk-link--no-visited-state js-cancel')
+ .addClass('js-cancel')
// isn't set if cancelSelector is undefined
.data('target', opts.cancelSelector || undefined)
.attr('tabindex', '0')
diff --git a/app/assets/stylesheets/_grids.scss b/app/assets/stylesheets/_grids.scss
index 024091fb3..85551da03 100644
--- a/app/assets/stylesheets/_grids.scss
+++ b/app/assets/stylesheets/_grids.scss
@@ -120,3 +120,19 @@
.align-with-big-number-hint {
margin-top: $gutter / 0.6;
}
+
+.global-cookie-message {
+ p {
+ @extend %site-width-container;
+ }
+}
+
+.footer-nav {
+ @include copy-16;
+ margin-bottom: $gutter-two-thirds;
+
+ a {
+ display: inline-block;
+ margin-right: $gutter-half;
+ }
+}
diff --git a/app/assets/stylesheets/app.scss b/app/assets/stylesheets/app.scss
index f3c76bd47..c195d3eed 100644
--- a/app/assets/stylesheets/app.scss
+++ b/app/assets/stylesheets/app.scss
@@ -1,4 +1,10 @@
// Extra CSS overlaying elements
+a {
+ &:visited {
+ color: $link-colour;
+ }
+}
+
.form-control-1-1 {
width: 100%;
}
diff --git a/app/assets/stylesheets/components/banner.scss b/app/assets/stylesheets/components/banner.scss
index 9eed69c66..dac7613d4 100644
--- a/app/assets/stylesheets/components/banner.scss
+++ b/app/assets/stylesheets/components/banner.scss
@@ -55,6 +55,19 @@
outline: 3px solid $yellow;
}
+ a {
+
+ &:link,
+ &:visited {
+ color: $error-colour;
+ }
+
+ &:hover {
+ color: $mellow-red;
+ }
+
+ }
+
.list {
margin-bottom: 0;
}
@@ -95,7 +108,7 @@
a {
- font-weight: bold;
+ @include bold-19;
display: block;
padding: 0 ;
margin: 0 0 $gutter 0;
@@ -105,18 +118,18 @@
color: $white;
}
- &:focus,
+ &:hover,
&:active {
- color: $govuk-focus-text-colour;
- outline: 10px solid $yellow;
- }
-
- &:hover {
- color: $white;
background-color: $link-hover-colour;
outline: 10px solid $link-hover-colour;
}
+ &:active,
+ &:focus {
+ background-color: $yellow;
+ outline: 10px solid $yellow;
+ }
+
}
.greyed-out-step {
diff --git a/app/assets/stylesheets/components/big-number.scss b/app/assets/stylesheets/components/big-number.scss
index 035c99e70..7e4fa81a8 100644
--- a/app/assets/stylesheets/components/big-number.scss
+++ b/app/assets/stylesheets/components/big-number.scss
@@ -130,6 +130,7 @@
&:active,
&:focus {
color: $black;
+ border-bottom: 1px solid $black;
}
}
diff --git a/app/assets/stylesheets/components/browse-list.scss b/app/assets/stylesheets/components/browse-list.scss
index ec7008737..bc63bd9a6 100644
--- a/app/assets/stylesheets/components/browse-list.scss
+++ b/app/assets/stylesheets/components/browse-list.scss
@@ -17,7 +17,22 @@
}
&-link {
- @include govuk-font(24, $weight: bold);
+ @include bold-24;
+
+ &-destructive {
+ @include bold-24;
+ color: $error-colour;
+
+ &:visited,
+ &:link {
+ @include bold-24;
+ color: $error-colour;
+ }
+
+ &:hover {
+ color: $mellow-red;
+ }
+ }
}
&-hint {
diff --git a/app/assets/stylesheets/components/file-upload.scss b/app/assets/stylesheets/components/file-upload.scss
index 8ff2e92a9..35adb510e 100644
--- a/app/assets/stylesheets/components/file-upload.scss
+++ b/app/assets/stylesheets/components/file-upload.scss
@@ -43,7 +43,7 @@
line-height: 35px;
a {
- font-weight: bold;
+ @include bold-19;
}
}
diff --git a/app/assets/stylesheets/components/message.scss b/app/assets/stylesheets/components/message.scss
index 4b6b889be..e6773357b 100644
--- a/app/assets/stylesheets/components/message.scss
+++ b/app/assets/stylesheets/components/message.scss
@@ -34,8 +34,15 @@
margin-bottom: -$gutter;
padding-bottom: $gutter;
- &:hover .message-name-separator:before {
- border-color: $link-hover-colour;
+ &:hover {
+ color: $link-hover-colour;
+
+ .message-name-separator {
+ &:before {
+ border-color: $link-hover-colour;
+ }
+ }
+
}
&:focus {
diff --git a/app/assets/stylesheets/components/navigation.scss b/app/assets/stylesheets/components/navigation.scss
index 5b71a68dd..08b6476d4 100644
--- a/app/assets/stylesheets/components/navigation.scss
+++ b/app/assets/stylesheets/components/navigation.scss
@@ -1,74 +1,64 @@
.navigation {
- @include govuk-font($size: 19);
padding: 0 $gutter 0 0;
$padding-top: 14px;
$padding-bottom: 11px;
- &-service-name,
- &-organisation-link {
- display: inline-block;
- overflow: hidden;
- // aligning to the baseline with overflow: hidden adds to the parent's height
- // aligning to the top doesn't
- // see: https://stackoverflow.com/questions/23529369/why-does-x-overflowhidden-cause-extra-space-below#answer-51088033
- vertical-align: top;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
-
- &-service-switch,
- &-service-back-to,
- &-organisation-link {
-
- &:link,
- &:visited {
- text-decoration: none;
- }
-
- &:hover {
- text-decoration: underline;
- }
-
- }
-
&-service {
- @include govuk-font($size: 19);
border-bottom: 1px solid $border-colour;
margin: 0 0 10px;
position: relative;
+ font-size: 0;
&-name {
-
+ @include bold-19;
padding: $padding-top 0 $padding-bottom 0;
+ display: inline-block;
max-width: 50%;
-
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
}
&-switch {
+ @include core-19;
+ text-decoration: none;
text-align: right;
position: absolute;
top: 0;
right: 0;
padding: $padding-top 0 $padding-bottom $gutter-half;
+ &:hover {
+ color: $link-hover-colour;
+ text-decoration: underline;
+ }
+
&:focus {
outline: none;
border-bottom: 1px solid $yellow;
border-left: 10px solid $yellow;
border-right: 3px solid $yellow;
right: -3px;
+ color: $text-colour;
}
}
&-back-to {
+ @include core-19;
padding: $padding-top $gutter-half $padding-bottom 0;
display: inline-block;
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ color: $link-hover-colour;
+ }
}
@@ -76,7 +66,14 @@
&-organisation-link {
+ @include core-19;
+ display: inline-block;
max-width: 25%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-weight: normal;
+ text-decoration: none;
padding: $padding-top 20px $padding-bottom 0;
margin-right: 7px;
box-sizing: border-box;
@@ -100,8 +97,13 @@
border-color: $secondary-text-colour;
}
- // hack to make the focus style fit in the navigation bar
+ &:hover {
+ color: $link-hover-colour;
+ text-decoration: underline;
+ }
+
&:focus {
+ color: $text-colour;
outline: none;
box-shadow: 0 1px 0 0 $focus-colour, -3px 0 0 0 $focus-colour, -3px 1px 0 0 $focus-colour;
}
@@ -109,6 +111,7 @@
}
li {
+ @include core-19;
margin: 0;
list-style-type: none;
}
@@ -126,9 +129,14 @@
}
&:hover {
+ color: $link-hover-colour;
text-decoration: underline;
}
+ &:focus {
+ color: $text-colour;
+ }
+
&.selected {
@include bold-19;
position: relative;
diff --git a/app/assets/stylesheets/components/page-footer.scss b/app/assets/stylesheets/components/page-footer.scss
index 56611d425..cdf95ff65 100644
--- a/app/assets/stylesheets/components/page-footer.scss
+++ b/app/assets/stylesheets/components/page-footer.scss
@@ -8,9 +8,26 @@
line-height: 40px;
padding: 1px 0 0 15px;
+ a {
+
+ &:visited,
+ &:link {
+ color: $error-colour;
+ display: inline-block;
+ vertical-align: center;
+ }
+
+ &:hover,
+ &:active {
+ color: $mellow-red;
+ }
+
+ }
+
}
&-delete-link-without-button {
+ @include core-19;
padding: 0;
display: inline-block;
}
diff --git a/app/assets/stylesheets/components/table.scss b/app/assets/stylesheets/components/table.scss
index 3b4a4a49b..61dba8ed5 100644
--- a/app/assets/stylesheets/components/table.scss
+++ b/app/assets/stylesheets/components/table.scss
@@ -212,6 +212,15 @@
color: $error-colour;
font-weight: bold;
+ a {
+
+ &:link,
+ &:visited {
+ color: $error-colour;
+ }
+
+ }
+
.status-hint {
display: block;
font-weight: normal;
@@ -347,12 +356,22 @@
background: transparent;
}
- &:active:before,
- &:focus:before {
- border-color: $yellow;
- border-style: solid;
- border-width: 15px 3px 15px 15px;
- right: -3px;
+ &:hover {
+ color: $link-hover-colour;
+ }
+
+ &:active,
+ &:focus {
+
+ color: $black;
+
+ &:before {
+ border-color: $yellow;
+ border-style: solid;
+ border-width: 15px 3px 15px 15px;
+ right: -3px;
+ }
+
}
}
diff --git a/app/assets/stylesheets/components/task-list.scss b/app/assets/stylesheets/components/task-list.scss
index 3330fd32d..ae751d7ea 100644
--- a/app/assets/stylesheets/components/task-list.scss
+++ b/app/assets/stylesheets/components/task-list.scss
@@ -31,8 +31,13 @@ $indicator-colour: $black;
padding-right: 20%;
position: relative;
+ &:hover {
+ color: $link-hover-colour;
+ }
+
&:focus {
outline: none;
+ color: $black;
box-shadow: -3px 0 0 0 $focus-colour, 3px 0 0 0 $focus-colour;
border-color: transparent;
top: -1px;
diff --git a/app/assets/stylesheets/components/tick-cross.scss b/app/assets/stylesheets/components/tick-cross.scss
index 53bf6588c..4136dab7e 100644
--- a/app/assets/stylesheets/components/tick-cross.scss
+++ b/app/assets/stylesheets/components/tick-cross.scss
@@ -61,12 +61,22 @@
background: transparent;
}
- &:active:before,
- &:focus:before {
- border-color: $yellow;
- border-style: solid;
- border-width: 15px 3px 15px 15px;
- right: -3px;
+ &:hover {
+ color: $link-hover-colour;
+ }
+
+ &:active,
+ &:focus {
+
+ color: $black;
+
+ &:before {
+ border-color: $yellow;
+ border-style: solid;
+ border-width: 15px 3px 15px 15px;
+ right: -3px;
+ }
+
}
}
diff --git a/app/assets/stylesheets/components/vendor/previous-next-navigation.scss b/app/assets/stylesheets/components/vendor/previous-next-navigation.scss
index 8fc2213a0..0e060f12c 100644
--- a/app/assets/stylesheets/components/vendor/previous-next-navigation.scss
+++ b/app/assets/stylesheets/components/vendor/previous-next-navigation.scss
@@ -54,6 +54,10 @@ $is-ie: false !default;
padding: $gutter-half;
text-decoration: none;
+ &:visited {
+ color: $link-colour;
+ }
+
&:hover,
&:active {
background-color: $canvas-colour;
diff --git a/app/assets/stylesheets/globals.scss b/app/assets/stylesheets/globals.scss
index b24b39ea4..9da8fb427 100644
--- a/app/assets/stylesheets/globals.scss
+++ b/app/assets/stylesheets/globals.scss
@@ -5,16 +5,6 @@
width: device-width;
}
-// To be removed when all text uses the GOV.UK Frontend New Transport font styles.
-// At present, some text gets these styles due to being in a GOV.UK Frontend component
-// or a link.
-// This ensures all text will have these styles applied, until it can be moved to use
-// the GOV.UK Frontend font styles.
-body {
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
b,
strong {
font-weight: 600;
@@ -51,6 +41,34 @@ input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
+// To be removed when all links follow the GOV.UK Frontend conventions:
+// https://design-system.service.gov.uk/styles/typography/#links
+a {
+ /* Give a strong clear visual idea as to what is currently in focus */
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
+
+ &:link {
+ color: $link-colour;
+ }
+
+ &:visited {
+ color: $link-visited-colour;
+ }
+
+ &:hover {
+ color: $link-hover-colour;
+ }
+
+ &:active {
+ color: $link-active-colour;
+ }
+
+ &:focus {
+ background-color: $focus-colour;
+ outline: 3px solid $focus-colour;
+ }
+}
+
// Each selector, and then the whole block when only one remains, to be removed when the
// element comes from the corresponding GOV.UK Frontend component:
// - https://design-system.service.gov.uk/components/text-input/
diff --git a/app/assets/stylesheets/govuk-frontend/extensions.scss b/app/assets/stylesheets/govuk-frontend/extensions.scss
index dfb5d7ae7..0d4b693fa 100644
--- a/app/assets/stylesheets/govuk-frontend/extensions.scss
+++ b/app/assets/stylesheets/govuk-frontend/extensions.scss
@@ -8,30 +8,3 @@
}
}
-// Extends govuk-link to create a class of link that causes a destructive action
-// Based on styles of link in:
-// https://github.com/alphagov/govuk-frontend/blob/v2.13.0/src/helpers/_links.scss
-//
-// Note: all destructive actions must have a confirmation step these links navigate to
-@mixin govuk-link-style-destructive-no-visited-state {
- &:link,
- &:visited {
- color: $govuk-error-colour;
- }
-
- &:hover {
- color: govuk-tint($govuk-error-colour, 25%);
- }
-
- // When focussed, the text colour needs to be darker to ensure that colour
- // contrast is still acceptable against the focus colour
- // Activated links are usually focused so this applies to them as well
- &:active,
- &:focus {
- color: $govuk-focus-text-colour;
- }
-}
-
-.govuk-link--destructive {
- @include govuk-link-style-destructive-no-visited-state;
-}
diff --git a/app/assets/stylesheets/local/_typography.scss b/app/assets/stylesheets/local/_typography.scss
deleted file mode 100644
index 401562515..000000000
--- a/app/assets/stylesheets/local/_typography.scss
+++ /dev/null
@@ -1,62 +0,0 @@
-@import 'settings/all';
-@import 'helpers/all';
-
-@mixin destructive-link-style-default {
- &:link {
- color: $govuk-error-colour;
- }
-
- &:visited {
- color: $govuk-link-visited-colour;
- }
-
- &:hover {
- color: govuk-tint( $govuk-error-colour, 25% );
- }
-
- &:active {
- color: $govuk-link-active-colour;
- }
-
- // When focussed, the text colour needs to be darker to ensure that colour
- // contrast is still acceptable
- &:focus {
- color: $govuk-focus-text-colour;
- }
-}
-
-@mixin destructive-link-style-no-visited-state {
- &:link {
- color: $govuk-error-colour;
- }
-
- &:visited {
- color: $govuk-error-colour;
- }
-
- &:hover {
- color: govuk-tint( $govuk-error-colour, 25% );
- }
-
- &:active {
- color: $govuk-link-active-colour;
- }
-
- // When focussed, the text colour needs to be darker to ensure that colour
- // contrast is still acceptable
- &:focus {
- color: $govuk-focus-text-colour;
- }
-}
-
-// mimics styles for govuk-link:
-// https://github.com/alphagov/govuk-frontend/blob/063cd8e2470b62b824c6e50ca66342ac7a95d2d8/package/core/_links.scss#L7
-.destructive-link {
- @include govuk-link-common;
- @include destructive-link-style-default;
- @include govuk-link-print-friendly;
-}
-
-.destructive-link--no-visited-state {
- @include destructive-link-style-no-visited-state;
-}
diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss
index bff09e95e..cec02421b 100644
--- a/app/assets/stylesheets/main.scss
+++ b/app/assets/stylesheets/main.scss
@@ -36,7 +36,6 @@ $path: '/static/images/';
@import './govuk-frontend/all';
// Specific to this application
-@import 'local/typography';
@import 'grids';
@import 'components/cookie-message';
@import 'components/site-footer';
diff --git a/app/assets/stylesheets/views/notification.scss b/app/assets/stylesheets/views/notification.scss
index 0961dc815..e26268f56 100644
--- a/app/assets/stylesheets/views/notification.scss
+++ b/app/assets/stylesheets/views/notification.scss
@@ -6,14 +6,18 @@
&.error {
- color: $govuk-error-colour;
+ color: $error-colour;
font-weight: bold;
+ a {
+ color: $error-colour;
+ }
+
}
&-cancelled {
@include bold-19;
- color: $govuk-error-colour;
+ color: $error-colour;
}
}
diff --git a/app/main/validators.py b/app/main/validators.py
index 7ef28cdb9..63f36d5f5 100644
--- a/app/main/validators.py
+++ b/app/main/validators.py
@@ -46,8 +46,7 @@ class ValidGovEmail:
message = (
'Enter a government email address.'
' If you think you should have access'
- ' contact us'
- ).format(url_for('main.support'))
+ ' contact us').format(url_for('main.support'))
if not is_gov_user(field.data.lower()):
raise ValidationError(message)
diff --git a/app/navigation.py b/app/navigation.py
index 3f94bbc9f..dd6aeecc4 100644
--- a/app/navigation.py
+++ b/app/navigation.py
@@ -7,7 +7,7 @@ class Navigation:
mapping = {}
exclude = {}
- selected_class = "selected"
+ selected_attribute = "class=selected"
def __init__(self):
self.mapping = {
@@ -32,7 +32,7 @@ class Navigation:
def is_selected(self, navigation_item):
if request.endpoint in self.mapping[navigation_item]:
- return " " + self.selected_class
+ return self.selected_attribute
return ''
@staticmethod
@@ -42,6 +42,8 @@ class Navigation:
class HeaderNavigation(Navigation):
+ selected_attribute = "class=active"
+
mapping = {
'support': {
'bat_phone',
diff --git a/app/templates/components/big-number.html b/app/templates/components/big-number.html
index 8b5176a04..8ca33b3fb 100644
--- a/app/templates/components/big-number.html
+++ b/app/templates/components/big-number.html
@@ -1,6 +1,6 @@
{% macro big_number(number, label, link=None, currency='', smaller=False, smallest=False) %}
{% if link %}
-
+
{% endif %}
{% if folder_path|length == 1 %}
- Services
+ Services
{{ folder_path_separator() }}
{% endif %}
{% for folder in folder_path %}
@@ -51,15 +51,15 @@
{% else %}
{% if folder.id %}
{% if current_user.has_template_folder_permission(folder) %}
- {{ folder.name }}
+ {{ folder.name }}
{% else %}
{{ folder.name }}
{% endif %}
{% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% elif folder.parent_id == None %}
- {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
+ {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% else %}
- {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
+ {{ from_service.name }} {% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% endif %}
{% endif %}
{% endfor %}
diff --git a/app/templates/components/page-footer.html b/app/templates/components/page-footer.html
index 4d06641d5..fb9f478be 100644
--- a/app/templates/components/page-footer.html
+++ b/app/templates/components/page-footer.html
@@ -26,11 +26,11 @@
{% endif %}
{% if delete_link %}
{% endif %}
{% if secondary_link and secondary_link_text %}
- {{ secondary_link_text }}
+ {{ secondary_link_text }}
{% endif %}
{% if previous_page %}
- You can check our system status page to see if there are any known issues. + You can check our system status page to see if there are any known issues.
- To report a problem, email notify-support@digital.cabinet-office.gov.uk + To report a problem, email notify-support@digital.cabinet-office.gov.uk
diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index e953e1332..92c05dd6c 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -5,32 +5,32 @@{{ org.count_of_live_services }} live service{% if org.count_of_live_services != 1 %}s{% endif %} @@ -30,7 +30,7 @@ {% endfor %} {% for service in services %}
{{ org_count|format_thousands }} organisations, {{ live_service_count|format_thousands }} live services
diff --git a/app/templates/views/conversations/conversation.html b/app/templates/views/conversations/conversation.html index eaadc1d58..a3548e936 100644 --- a/app/templates/views/conversations/conversation.html +++ b/app/templates/views/conversations/conversation.html @@ -24,7 +24,7 @@ {% if current_user.has_permissions('send_messages') %} {% endif %} diff --git a/app/templates/views/dashboard/_inbox_messages.html b/app/templates/views/dashboard/_inbox_messages.html index 5a8e45449..5e2d338f6 100644 --- a/app/templates/views/dashboard/_inbox_messages.html +++ b/app/templates/views/dashboard/_inbox_messages.html @@ -5,7 +5,7 @@- Download these messages + Download these messages
{% endif %} {% call(item, row_number) list_table( @@ -21,7 +21,7 @@ ) %} {% call field() %} {{ item.user_number | format_phone_number_human_readable }} diff --git a/app/templates/views/dashboard/_jobs.html b/app/templates/views/dashboard/_jobs.html index 15fbe770a..9020b926c 100644 --- a/app/templates/views/dashboard/_jobs.html +++ b/app/templates/views/dashboard/_jobs.html @@ -20,9 +20,9 @@ {% call row_heading() %}See the - list of services and organisations. + list of services and organisations.
There’s no monthly charge, no setup fee and no procurement process.
-Find out more about pricing. +
Find out more about pricing.
@@ -180,7 +180,7 @@ and is supported 24 hours a day, 7 days a week.- Contact us if you have a question or want + Contact us if you have a question or want to give feedback.
diff --git a/app/templates/views/signin.html b/app/templates/views/signin.html index c51349b9a..047d51c8c 100644 --- a/app/templates/views/signin.html +++ b/app/templates/views/signin.html @@ -27,7 +27,7 @@If you do not have an account, you can - create one now. + create one now.
{% endif %} diff --git a/app/templates/views/styleguide.html b/app/templates/views/styleguide.html index 34cbe4ea6..430ffb399 100644 --- a/app/templates/views/styleguide.html +++ b/app/templates/views/styleguide.html @@ -16,11 +16,11 @@ {% block maincolumn_content %}- Add a job now + Add a job now
diff --git a/app/templates/views/support/bat-phone.html b/app/templates/views/support/bat-phone.html index 82b7b6972..6a48c0d4b 100644 --- a/app/templates/views/support/bat-phone.html +++ b/app/templates/views/support/bat-phone.html @@ -15,7 +15,7 @@First, check the - system status page. + system status page. You do not need to contact us if the problem you’re having is listed on that page.
@@ -33,11 +33,11 @@- Fill in this form + Fill in this form and we’ll get back to you by the next working day.
You can also contact us on Slack.
+You can also contact us on Slack.
Our office hours are 9:30am to 5:30pm, Monday to Friday.
diff --git a/app/templates/views/support/report-problem.html b/app/templates/views/support/report-problem.html index 99c250640..12f40e2c1 100644 --- a/app/templates/views/support/report-problem.html +++ b/app/templates/views/support/report-problem.html @@ -19,7 +19,7 @@- Check our system status + Check our system status page to see if there are any known issues with GOV.UK Notify.
If you need to send {{ message_count_label(999, notification_type, suffix='') }} - get in touch with the GOV.UK Notify team. + get in touch with the GOV.UK Notify team.
- Back to current templates + Back to current templates
{% endblock %} diff --git a/app/templates/views/templates/copy.html b/app/templates/views/templates/copy.html index 7aac461ec..84c5a36ed 100644 --- a/app/templates/views/templates/copy.html +++ b/app/templates/views/templates/copy.html @@ -25,23 +25,23 @@Personalisation is hidden after sending
diff --git a/app/templates/views/terms-of-use.html b/app/templates/views/terms-of-use.html index 2974c2734..5109906c8 100644 --- a/app/templates/views/terms-of-use.html +++ b/app/templates/views/terms-of-use.html @@ -20,9 +20,9 @@You can leave Notify at any time. Just contact us and we’ll close your account.
+You can leave Notify at any time. Just contact us and we’ll close your account.
When you leave Notify, all your data will be deleted.
{% endblock %} diff --git a/app/templates/views/trial-mode.html b/app/templates/views/trial-mode.html index 4a83f3ebd..316bc3b30 100644 --- a/app/templates/views/trial-mode.html +++ b/app/templates/views/trial-mode.html @@ -18,13 +18,13 @@ {% if current_service and current_service.trial_mode %}- To remove these restrictions, you can request to go live.
+ To remove these restrictions, you can request to go live. {% else %}To remove these restrictions:
You can upload a single letter as a PDF.
-Your file must meet our letter specification.
+Your file must meet our letter specification.
diff --git a/app/templates/views/uploads/preview.html b/app/templates/views/uploads/preview.html index 05e70e5a8..718cf8c6d 100644 --- a/app/templates/views/uploads/preview.html +++ b/app/templates/views/uploads/preview.html @@ -24,7 +24,7 @@ button_text='Upload your file again' ) }} - Back to top + Back to top {% elif current_service.trial_mode %} diff --git a/app/templates/views/usage.html b/app/templates/views/usage.html index a91a4814f..294d25dfd 100644 --- a/app/templates/views/usage.html +++ b/app/templates/views/usage.html @@ -132,7 +132,7 @@ diff --git a/app/templates/views/using-notify.html b/app/templates/views/using-notify.html index 41127b2b6..f986accf4 100644 --- a/app/templates/views/using-notify.html +++ b/app/templates/views/using-notify.html @@ -19,11 +19,11 @@Find out more about:
Contact us if you want to send files by email.
-Read our API documentation for more information.
+Contact us if you want to send files by email.
+Read our API documentation for more information.
Notify lets you choose the email address that users reply to.
@@ -45,6 +45,6 @@It’s free to send emails through Notify.
-See pricing for more details.
+See pricing for more details.
{% endblock %} diff --git a/app/templates/views/features/letters.html b/app/templates/views/features/letters.html index c779951b3..19ccbf6a6 100644 --- a/app/templates/views/features/letters.html +++ b/app/templates/views/features/letters.html @@ -10,7 +10,7 @@GOV.UK Notify will print, pack and post your letters for you.
{% if not current_user.is_authenticated %} -Create an account and try Notify for yourself.
+Create an account and try Notify for yourself.
{% endif %}You can also integrate with our API to send letters automatically.
+You can also integrate with our API to send letters automatically.
Notify can send letters by first or second class post.
@@ -33,7 +33,7 @@You can create reusable letter templates in Notify, or upload and send your own letters with the Notify API.
-Read our documentation.
+Read our documentation.
It costs between 30p and 76p (plus VAT) to send a letter. Prices include:
@@ -44,6 +44,6 @@Letters can be up to 10 pages long (5 double-sided sheets of paper).
-See pricing for more details.
+See pricing for more details.
{% endblock %} diff --git a/app/templates/views/features/text-messages.html b/app/templates/views/features/text-messages.html index 270e192f5..80d6f644b 100644 --- a/app/templates/views/features/text-messages.html +++ b/app/templates/views/features/text-messages.html @@ -10,7 +10,7 @@Send thousands of free text messages to UK and international numbers with GOV.UK Notify.
{% if not current_user.is_authenticated %} -Create an account and try Notify for yourself.
+Create an account and try Notify for yourself.
{% endif %}You can also integrate with our API to send text messages automatically.
+
You can also integrate with our API to send text messages automatically.
Let people send messages to your service or reply to your texts.
You can see and reply to the messages you receive when you sign in to Notify. If you’re using our API, you can set up your own automated processes to manage replies.
-Contact us to request a unique number for text message replies.
+Contact us to request a unique number for text message replies.
When you send a text message with Notify, the sender name tells people who it's from.
@@ -36,6 +36,6 @@See pricing for more details.
+See pricing for more details.
{% endblock %} diff --git a/app/templates/views/find-services/find-services-by-name.html b/app/templates/views/find-services/find-services-by-name.html index 04ef957bf..a1fa28fda 100644 --- a/app/templates/views/find-services/find-services-by-name.html +++ b/app/templates/views/find-services/find-services-by-name.html @@ -43,7 +43,7 @@{{ user.name }}
Create an account for free and add your first Notify service. When you add a new service it will start in trial mode.
+Create an account for free and add your first Notify service. When you add a new service it will start in trial mode.
{% else %} -Create an account for free and add your first Notify service. When you add a new service, it will start in trial mode.
+Create an account for free and add your first Notify service. When you add a new service, it will start in trial mode.
{% endif %}Add message templates with examples of the content you plan to send. You can use our guidance to help you.
+Add message templates with examples of the content you plan to send. You can use our guidance to help you.
Review your settings to add message branding, reply-to addresses and sender information.
Add team members and check their permissions.
{% else %} -Review your settings to add message branding, reply-to addresses and sender information.
-Add team members and check their permissions.
+Review your settings to add message branding, reply-to addresses and sender information.
+Add team members and check their permissions.
{% endif %}You can use the Notify API to send messages automatically.
-Our documentation explains how to integrate the API with a web application or back office system.
+Our documentation explains how to integrate the API with a web application or back office system.
When you’re ready to send messages to people outside your team, go to the Settings page and select Request to go live. We’ll approve your request within one working day.
{% else %} -You should request to go live when you’re ready to send messages to people outside your team. We’ll approve your request within one working day.
+You should request to go live when you’re ready to send messages to people outside your team. We’ll approve your request within one working day.
{% endif %} -Check how to pay if you’re planning to send letters or exceed the free text message allowance.
+Check how to pay if you’re planning to send letters or exceed the free text message allowance.
This information has moved.
- Refer to the documentation + Refer to the documentation for the client library you are using.
diff --git a/app/templates/views/jobs/job.html b/app/templates/views/jobs/job.html index 79080d928..2e06b56a4 100644 --- a/app/templates/views/jobs/job.html +++ b/app/templates/views/jobs/job.html @@ -25,7 +25,7 @@- Download this example + Download this example
{% if current_user.has_permissions('manage_service') %} To remove these restrictions, you can send us a - request to go live. + request to go live. {% else %} Your service manager can ask to have these restrictions removed. {% endif %} @@ -279,7 +279,7 @@
Problems or comments? - Give feedback. + Give feedback.
{% endif %} @@ -318,7 +318,7 @@ {{ text_field('Organisation')}} {% call field() %} {% if current_service.organisation_id %} - + {{ current_service.organisation.name }} {% else %} @@ -375,13 +375,13 @@ {% if current_service.active and (current_service.trial_mode or current_user.platform_admin) %}{% if current_user.platform_admin %} @@ -394,7 +394,7 @@ Service suspended
- By requesting to go live you’re agreeing to our terms of use. + By requesting to go live you’re agreeing to our terms of use.
{% call form_wrapper() %} {{ page_footer('Request to go live') }} diff --git a/app/templates/views/service-settings/set-auth-type.html b/app/templates/views/service-settings/set-auth-type.html index 722f24bbe..aaa2c2744 100644 --- a/app/templates/views/service-settings/set-auth-type.html +++ b/app/templates/views/service-settings/set-auth-type.html @@ -24,7 +24,7 @@ or an email link.- You can set the sign-in method for individual team members. + You can set the sign-in method for individual team members.
{% else %}@@ -34,7 +34,7 @@ Your team members sign in with a text message code.
- Contact us if signing in with a text message is a problem for your team. + Contact us if signing in with a text message is a problem for your team.
{% endif %} diff --git a/app/templates/views/service-settings/set-inbound-sms.html b/app/templates/views/service-settings/set-inbound-sms.html index 72a2cb743..bd9fda22f 100644 --- a/app/templates/views/service-settings/set-inbound-sms.html +++ b/app/templates/views/service-settings/set-inbound-sms.html @@ -23,17 +23,17 @@ You can still send text messages from a sender name if you need to, but users will not be able to reply to those messages.- Contact us if you want to switch this feature off. + Contact us if you want to switch this feature off.
{% if current_user.has_permissions('manage_api_keys') %}You can set up callbacks for received text messages on the - API integration page. + API integration page.
{% endif %} {% else %}- Contact us if you want to be able to receive text messages from your users. + Contact us if you want to be able to receive text messages from your users.
We’ll create a unique phone number for your service that they can reply to. diff --git a/app/templates/views/service-settings/set-international-sms.html b/app/templates/views/service-settings/set-international-sms.html index 8327c8b4d..400d47cc5 100644 --- a/app/templates/views/service-settings/set-international-sms.html +++ b/app/templates/views/service-settings/set-international-sms.html @@ -20,7 +20,7 @@ Messages to international mobile numbers are charged at 1, 2, or 3 times the cost of messages to UK mobile numbers.
- See pricing for the list + See pricing for the list of rates.
{% call form_wrapper() %} diff --git a/app/templates/views/service-settings/set-letter.html b/app/templates/views/service-settings/set-letter.html index 7d2f85c64..96f8b4e0c 100644 --- a/app/templates/views/service-settings/set-letter.html +++ b/app/templates/views/service-settings/set-letter.html @@ -20,7 +20,7 @@ It costs between 30p and 76p to send a letter using Notify.- See pricing for the list + See pricing for the list of rates.
{% call form_wrapper() %} diff --git a/app/templates/views/service-settings/set-sms.html b/app/templates/views/service-settings/set-sms.html index ef7d62ecb..1c442e1b8 100644 --- a/app/templates/views/service-settings/set-sms.html +++ b/app/templates/views/service-settings/set-sms.html @@ -26,7 +26,7 @@ after your free allowance.- See pricing for more details. + See pricing for more details.
{% call form_wrapper() %} {{ radios(form.enabled) }} diff --git a/app/templates/views/service-settings/sms-senders.html b/app/templates/views/service-settings/sms-senders.html index e36003fc9..7fcf59770 100644 --- a/app/templates/views/service-settings/sms-senders.html +++ b/app/templates/views/service-settings/sms-senders.html @@ -33,7 +33,7 @@ {% endif %} {% if current_user.has_permissions('manage_service') %} - Change + Change {% endif %} {% if current_service.count_sms_senders > 1 %} {{ api_key(item.id, thing="ID") }} diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html index 66e379a32..2b6bd0479 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -16,10 +16,10 @@See the - list of services and organisations. + list of services and organisations.
@@ -163,7 +163,7 @@There’s no monthly charge, no setup fee and no procurement process.
-Find out more about pricing. +
Find out more about pricing.
@@ -180,7 +180,7 @@ and is supported 24 hours a day, 7 days a week.- Contact us if you have a question or want + Contact us if you have a question or want to give feedback.
diff --git a/app/templates/views/signin.html b/app/templates/views/signin.html index 46f651c15..e23f71cd2 100644 --- a/app/templates/views/signin.html +++ b/app/templates/views/signin.html @@ -27,7 +27,7 @@If you do not have an account, you can - create one now. + create one now.
{% endif %} diff --git a/app/templates/views/styleguide.html b/app/templates/views/styleguide.html index 430ffb399..34cbe4ea6 100644 --- a/app/templates/views/styleguide.html +++ b/app/templates/views/styleguide.html @@ -16,11 +16,11 @@ {% block maincolumn_content %}- Add a job now + Add a job now
diff --git a/app/templates/views/support/bat-phone.html b/app/templates/views/support/bat-phone.html index 6a48c0d4b..82b7b6972 100644 --- a/app/templates/views/support/bat-phone.html +++ b/app/templates/views/support/bat-phone.html @@ -15,7 +15,7 @@First, check the - system status page. + system status page. You do not need to contact us if the problem you’re having is listed on that page.
@@ -33,11 +33,11 @@- Fill in this form + Fill in this form and we’ll get back to you by the next working day.
You can also contact us on Slack.
+You can also contact us on Slack.
Our office hours are 9:30am to 5:30pm, Monday to Friday.
diff --git a/app/templates/views/support/report-problem.html b/app/templates/views/support/report-problem.html index 12f40e2c1..99c250640 100644 --- a/app/templates/views/support/report-problem.html +++ b/app/templates/views/support/report-problem.html @@ -19,7 +19,7 @@- Check our system status + Check our system status page to see if there are any known issues with GOV.UK Notify.
If you need to send {{ message_count_label(999, notification_type, suffix='') }} - get in touch with the GOV.UK Notify team. + get in touch with the GOV.UK Notify team.
- Back to current templates + Back to current templates
{% endblock %} diff --git a/app/templates/views/templates/copy.html b/app/templates/views/templates/copy.html index 84c5a36ed..7aac461ec 100644 --- a/app/templates/views/templates/copy.html +++ b/app/templates/views/templates/copy.html @@ -25,23 +25,23 @@Personalisation is hidden after sending
diff --git a/app/templates/views/terms-of-use.html b/app/templates/views/terms-of-use.html index 5109906c8..2974c2734 100644 --- a/app/templates/views/terms-of-use.html +++ b/app/templates/views/terms-of-use.html @@ -20,9 +20,9 @@You can leave Notify at any time. Just contact us and we’ll close your account.
+You can leave Notify at any time. Just contact us and we’ll close your account.
When you leave Notify, all your data will be deleted.
{% endblock %} diff --git a/app/templates/views/trial-mode.html b/app/templates/views/trial-mode.html index 316bc3b30..a367876c2 100644 --- a/app/templates/views/trial-mode.html +++ b/app/templates/views/trial-mode.html @@ -18,7 +18,7 @@ {% if current_service and current_service.trial_mode %}- To remove these restrictions, you can request to go live.
+ To remove these restrictions, you can request to go live. {% else %}To remove these restrictions: diff --git a/app/templates/views/uploads/choose-file.html b/app/templates/views/uploads/choose-file.html index 3897a6019..897926997 100644 --- a/app/templates/views/uploads/choose-file.html +++ b/app/templates/views/uploads/choose-file.html @@ -33,7 +33,7 @@ )}}
You can upload a single letter as a PDF.
-Your file must meet our letter specification.
+Your file must meet our letter specification.
diff --git a/app/templates/views/uploads/preview.html b/app/templates/views/uploads/preview.html index 718cf8c6d..05e70e5a8 100644 --- a/app/templates/views/uploads/preview.html +++ b/app/templates/views/uploads/preview.html @@ -24,7 +24,7 @@ button_text='Upload your file again' ) }} - Back to top + Back to top {% elif current_service.trial_mode %} diff --git a/app/templates/views/usage.html b/app/templates/views/usage.html index 294d25dfd..a91a4814f 100644 --- a/app/templates/views/usage.html +++ b/app/templates/views/usage.html @@ -132,7 +132,7 @@ diff --git a/app/templates/views/using-notify.html b/app/templates/views/using-notify.html index f986accf4..41127b2b6 100644 --- a/app/templates/views/using-notify.html +++ b/app/templates/views/using-notify.html @@ -19,11 +19,11 @@Find out more about: