Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lung_cancer_screening/questions/forms/sex_at_birth_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ def __init__(self, *args, **kwargs):
choices=SexAtBirthValues.choices,
widget=forms.RadioSelect,
label="What was your sex at birth?",
label_classes="nhsuk-fieldset__legend--l",
label_is_page_heading=True,
hint=(
"Your sex may impact your chances of developing lung cancer."
),
label_classes="nhsuk-fieldset__legend--m",
error_messages={
'required': 'Select your sex at birth'
}
Expand Down
7 changes: 7 additions & 0 deletions lung_cancer_screening/questions/jinja2/sex_at_birth.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends 'question_form.jinja' %}

{% block prelude %}
<h1 class="nhsuk-heading-l">Your sex at birth</h1>

<p>Your sex may impact your chances of developing lung cancer. The question on the next page will ask about your gender identity.</p>
{% endblock prelude %}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class SexAtBirthValues(models.TextChoices):
FEMALE = "F", 'Female'
MALE = "M", 'Male'
INTERSEX = "I", 'Intersex'


class SexAtBirthResponse(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion lung_cancer_screening/questions/views/sex_at_birth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class SexAtBirthView(QuestionBaseView):
template_name = "question_form.jinja"
template_name = "sex_at_birth.jinja"
form_class = SexAtBirthForm
model = SexAtBirthResponse
success_url = reverse_lazy("questions:gender")
Expand Down