Add route for letter specification page

This commit is contained in:
Chris Hill-Scott
2020-09-22 15:09:46 +01:00
parent cab0a0723e
commit a384f4cace
4 changed files with 14 additions and 2 deletions

View File

@@ -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')

View File

@@ -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',

View File

@@ -20,6 +20,6 @@
<li>Select <b class="govuk-!-font-weight-bold">Choose file</b>.</li>
</ol>
<p class="govuk-body">Your file must meet our <a href="#">letter specification</a>.</p>
<p class="govuk-body">Your file must meet our <a class="govuk-link" href="{{ url_for('main.letter_specification') }}">letter specification</a>.</p>
{% endblock %}

View File

@@ -623,7 +623,7 @@ LETTER_VALIDATION_MESSAGES = {
'detail': (
'You need to change the size or orientation of {invalid_pages}. <br>'
'Files must meet our '
<!--replace links to the PDF with links to the new page-->'<a class="govuk-link govuk-link--destructive" href="{letter_spec_guidance}" target="_blank">'
'<!--replace links to the PDF with links to the new page--><a class="govuk-link govuk-link--destructive" href="{letter_spec_guidance}" target="_blank">'
'letter specification'
'</a>.'
),