Skip to content

Commit 3921d47

Browse files
committed
PPHA-472: Update sex at birth content and new intersex option
1 parent 8c6748f commit 3921d47

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

lung_cancer_screening/questions/forms/sex_at_birth_form.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ def __init__(self, *args, **kwargs):
1313
choices=SexAtBirthValues.choices,
1414
widget=forms.RadioSelect,
1515
label="What was your sex at birth?",
16-
label_classes="nhsuk-fieldset__legend--l",
17-
label_is_page_heading=True,
18-
hint=(
19-
"Your sex may impact your chances of developing lung cancer."
20-
),
16+
label_classes="nhsuk-fieldset__legend--m",
2117
error_messages={
2218
'required': 'Select your sex at birth'
2319
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends 'question_form.jinja' %}
2+
3+
{% block prelude %}
4+
<h1 class="nhsuk-heading-l">Your sex at birth</h1>
5+
6+
<p>Your sex may impact your chances of developing lung cancer. The question on the next page will ask about your gender identity.</p>
7+
{% endblock prelude %}

lung_cancer_screening/questions/models/sex_at_birth_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class SexAtBirthValues(models.TextChoices):
88
FEMALE = "F", 'Female'
99
MALE = "M", 'Male'
10+
INTERSEX = "I", 'Intersex'
1011

1112

1213
class SexAtBirthResponse(BaseModel):

lung_cancer_screening/questions/views/sex_at_birth.py

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

77

88
class SexAtBirthView(QuestionBaseView):
9-
template_name = "question_form.jinja"
9+
template_name = "sex_at_birth.jinja"
1010
form_class = SexAtBirthForm
1111
model = SexAtBirthResponse
1212
success_url = reverse_lazy("questions:gender")

0 commit comments

Comments
 (0)