Skip to content

Commit 80e1a5f

Browse files
Consent screen tweaks (#152)
1 parent b10a246 commit 80e1a5f

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

app/views/vaccinate/consent.html

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@
2020

2121
{% set otherConsentHtml %}
2222

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+
}) }}
2931

3032
{% endset %}
3133

32-
3334
{{ radios({
3435
idPrefix: "consent",
3536
name: "consent",
@@ -42,49 +43,49 @@
4243
},
4344
items: [
4445
{
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)
4849
},
4950
{
5051
divider: "or"
5152
},
5253
{
53-
value: "no",
54+
value: "Clinician following the Mental Capacity Act",
5455
text: "Clinician following the Mental Capacity Act",
55-
checked: (data.vaccinator === "Clinician"),
56+
checked: (data.consent === "Clinician following the Mental Capacity Act"),
5657
conditional: {
5758
html: otherConsentHtml
5859
}
5960
},
6061
{
61-
value: "no",
62+
value: "Person with power of attorney for personal welfare",
6263
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"),
6465
conditional: {
6566
html: otherConsentHtml
6667
}
6768
},
6869
{
69-
value: "no",
70+
value: "Parent or guardian",
7071
text: "Parent or guardian",
71-
checked: (data.vaccinator === "Clinician"),
72+
checked: (data.consent === "Parent or guardian"),
7273
conditional: {
7374
html: otherConsentHtml
7475
}
7576
},
7677
{
77-
value: "no",
78+
value: "Mental capacity advocate",
7879
text: "Mental capacity advocate",
79-
checked: (data.vaccinator === "Clinician"),
80+
checked: (data.consent === "Mental capacity advocate"),
8081
conditional: {
8182
html: otherConsentHtml
8283
}
8384
},
8485
{
85-
value: "no",
86+
value: "Court appointed deputy",
8687
text: "Court appointed deputy",
87-
checked: (data.vaccinator === "Clinician"),
88+
checked: (data.consent === "Court appointed deputy"),
8889
conditional: {
8990
html: otherConsentHtml
9091
}

app/views/vaccinate/injection-site.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% set currentSection = "vaccinate" %}
88

99
{% block beforeContent %}
10-
{{ backLink({ href: "/vaccinate/patient-estimated-due-date" }) }}
10+
{{ backLink({ href: "/vaccinate/consent" }) }}
1111
{% endblock %}
1212

1313
{% block content %}

0 commit comments

Comments
 (0)