Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOC-4418 Update confirmation page #219

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion runner/src/server/forms/ReportAnOutbreak.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@
"customValidationMessages": {
"string.empty": "Enter an email address in the correct format, like [email protected]",
"string.pattern.base": "Enter an email address in the correct format, like [email protected]"
}
},
"exposeToContext": true
},
"type": "TextField",
"title": "S1Q8. Email of key contact person",
Expand Down Expand Up @@ -2720,5 +2721,13 @@
},
"phaseBanner": {
"phase": "Beta"
},
"specialPages": {
"confirmationPage": {
"customText": {
"nextSteps": "We will send 2 automated emails to {{ S1Q8 }}",
"title": "Report sent"
}
}
}
}
63 changes: 31 additions & 32 deletions runner/src/server/views/confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,41 @@
<div class="govuk-grid-column-two-thirds">
{% set tmpl = 'Your reference number<br><strong>' + reference + '</strong>' if reference else '' %}
{% if not customText %}
{{ govukPanel({
titleText: "Application complete",
html: tmpl
}) }}
<p class="govuk-body">
You will be receiving a confirmation email shortly
</p>
<h2 class="govuk-heading-m">What happens next</h2>
{% if paymentSkipped %}
<p class="govuk-body">
Someone will be in touch to make a payment.
</p>
{{ govukPanel({
titleText: "Application complete",
html: tmpl
}) }}
{% else %}
<p class="govuk-body">
You will be contacted by an agent from UKHSA as soon as possible who will advise you on next steps. <br /> <br />
If you need urgent medical advice, you can call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies,
call 999.
</p>
{{ govukPanel({
titleText: customText.title,
html: tmpl
}) }}
{% endif %}
{% else %}
{{ govukPanel({
titleText: customText.title,
html: tmpl
}) }}

<h2 class="govuk-heading-m">What happens next</h2>
{% if paymentSkipped and customText.paymentSkipped %}
<p class="govuk-body">
{{ customText.paymentSkipped }}
</p>
{% if paymentSkipped %}
<p class="govuk-body">Someone will be in touch to make a payment.</p>
{% else %}
{% if customText.nextSteps %}
<p class="govuk-body">
{{ customText.nextSteps }}
</p>
{% endif %}
{% endif %}
{% if customText.nextSteps %}
<p class="govuk-body">{{ customText.nextSteps | safe }}</p>
{% endif %}
<p class="govuk-body">
An acknowledgement email will give you your reference number and a copy of the information you've provided. The email will tell you if you have a low-risk COVID-19 outbreak, a medium-risk COVID-19 outbreak, a high-priority outbreak, or a single case of flu.
</p>
<p class="govuk-body">
An advice email will give you information specific to your situation to help you prevent the spread of infection. It explains what to expect from your local UKHSA health protection team or the community infection control team.
</p>
<p class="govuk-body">
If these emails do not arrive within one hour, or you need urgent advice, telephone your local <a class="govuk-link" href="https://www.gov.uk/health-protection-team">UKHSA health protection team</a> or community infection control team.
</p>
<h2 class="govuk-heading-m">If your outbreak is high priority on a weekend or bank holiday</h2>
<p class="govuk-body">
If your acknowledgment or advice email tells you that your outbreak is assessed as high priority on a weekend or a bank holiday, you also need to telephone your local <a class="govuk-link" href="https://www.gov.uk/health-protection-team">UKHSA health protection team</a>. Call during the daytime if possible. If you do not call the health protection team, a member of the health protection team will only call you on the next working day.
</p>
<h2 class="govuk-heading-m">If you need urgent medical advice</h2>
<p class="govuk-body">
If you need urgent medical advice, you should call NHS 111 or visit <a class="govuk-link" href="https://111.nhs.uk/">111.nhs.uk</a>. For life-threatening emergencies, call 999.
</p>
{% endif %}

{{ componentList(components) }}
Expand Down