diff --git a/app/views/record-vaccinations/location-a.html b/app/views/record-vaccinations/location-a.html new file mode 100644 index 00000000..a45aeefa --- /dev/null +++ b/app/views/record-vaccinations/location-a.html @@ -0,0 +1,121 @@ +{% extends 'layout.html' %} + +{% set pageName = "Where is the vaccination taking place?" %} + +{% set currentSection = "vaccinate" %} + +{% block beforeContent %} + {{ backLink({ href: "/record-vaccinations/eligibility" }) }} +{% endblock %} + +{% block content %} +
+
+ + {% set errorList = [] %} + {% for error in errors %} + {% if error.code == "required" %} + {% set errorList = (errorList.push({ + text: "Select where the vaccination is taking place", + href: error.href + }), errorList) %} + {% endif %} + {% endfor %} + + {% if (errorList | length) > 0 %} + {{ errorSummary({ + titleText: "There is a problem", + errorList: errorList + }) }} + {% endif %} + +
+ {% set careHtml %} + +
+ +
+ Search by name or ODS code +
+ +
+ {% endset -%} + + + {{ radios({ + idPrefix: "location-type", + name: "locationType", + fieldset: { + legend: { + text: ("Where is the vaccination taking place?" if data.vaccinationToday == 'yes' else "Where did the vaccination take place?"), + size: "l", + isPageHeading: true + } + }, + hint: { + text: "This is needed for payment and reporting." + }, + errorMessage: { + text: (errorList | first).text + } if (errorList | length) > 0, + value: data.locationType, + items: [ + { + text: "On site", + value: "On site", + hint: { + text: "Includes: hospital hubs, vaccination centres, Primary Care Networks (PCNs), pharmacies, GP surgeries and detained settings" + } + }, + { + value: "Care home", + text: "Care home", + conditional: { + html: careHtml + } + }, + { + text: "Housebound patient’s home", + value: "Housebound patient’s home" + }, + { + text: "Outreach event", + value: "Outreach event" + } + ] + + }) }} + + + {{ button({ + text: "Continue" + })}} + + +
+ + +
+
+ +{% endblock %} + diff --git a/app/views/record-vaccinations/location-b.html b/app/views/record-vaccinations/location-b.html new file mode 100644 index 00000000..f4421378 --- /dev/null +++ b/app/views/record-vaccinations/location-b.html @@ -0,0 +1,139 @@ +{% extends 'layout.html' %} + +{% set pageName = "Where is the vaccination taking place?" %} + +{% set currentSection = "vaccinate" %} + +{% block beforeContent %} + {{ backLink({ href: "/record-vaccinations/eligibility" }) }} +{% endblock %} + +{% block content %} +
+
+ + {% from "details/macro.njk" import details %} + + {% set details %} + +
+ + + Help with location + + +
+

On site includes:

+
    +
  • hospital hubs
  • +
  • vaccination centres
  • +
  • Primary Care Networks (PCNs)
  • +
  • pharmacies
  • +
  • GP surgeries
  • +
  • detained settings
  • +
+
+
+ {% endset %} + + {% set errorList = [] %} + {% for error in errors %} + {% if error.code == "required" %} + {% set errorList = (errorList.push({text: "Select where the vaccination is taking place", href: error.href}), errorList) %} + {% endif %} + {% endfor %} + + {% if (errorList | length) > 0 %} + {{ errorSummary({ + titleText: "There is a problem", + errorList: errorList + }) }} + {% endif %} + +
+ {% set careHtml %} + +
+ +
+ Search by name or ODS code +
+ +
+ {% endset -%} + + {{ radios({ + idPrefix: "location-type", + name: "locationType", + formGroup: { + beforeInputs: { + html: details + } + }, + fieldset: { + legend: { + text: ("Where is the vaccination taking place?" if data.vaccinationToday == 'yes' else "Where did the vaccination take place?"), + size: "l", + isPageHeading: true + } + }, + hint: { + text: "This is needed for payment and reporting." + }, + errorMessage: { + text: (errorList | first).text + } if (errorList | length) > 0, + value: data.locationType, + items: [ + { + text: "On site", + value: "On site" + }, + { + value: "Care home", + text: "Care home", + conditional: { + html: careHtml + } + }, + { + text: "Housebound patient’s home", + value: "Housebound patient’s home" + }, + { + text: "Outreach event", + value: "Outreach event" + } + ] + + }) }} + + {{ button({ + text: "Continue" + })}} + +
+ +
+
+ +{% endblock %} \ No newline at end of file diff --git a/app/views/record-vaccinations/location.html b/app/views/record-vaccinations/location.html index 8f3aa8fa..04029eb2 100644 --- a/app/views/record-vaccinations/location.html +++ b/app/views/record-vaccinations/location.html @@ -114,4 +114,3 @@ {% endblock %} -