Skip to content

Commit 50db33d

Browse files
committed
PPHA-483: Add hint text for Education options
1 parent 730d703 commit 50db33d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

lung_cancer_screening/questions/forms/education_form.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@ def __init__(self, *args, **kwargs):
2424
},
2525
)
2626

27+
# Add hints for each choice
28+
education_field = self["value"]
29+
education_field.add_hint_for_choice(
30+
EducationValues.GCSES,
31+
"Previously O-levels",
32+
)
33+
education_field.add_hint_for_choice(
34+
EducationValues.A_LEVELS,
35+
"Previously Higher School Certificate (HSC)",
36+
)
37+
education_field.add_hint_for_choice(
38+
EducationValues.BACHELORS_DEGREE,
39+
"A university degree, also known as an undergraduate degree",
40+
)
41+
education_field.add_hint_for_choice(
42+
EducationValues.POSTGRADUATE_DEGREE,
43+
"For example, a Masters or PhD",
44+
)
45+
2746
self["value"].add_divider_after(
2847
EducationValues.POSTGRADUATE_DEGREE.value, "or"
2948
)

0 commit comments

Comments
 (0)