Skip to content

Commit b271194

Browse files
Add clinician status to onboarding flow (#314)
We can ask users if they are a registered clinician when signing up, to save them having to set this later (which some users have not realised they need to do). ![localhost_3002_apply_contact-details (1)](https://github.com/user-attachments/assets/f6617462-123e-4d5c-9854-f8ebfa56b3db)
1 parent bbff0d6 commit b271194

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

app/routes/apply.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module.exports = router => {
4141
data.firstName = null
4242
data.lastName = null
4343
data.email = null
44+
data.clinician = null
4445

4546
res.redirect(nextPage)
4647
})

app/views/apply/check.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,23 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
9090
}
9191
]
9292
}
93+
},
94+
{
95+
key: {
96+
text: "Clinical"
97+
},
98+
value: {
99+
text: ("Yes" if data.clinician == "yes" else "No")
100+
},
101+
actions: {
102+
items: [
103+
{
104+
href: "/apply/contact-details",
105+
text: "Change",
106+
visuallyHiddenText: "clinician status"
107+
}
108+
]
109+
}
93110
}
94111
]
95112
}) }}

app/views/apply/contact-details.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% set pageName = "Your contact details" %}
3+
{% set pageName = "Your details" %}
44

55
{% block header %}
66
{% include "includes/header-logged-out.html" %}
@@ -62,6 +62,30 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
6262
} if emailError
6363
}) }}
6464

65+
{{ radios({
66+
name: "clinician",
67+
fieldset: {
68+
legend: {
69+
text: "Are you a registered clinician?"
70+
}
71+
},
72+
hint: {
73+
text: "Only registered clinicians can be recorded as the vaccinator."
74+
},
75+
value: data.clinician,
76+
items: [
77+
{
78+
value: "yes",
79+
text: "Yes"
80+
},
81+
{
82+
value: "no",
83+
text: "No"
84+
}
85+
]
86+
}) }}
87+
88+
6589
{{ button({
6690
"text": "Continue"
6791
}) }}

0 commit comments

Comments
 (0)