Skip to content

Commit 66c46b9

Browse files
Add contextual hint text for follow-up request based on refusal reason
1 parent a8dcf90 commit 66c46b9

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

app/locales/en.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,21 @@ export const en = {
833833
consultation: {
834834
title:
835835
'Would you like a member of the team to contact you to discuss alternative options?',
836-
hint: 'For example, it may be possible to vaccinate your child in a community clinic.',
836+
hint: {
837+
[ReplyRefusal.AlreadyVaccinated]: false,
838+
[ReplyRefusal.AlreadyVaccinatedMMR]: false,
839+
[ReplyRefusal.Gelatine]:
840+
'For example, it may be possible to use a vaccine that does not contain gelatine.',
841+
[ReplyRefusal.GelatineMMR]:
842+
'For example, it may be possible to use a vaccine that does not contain gelatine.',
843+
[ReplyRefusal.GettingElsewhere]: false,
844+
[ReplyRefusal.Medical]:
845+
'We understand alternatives might not be suitable in some cases.',
846+
[ReplyRefusal.Other]: false,
847+
[ReplyRefusal.OutsideSchool]:
848+
'For example, it may be possible to vaccinate your child in a community clinic.',
849+
[ReplyRefusal.Personal]: false
850+
},
837851
label: 'Discuss options',
838852
yes: 'Yes, I would like someone to contact me',
839853
no: 'No'

app/views/parent/form/consultation.njk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "_layouts/form.njk" %}
22

33
{% set title = __("consent.consultation.title") %}
4+
{% set hint = __("consent.consultation.hint." + consent.refusalReason) %}
45

56
{% block form %}
67
{{ radios({
@@ -12,9 +13,7 @@
1213
})
1314
}
1415
},
15-
hint: {
16-
text: __("consent.consultation.hint")
17-
},
16+
hint: { text: hint } if hint,
1817
items: [{
1918
text: __("consent.consultation.yes"),
2019
value: true

0 commit comments

Comments
 (0)