diff --git a/app/main/views/send.py b/app/main/views/send.py index a6601840da..5301222369 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -483,6 +483,7 @@ def send_one_off_step(service_id, template_id, step_index): link_to_upload=( request.endpoint == "main.send_one_off_step" and step_index == 0 ), + errors = form.errors if form.errors else None ) diff --git a/app/templates/views/check/ok.html b/app/templates/views/check/ok.html index 015cb1ee13..71324b7242 100644 --- a/app/templates/views/check/ok.html +++ b/app/templates/views/check/ok.html @@ -2,7 +2,6 @@ {% from "components/banner.html" import banner_wrapper %} {% from "components/page-header.html" import page_header %} {% from "components/components/button/macro.njk" import usaButton %} -{% from "components/components/skip-link/macro.njk" import usaSkipLink %} {% from "components/components/back-link/macro.njk" import usaBackLink %} {% set file_contents_header_id = 'file-preview' %} diff --git a/app/templates/views/check/preview.html b/app/templates/views/check/preview.html index 2664cbe276..5f8f658a71 100644 --- a/app/templates/views/check/preview.html +++ b/app/templates/views/check/preview.html @@ -3,7 +3,6 @@ {% from "components/table.html" import list_table, field, text_field, hidden_field_heading %} {% from "components/page-header.html" import page_header %} {% from "components/components/button/macro.njk" import usaButton %} -{% from "components/components/skip-link/macro.njk" import usaSkipLink %} {% from "components/components/back-link/macro.njk" import usaBackLink %} {% set file_contents_header_id = 'file-preview' %} diff --git a/app/templates/views/send-test.html b/app/templates/views/send-test.html index 8a4cf4c0d9..20661b9284 100644 --- a/app/templates/views/send-test.html +++ b/app/templates/views/send-test.html @@ -12,6 +12,23 @@ {{ usaBackLink({ "href": back_link }) }} {% endblock %} + +{% block skipLink %} + {% if errors %} +