diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index eb736e3cf..35f2c8cc5 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -2862,7 +2862,7 @@ ], "version": 2, "skipSummary": false, - "declaration": "\n
\n

In this section you can review and change your answers. The Submit button at the bottom of this page will result in your responses being submitted.
\n Please be aware that your responses in this form may be shared with the Local Authority, Community Infection Control Team, Health Protection Team and/or NHS for the purposes of assisting you with the management of your situation.\n
\n

Once you press “submit”, you should receive at least two automatic emails from the Care OBRA Tool:

\n \n

If:

\n \n

You should call your local HPT or CIC Team.

\n

If you do not know the contact details of your HPT you can find them here - Find your local health protection team in England - GOV.UK (www.gov.uk)

\n

Before submitting your answers, please ensure you have not included any person identifiable information in your responses (e.g. names or dates of birth).

\n

Please tick to confirm understanding of this.

\n\n", + "declaration": "
\n

Your responses may be shared with your local UKHSA health protection team, your local authority community infection control team, and the NHS. They will use your information to help you to manage your situation.
\n

By submitting this report you confirm that the details you are providing are correct to the best of your knowledge. You confirm that you have not included any personally identifiable information, for example names or dates of birth

\n\n", "name": "Report an outbreak", "feedback": { "feedbackForm": true, diff --git a/runner/src/server/plugins/engine/pageControllers/SummaryPageController.ts b/runner/src/server/plugins/engine/pageControllers/SummaryPageController.ts index d56472dd5..f183e5eed 100644 --- a/runner/src/server/plugins/engine/pageControllers/SummaryPageController.ts +++ b/runner/src/server/plugins/engine/pageControllers/SummaryPageController.ts @@ -150,21 +150,7 @@ export class SummaryPageController extends PageController { return startPageRedirect; } - /** - * If a form is configured with a declaration, a checkbox will be rendered with the configured declaration text. - * If the user does not agree to the declaration, the page will be rerendered with a warning. - */ if (summaryViewModel.declaration && !summaryViewModel.skipSummary) { - const { declaration } = request.payload as { declaration?: any }; - - if (!declaration) { - request.yar.flash( - "declarationError", - "You must declare to be able to submit this application" - ); - const url = request.headers.referer ?? request.path; - return redirectTo(request, h, `${url}#declaration`); - } summaryViewModel.addDeclarationAsQuestion(); } diff --git a/runner/src/server/views/summary.html b/runner/src/server/views/summary.html index ac7d91ce1..14284ce3f 100644 --- a/runner/src/server/views/summary.html +++ b/runner/src/server/views/summary.html @@ -85,7 +85,7 @@

Fees

{%if declaration %} -

Declaration

+

Now send your report

{{ declaration | safe }}
Declaration {{ declarationError }} {% endif %} -
-
- - -
-
{% endif %} @@ -139,15 +116,15 @@

Declaration

data-module="govuk-button" > {% if fees and fees.details|length %} Submit and pay {% else %} - Submit {% endif %} + Confirm and send {% endif %} {% if result.error %} {% endif %}