Skip to content
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
25 changes: 25 additions & 0 deletions app/views/errors/history-error-continue-anyway.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% extends 'layout.html' %}

{% set pageName = "We could not get any vaccination history for Jodie Brown" %}

{% block beforeContent %}
{{ backLink({ href: "/record-vaccinations/patient" }) }}
{% endblock %}

{% set currentSection = "vaccinate" %}

{% block content %}

<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">

<h1 class="nhsuk-heading-l">{{ pageName }}</h1>

{{ button({
text: "Continue anyway"
}) }}

</div>
</div>

{% endblock %}
26 changes: 6 additions & 20 deletions app/views/errors/no-vaccination-history.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,24 @@

{% set pageName = "There is a temporary problem getting Jodie Brown's vaccination history" %}


{% block beforeContent %}
{{ backLink({ href: "/record-vaccinations/patient" }) }}
{% endblock %}

{% set currentSection = "vaccinate" %}


{% block content %}

<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">

<h1 class="nhsuk-heading-l">{{ pageName }}</h1>


{% from "button/macro.njk" import button %}

{{ button({
text: "Try again"
}) }}


&nbsp; &nbsp;

{% from "button/macro.njk" import button %}

{{ button({
text: "Continue anyway",
classes: "nhsuk-button--secondary"
}) }}
{{ button({
text: "Try again"
}) }}

</div>
</div>


{% endblock %}
{% endblock %}
18 changes: 8 additions & 10 deletions app/views/errors/pds-error-continue-anyway.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
{% extends 'layout.html' %}

{% set pageName = "We could not get the patient's details" %}

{% set pageName = "We cannot get the patient's details" %}

{% block beforeContent %}
{{ backLink({ href: "/record-vaccinations/patient" }) }}
{% endblock %}

{% set currentSection = "vaccinate" %}

{% block content %}
Comment thread
Anna-Sutton marked this conversation as resolved.
Resolved

<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>


{% from "button/macro.njk" import button %}
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>

{{ button({
text: "Continue anyway"
}) }}
{{ button({
text: "Continue anyway"
}) }}

</div>
</div>


{% endblock %}
{% endblock %}
16 changes: 11 additions & 5 deletions app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
<!-- Set the page title -->
{% set pageName = "NHS Record a vaccination prototypes" %}


<!-- For adding a breadcrumb or back link -->
-->

{% block beforeContent %}
{% endblock %}


<!-- For adding page content -->
<!-- Page layout code can be found at https://service-manual.nhs.uk/design-system/styles/layout -->
{% block content %}
Expand Down Expand Up @@ -437,7 +435,15 @@ <h2>Error pages</h2>
html: "<a href='/errors/no-vaccination-history'>There is a temporary problem getting [patient name]'s vaccination history (history API issue)</a>"
},
{
text: "When no vaccination history can be retrieved from the history APIs or RAVS database."
text: "When no vaccination history can be retrieved from the history APIs so we allow the user to try again."
}
],
[
{
html: "<a href='/errors/history-error-continue-anyway'>We could not any vaccination history for [patient name]</a>"
},
{
text: "When the user has tried again and we still cannot fetch any history from the APIs so we allow the user to continue with no history."
}
],
[
Expand Down Expand Up @@ -466,7 +472,7 @@ <h2>Error pages</h2>
],
[
{
html: "<a href='/errors/pds-error-continue-anyway'>We could not get the patient's details</a>"
html: "<a href='/errors/pds-error-continue-anyway'>We cannot get the patient's details</a>"
},
{
text: "When we cannot fetch patient details from PDS and allow the user to continue recording without the NHS number match."
Expand Down
Loading