Merge pull request #3406 from alphagov/letter-too-long-content

Update letter too long content
This commit is contained in:
Katie Smith
2020-04-09 11:29:49 +01:00
committed by GitHub
6 changed files with 7 additions and 88 deletions

View File

@@ -2,7 +2,7 @@
Your letter is too long
</h1>
<p>
Letters must be {{ letter_max_pages }} pages or less.
Letters must be {{ letter_max_pages }} pages or less ({{ letter_max_pages // 2 }} double-sided sheets of paper).
<br>
Your letter is {{ page_count }} pages long.
</p>

View File

@@ -29,7 +29,7 @@
<ul class="list list-bullet">
<li>a PDF</li>
<li>A4 portrait size (210 × 297 mm)</li>
<li>10 pages or less</li>
<li>10 pages or less (5 double-sided sheets of paper)</li>
<li>smaller than 2MB</li>
</ul>

View File

@@ -44,7 +44,7 @@
<ul class="list list-bullet">
<li>a PDF</li>
<li>A4 portrait size (210 × 297 mm)</li>
<li>10 pages or less</li>
<li>10 pages or less (5 double-sided sheets of paper)</li>
<li>smaller than 2MB</li>
</ul>

View File

@@ -26,87 +26,6 @@
<li><a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.features_letters') }}">letters</a></li>
</ul>
<!-- <h2 id="trial-mode" class="heading-medium">Trial mode</h2>
<p>When you set up a new service it will start in trial mode. This lets you try out GOV.UK Notify, with a few restrictions.</p>
<p>A service in trial mode can only:</p>
<ul class="list list-bullet">
<li>send 50 text messages and emails per day</li>
<li>send messages to you and other people in your team</li>
<li>draft letters, but not send them</li>
</ul>
<p>
To remove these restrictions, you can
{% if current_service and current_service.trial_mode %}
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.request_to_go_live', service_id=current_service.id) }}">send us a request to go live</a>.
{% else %}
send us a request to go live.
{% endif %}
</p>
<p>Before you can request to go live, you must:</p>
<ul class="list bullet-list">
<li>sign our data sharing and financial agreement</li>
<li>accept our terms of use</li>
<li>set up your service so you're ready to send and receive messages</li>
</ul>
<h2 id="messagedeliveryandfailure" class="heading-medium">Sending messages</h2>
<p>When you send a message using GOV.UK Notify, it moves through different states.</p>
<p>Notifys real-time dashboard lets you check the status of any message, to see when it was delivered. You can use our API to check the status of your messages too.</p>
<p><a class="govuk-link govuk-link--no-visited-state" href="https://www.notifications.service.gov.uk/documentation">Read our documentation</a> for a detailed list of API message statuses.</p>
<img
src="{{ asset_url('images/message-sending-flow.svg') }}"
alt="A picture of the sending flow of messages in Notify, showing the three states of Sending, Delivered, And Failed. Also shows the next
steps when messages fail, deleting data and trying a new channel for permanent failures, and trying again or trying a new channel for
temporary failures"
style="width: 100%;"
>
<h2 id="messagestatus" class="heading-medium">Message status emails and text messages</h2>
<h3 class="heading-small">Sending</h3>
<p>GOV.UK Notify has sent the message to the provider. The provider will try to deliver the message to the recipient. GOV.UK Notify is waiting for delivery information.</p>
<h3 class="heading-small">Sent internationally (text messages only)</h3>
<p>The message was sent to an international number. The mobile networks in some countries do not provide any more delivery information.</p>
<h3 class="heading-small">Delivered</h3>
<p>The message was successfully delivered.</p>
<p>Notify will not tell you if a user has opened or read a message.</p>
<h3 class="heading-small" id="does-not-exist">Phone number or email address does not exist</h3>
<p>The provider could not deliver the message because the email address or phone number was wrong.
<p>You should remove these email addresses or phone numbers from your database.</p>
<p>Youll still be charged for text messages to numbers that do not exist.</p>
<h3 class="heading-small" id="not-accepting-messages">Inbox/phone not accepting messages right now</h3>
<p>The provider could not deliver the message after trying for 72 hours.</p>
<p>This can happen when the recipients inbox is full or their phone is off.</p>
<p>You can try to send the message again.</p>
<p>Youll still be charged for text messages to phones that are not accepting messages.</p>
<h3 class="heading-small" id="technical-failure">Technical failure</h3>
<p>Your message was not sent because there was a problem between Notify and the provider.</p>
<p>Youll have to try sending your messages again.</p>
<p>You will not be charged for text messages that are affected by a technical failure.</p>
<h2 class="heading-medium">Message status letters</h2>
<h3 class="heading-small">Sent</h3>
<p>GOV.UK Notify has sent the letter to the provider to be printed.</p>
<h3 class="heading-small">Cancelled</h3>
<p>Sending cancelled. Your letter will not be printed or dispatched.</p>
<h3 class="heading-small">Technical failure</h3>
<p>GOV.UK Notify had an unexpected error while sending to our printing provider.</p>
<h2 class="heading-medium">Receiving messages</h2>
<h3 class="heading-small">Email replies</h3>
<p>You can choose an email address you want replies to go to.</p>
<h3 class="heading-small">Text messages</h3>
<p>You can contact us if you want to be able to receive text messages. </p>
<p>When youve done this, users will be able to reply to text messages you send them. Theyll also be able to start an interaction by sending you a text message.</p>
<p>Youll be able to see and reply to text messages you receive. You can also create automated processes to manage replies.</p>
<p>Youll still need to have a manual process in place for any messages that cant be dealt with automatically.</p>
<h2 class="heading-medium">Letters</h2>
<p>Letters can be up to 10 pages long (5 sides of paper, double-sided).</p>
<p>Notify sends letters in C5 size envelopes, with a window.</p>-->
</div>
</div>

View File

@@ -612,12 +612,12 @@ LETTER_VALIDATION_MESSAGES = {
'letter-too-long': {
'title': 'Your letter is too long',
'detail': (
'Letters must be 10 pages or less. <br>'
'Letters must be 10 pages or less (5 double-sided sheets of paper). <br>'
'Your letter is {page_count} pages long.'
),
'summary': (
'Validation failed because this letter is {page_count} pages long.<br>'
'Letters must be 10 pages or less.'
'Letters must be 10 pages or less (5 double-sided sheets of paper).'
),
},
'no-encoded-string': {

View File

@@ -462,12 +462,12 @@ def test_get_letter_validation_error_for_unknown_error():
None,
'Your letter is too long',
(
'Letters must be 10 pages or less. '
'Letters must be 10 pages or less (5 double-sided sheets of paper). '
'Your letter is 13 pages long.'
),
(
'Validation failed because this letter is 13 pages long.'
'Letters must be 10 pages or less.'
'Letters must be 10 pages or less (5 double-sided sheets of paper).'
),
),
(