diff --git a/app/main/views/index.py b/app/main/views/index.py index 7e59a0347..16bb5debe 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -386,6 +386,14 @@ def upload_a_letter(): ) +@main.route('/using-notify/guidance/letter-specification') +def letter_specification(): + return render_template( + 'views/guidance/letter-specification.html', + navigation_links=using_notify_nav(), + ) + + # --- Redirects --- # @main.route('/roadmap', endpoint='old_roadmap') diff --git a/app/main/views/sub_navigation_dictionaries.py b/app/main/views/sub_navigation_dictionaries.py index 05c9954bb..1d30f6606 100644 --- a/app/main/views/sub_navigation_dictionaries.py +++ b/app/main/views/sub_navigation_dictionaries.py @@ -84,6 +84,10 @@ def using_notify_nav(): "name": "Upload a letter", "link": "main.upload_a_letter", }, + { + "name": "Letter specification", + "link": "main.letter_specification", + }, ] }, { diff --git a/app/navigation.py b/app/navigation.py index 98edb97d9..c535db16b 100644 --- a/app/navigation.py +++ b/app/navigation.py @@ -208,6 +208,7 @@ class HeaderNavigation(Navigation): 'edit_and_format_messages', 'send_files_by_email', 'upload_a_letter', + 'letter_specification', 'history', 'inbound_sms_admin', 'inbox', @@ -585,6 +586,7 @@ class MainNavigation(Navigation): 'edit_and_format_messages', 'send_files_by_email', 'upload_a_letter', + 'letter_specification', 'history', 'how_to_pay', 'inbound_sms_admin', @@ -840,6 +842,7 @@ class CaseworkNavigation(Navigation): 'edit_and_format_messages', 'send_files_by_email', 'upload_a_letter', + 'letter_specification', 'history', 'how_to_pay', 'inbound_sms_admin', @@ -1153,6 +1156,7 @@ class OrgNavigation(Navigation): 'edit_and_format_messages', 'send_files_by_email', 'upload_a_letter', + 'letter_specification', 'history', 'how_to_pay', 'inbound_sms_admin', diff --git a/app/templates/views/guidance/letter-specification.html b/app/templates/views/guidance/letter-specification.html new file mode 100644 index 000000000..18105d969 --- /dev/null +++ b/app/templates/views/guidance/letter-specification.html @@ -0,0 +1,57 @@ +{% extends "content_template.html" %} +{% from "components/service-link.html" import service_link %} + +{% block per_page_title %} + Letter specification +{% endblock %} + +{% block content_column_content %} + +
Page size and layout: A4 portrait (210 × 297 mm)
+Maximum file size: 2 MB
+Your letter must 10 pages or less (5 double-sided sheets of paper).
+The content of your letter must appear inside the printable area.
+ +To help you set up your letter, you can download our letter specification as a PDF.
+ +Left margin 15mm
+Right margin 15mm
+Top margin 5mm
+Bottom margin 5mm
+ +Position: 15mm from left edge, 5mm from top edge
+Size: 200mm wide by 25mm high
+ +Position: 39.5mm from left edge, 24.6mm from top edge
+Size: 95.4mm wide by 26.8mm high
+ +Position: 125mm from left edge, 30mm from top edge
+Size: 65mm wide by 65mm high
+ +Left margin 15mm
+Right margin 15mm
+Top margin 5mm
+Bottom margin 5mm
+The content of your letter must appear inside the printable area.
- -Your file must be:
- -To help you set up your letter, you can download our letter specification document (PDF).
+Your file must meet our letter specification.
{% endblock %} diff --git a/app/templates/views/uploads/choose-file.html b/app/templates/views/uploads/choose-file.html index a27e50685..a9b863601 100644 --- a/app/templates/views/uploads/choose-file.html +++ b/app/templates/views/uploads/choose-file.html @@ -35,20 +35,7 @@ )}} -The content of your letter must appear inside the printable area.
- -Your file must be:
- -To help you set up your letter, you can download our letter specification document (PDF).
+Your file must meet our letter specification.
{% endblock %} diff --git a/app/utils.py b/app/utils.py index e7a979cb1..850fa66fd 100644 --- a/app/utils.py +++ b/app/utils.py @@ -631,7 +631,7 @@ LETTER_VALIDATION_MESSAGES = { 'summary': ( 'Validation failed because {invalid_pages} {invalid_pages_are_or_is} not A4 portrait size.