|
| 1 | +{% extends 'layout.html' %} |
| 2 | + |
| 3 | +{% block pageTitle %} |
| 4 | + Vaccines |
| 5 | +{% endblock %} |
| 6 | + |
| 7 | +{% set currentSection = "consent" %} |
| 8 | + |
| 9 | +{% block beforeContent %} |
| 10 | + {{ backLink({ href: "/vaccinate/patient-history" }) }} |
| 11 | +{% endblock %} |
| 12 | + |
| 13 | +{% block content %} |
| 14 | + <div class="nhsuk-grid-row"> |
| 15 | + <div class="nhsuk-grid-column-two-thirds"> |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + <form action="/vaccinate/injection-site" method="post" novalidate> |
| 20 | + |
| 21 | + {% set otherConsentHtml %} |
| 22 | + |
| 23 | + <div class="nhsuk-form-group"> |
| 24 | + <label class="nhsuk-label" for="example"> |
| 25 | + Name |
| 26 | + </label> |
| 27 | + <input class="nhsuk-input" id="example" name="example" type="text"> |
| 28 | + </div> |
| 29 | + |
| 30 | + {% endset %} |
| 31 | + |
| 32 | + |
| 33 | + {{ radios({ |
| 34 | + idPrefix: "consent", |
| 35 | + name: "consent", |
| 36 | + fieldset: { |
| 37 | + legend: { |
| 38 | + text: ("Who is giving consent?" if data.vaccinationToday == 'yes' else "Who gave consent?"), |
| 39 | + classes: "nhsuk-fieldset__legend--l", |
| 40 | + isPageHeading: "true" |
| 41 | + } |
| 42 | + }, |
| 43 | + items: [ |
| 44 | + { |
| 45 | + value: "John Smith", |
| 46 | + text: "John Smith", |
| 47 | + checked: (data.vaccinator === "John Smith") |
| 48 | + }, |
| 49 | + { |
| 50 | + divider: "or" |
| 51 | + }, |
| 52 | + { |
| 53 | + value: "no", |
| 54 | + text: "Clinician following the Mental Capacity Act", |
| 55 | + checked: (data.vaccinator === "Clinician"), |
| 56 | + conditional: { |
| 57 | + html: otherConsentHtml |
| 58 | + } |
| 59 | + }, |
| 60 | + { |
| 61 | + value: "no", |
| 62 | + text: "Person with power of attorney for personal welfare", |
| 63 | + checked: (data.vaccinator === "Clinician"), |
| 64 | + conditional: { |
| 65 | + html: otherConsentHtml |
| 66 | + } |
| 67 | + }, |
| 68 | + { |
| 69 | + value: "no", |
| 70 | + text: "Parent or guardian", |
| 71 | + checked: (data.vaccinator === "Clinician"), |
| 72 | + conditional: { |
| 73 | + html: otherConsentHtml |
| 74 | + } |
| 75 | + }, |
| 76 | + { |
| 77 | + value: "no", |
| 78 | + text: "Mental capacity advocate", |
| 79 | + checked: (data.vaccinator === "Clinician"), |
| 80 | + conditional: { |
| 81 | + html: otherConsentHtml |
| 82 | + } |
| 83 | + }, |
| 84 | + { |
| 85 | + value: "no", |
| 86 | + text: "Court appointed deputy", |
| 87 | + checked: (data.vaccinator === "Clinician"), |
| 88 | + conditional: { |
| 89 | + html: otherConsentHtml |
| 90 | + } |
| 91 | + } |
| 92 | + ] |
| 93 | + }) }} |
| 94 | + |
| 95 | + {{ button({ |
| 96 | + text: "Continue" |
| 97 | + })}} |
| 98 | + </form> |
| 99 | + |
| 100 | + </div> |
| 101 | + </div> |
| 102 | + |
| 103 | +{% endblock %} |
| 104 | + |
0 commit comments