|
20 | 20 |
|
21 | 21 | {% set otherConsentHtml %} |
22 | 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> |
| 23 | + {{ input({ |
| 24 | + label: { |
| 25 | + text: "Name" |
| 26 | + }, |
| 27 | + id: "consentName", |
| 28 | + name: "consentName", |
| 29 | + value: data.consentName |
| 30 | + }) }} |
29 | 31 |
|
30 | 32 | {% endset %} |
31 | 33 |
|
32 | | - |
33 | 34 | {{ radios({ |
34 | 35 | idPrefix: "consent", |
35 | 36 | name: "consent", |
|
42 | 43 | }, |
43 | 44 | items: [ |
44 | 45 | { |
45 | | - value: "John Smith", |
46 | | - text: "John Smith", |
47 | | - checked: (data.vaccinator === "John Smith") |
| 46 | + value: data.patientName, |
| 47 | + text: data.patientName, |
| 48 | + checked: (data.consent === data.patientName) |
48 | 49 | }, |
49 | 50 | { |
50 | 51 | divider: "or" |
51 | 52 | }, |
52 | 53 | { |
53 | | - value: "no", |
| 54 | + value: "Clinician following the Mental Capacity Act", |
54 | 55 | text: "Clinician following the Mental Capacity Act", |
55 | | - checked: (data.vaccinator === "Clinician"), |
| 56 | + checked: (data.consent === "Clinician following the Mental Capacity Act"), |
56 | 57 | conditional: { |
57 | 58 | html: otherConsentHtml |
58 | 59 | } |
59 | 60 | }, |
60 | 61 | { |
61 | | - value: "no", |
| 62 | + value: "Person with power of attorney for personal welfare", |
62 | 63 | text: "Person with power of attorney for personal welfare", |
63 | | - checked: (data.vaccinator === "Clinician"), |
| 64 | + checked: (data.consent === "Person with power of attorney for personal welfare"), |
64 | 65 | conditional: { |
65 | 66 | html: otherConsentHtml |
66 | 67 | } |
67 | 68 | }, |
68 | 69 | { |
69 | | - value: "no", |
| 70 | + value: "Parent or guardian", |
70 | 71 | text: "Parent or guardian", |
71 | | - checked: (data.vaccinator === "Clinician"), |
| 72 | + checked: (data.consent === "Parent or guardian"), |
72 | 73 | conditional: { |
73 | 74 | html: otherConsentHtml |
74 | 75 | } |
75 | 76 | }, |
76 | 77 | { |
77 | | - value: "no", |
| 78 | + value: "Mental capacity advocate", |
78 | 79 | text: "Mental capacity advocate", |
79 | | - checked: (data.vaccinator === "Clinician"), |
| 80 | + checked: (data.consent === "Mental capacity advocate"), |
80 | 81 | conditional: { |
81 | 82 | html: otherConsentHtml |
82 | 83 | } |
83 | 84 | }, |
84 | 85 | { |
85 | | - value: "no", |
| 86 | + value: "Court appointed deputy", |
86 | 87 | text: "Court appointed deputy", |
87 | | - checked: (data.vaccinator === "Clinician"), |
| 88 | + checked: (data.consent === "Court appointed deputy"), |
88 | 89 | conditional: { |
89 | 90 | html: otherConsentHtml |
90 | 91 | } |
|
0 commit comments