Skip to content
Closed
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
97 changes: 97 additions & 0 deletions app/views/record-vaccinations/alt-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{% extends 'layout.html' %}

{% set pageName = "Record vaccinations" %}
<p>Start recording a vaccination.</p>

{% from 'inset-text/macro.njk' import insetText %}

{% set insetTextHtml %}
<p>Find out about the latest updates to the service:
<br><a href="https://guide.ravs.england.nhs.uk/whats-new/" title="External website">What's new (opens in new tab)</a></p>
{% endset %}

{{ insetText({
html: insetTextHtml
}) }}

{% set currentSection = "vaccinate" %}

{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">

{% include "includes/notification.html" %}


{% if (errorList | length) > 0 %}
{{ errorSummary({
titleText: "There is a problem",
errorList: errorList
}) }}
{% endif %}



<form action="/record-vaccinations/answer-patient-nhs-number-known" method="post" novalidate>

{% set nhsNumberHtml %}

{{ input({
id: "nhs-number",
name: "nhsNumber",
classes: "nhsuk-input--width-10",
inputmode: "numeric",
errorMessage: nhsNumberError,
label: {
text: "NHS number",
classes: "nhsuk-label--s"
},
value: data.nhsNumber,
hint: {
text: "For example, 485 777 3456"
}
}) }}
{% endset %}


{{ radios({
idPrefix: "nhs-number-known",
name: "nhsNumberKnown",
fieldset: {
legend: {
html: "Do you have the patient’s NHS&nbsp;number?",
classes: "nhsuk-fieldset__legend--l",
isPageHeading: "true"
}
},
value: data.nhsNumberKnown,
errorMessage: nhsNumberKnownError if nhsNumberKnownError,
items: [
{
value: "yes",
text: "Yes",
conditional: {
html: nhsNumberHtml
}
},
{
value: "no",
text: "No"
}
]
}) }}

{# This is to make sure the right options are shown on the 'Done' page. #}
<input type="hidden" name="appointmentId" value="">
<input type="hidden" name="from" value="">
<input type="hidden" name="vaccinationToday" value="">

{{ button({
text: "Continue"
})}}
</form>

</div>
</div>

{% endblock %}