Skip to content

Commit 80b8d2e

Browse files
authored
Merge pull request #238 from NHSDigital/PPHA-476-update-ethnic-background-content
PPHA-472: Update ethnicity content
2 parents c96d199 + 7f68124 commit 80b8d2e

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

lung_cancer_screening/questions/forms/ethnicity_form.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ def __init__(self, *args, **kwargs):
1313
choices=EthnicityValues.choices,
1414
label="What is your ethnic background?",
1515
widget=forms.RadioSelect,
16-
label_classes="nhsuk-fieldset__legend--l",
17-
label_is_page_heading=True,
18-
hint=(
19-
"Your ethnicity may impact your chances of "
20-
"developing lung cancer."
21-
),
16+
label_classes="nhsuk-fieldset__legend--m",
2217
error_messages={
2318
'required': 'Select your ethnic background'
2419
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends 'question_form.jinja' %}
2+
3+
{% block prelude %}
4+
5+
<h1 class="nhsuk-heading-l">Help us give you an accurate result by telling us your ethnic background</h1>
6+
7+
<p>Your ethnicity may impact your chances of developing lung cancer.</p>
8+
9+
<p>You do not have to tell us your ethnic background but this may affect the accuracy of your result.</p>
10+
11+
{% endblock prelude %}

lung_cancer_screening/questions/models/ethnicity_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EthnicityValues(models.TextChoices):
1010
MIXED = "M", "Mixed or multiple ethnic groups"
1111
WHITE = "W", "White"
1212
OTHER = "O", "Other ethnic group"
13-
PREFER_NOT_TO_SAY = "N", "I'd prefer not to say"
13+
PREFER_NOT_TO_SAY = "N", "Prefer not to say"
1414

1515

1616
class EthnicityResponse(BaseModel):

lung_cancer_screening/questions/views/ethnicity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class EthnicityView(QuestionBaseView):
9-
template_name = "question_form.jinja"
9+
template_name = "ethnicity.jinja"
1010
form_class = EthnicityForm
1111
model = EthnicityResponse
1212
success_url = reverse_lazy("questions:education")

0 commit comments

Comments
 (0)