|
20 | 20 | {% endif %} |
21 | 21 |
|
22 | 22 | <form action="/record-vaccinations/answer-location" method="post" novalidate> |
23 | | - |
24 | | - {% from 'radios/macro.njk' import radios %} |
25 | | - {% from 'input/macro.njk' import input %} |
26 | | - |
27 | 23 | {% set careHtml %} |
28 | 24 |
|
29 | | - |
30 | 25 | <div class="nhsuk-form-group"> |
31 | 26 | <label class="nhsuk-label nhsuk-label--s" for="care-home"> |
32 | 27 | Care home details |
|
53 | 48 |
|
54 | 49 | </select> |
55 | 50 | </div> |
56 | | - |
57 | | - |
58 | 51 | {% endset -%} |
59 | 52 |
|
60 | 53 | {{ radios({ |
|
70 | 63 | hint: { |
71 | 64 | text: "This is needed for payment and reporting." |
72 | 65 | }, |
| 66 | + value: data.locationType, |
73 | 67 | items: [ |
74 | 68 | { |
75 | | - text: "Hospital hub for staff and patients", |
76 | | - value: "Hospital hub for staff and patients", |
77 | | - checked: (data.locationType === "Hospital hub for staff and patients") |
78 | | - }, |
79 | | - { |
80 | | - text: "Vaccination centre open to the public", |
81 | | - value: "Vaccination centre open to the public", |
82 | | - checked: (data.locationType === "Vaccination centre open to the public") |
83 | | - }, |
84 | | - { |
85 | | - text: "Community pharmacy", |
86 | | - value: "Community pharmacy", |
87 | | - checked: (data.locationType === "Community pharmacy") |
| 69 | + text: "On site", |
| 70 | + value: "On site" |
88 | 71 | }, |
89 | 72 | { |
90 | 73 | value: "Care home", |
91 | 74 | text: "Care home", |
92 | | - checked: (data.locationType === "Care home"), |
93 | 75 | conditional: { |
94 | 76 | html: careHtml |
95 | 77 | } |
96 | 78 | }, |
97 | 79 | { |
98 | 80 | text: "Housebound patient’s home", |
99 | | - value: "Housebound patient’s home", |
100 | | - checked: (data.locationType === "Housebound patient’s home") |
| 81 | + value: "Housebound patient’s home" |
101 | 82 | }, |
102 | 83 | { |
103 | 84 | text: "Outreach event", |
104 | | - value: "Outreach event", |
105 | | - checked: (data.locationType === "Outreach event") |
106 | | - }, |
107 | | - { |
108 | | - text: "GP clinic", |
109 | | - value: "GP clinic", |
110 | | - checked: (data.locationType === "GP clinic") |
| 85 | + value: "Outreach event" |
111 | 86 | } |
112 | 87 | ] |
113 | 88 |
|
|
0 commit comments