1
- from wtforms import RadioField , SelectMultipleField
2
- from app .categories .widgets import CategoryRadioInput , CategoryCheckboxInput
1
+ from wtforms import SelectMultipleField
2
+ from app .categories .widgets import CategoryCheckboxInput
3
3
from app .categories .forms import QuestionForm
4
4
from wtforms .validators import InputRequired
5
5
@@ -21,7 +21,11 @@ class DiscriminationWhereForm(DiscriminationQuestionForm):
21
21
widget = CategoryCheckboxInput (
22
22
show_divider = True , hint_text = "You can select more than one."
23
23
),
24
- validators = [InputRequired (message = "Select where the discrimination happened" )],
24
+ validators = [
25
+ InputRequired (
26
+ message = "Select where the discrimination happened, or select ‘I’m not sure’"
27
+ )
28
+ ],
25
29
choices = [
26
30
("work" , "Work - including colleagues, employer or employment agency" ),
27
31
("school" , "School, college, university or other education setting" ),
@@ -43,38 +47,39 @@ class DiscriminationWhereForm(DiscriminationQuestionForm):
43
47
44
48
45
49
class DiscriminationWhyForm (DiscriminationQuestionForm ):
46
- title = "Why were you treated differently ?"
50
+ title = "Why were you discriminated against ?"
47
51
48
52
next_step_mapping = {
49
- "race" : "categories.results.in_scope" ,
50
- "sex" : "categories.results.in_scope" ,
51
- "disability" : "categories.results.in_scope" ,
52
- "religion" : "categories.results.in_scope" ,
53
- "age" : "categories.results.in_scope" ,
54
- "sexualorientation" : "categories.results.in_scope" ,
55
- "gender" : "categories.results.in_scope" ,
56
- "pregnancy" : "categories.results.in_scope" ,
57
- "none" : "categories.results.alternative_help" ,
53
+ "*" : "categories.results.in_scope" ,
54
+ "none" : "categories.results.refer" ,
58
55
}
59
56
60
- question = RadioField (
57
+ question = SelectMultipleField (
61
58
title ,
62
- widget = CategoryRadioInput (show_divider = True ),
63
- validators = [InputRequired (message = "Select why you were treated differently" )],
59
+ widget = CategoryCheckboxInput (
60
+ show_divider = True , hint_text = "You can select more than one."
61
+ ),
62
+ validators = [InputRequired (message = "Select why you were discriminated against" )],
64
63
choices = [
65
- ("race" , "Race, colour of skin , ethnicity" ),
64
+ ("race" , "Race, colour, ethnicity, nationality " ),
66
65
("sex" , "Sex (male or female)" ),
67
66
("disability" , "Disability, health condition, mental health condition" ),
68
67
("religion" , "Religion, belief, lack of religion" ),
69
68
("age" , "Age" ),
70
- ("sexualorientation" , "Sexual orientation - gay, bi, other sexuality" ),
71
- ("gender" , "Gender - trans, gender reassignment, other gender issue" ),
72
69
("pregnancy" , "Pregnancy or being a mother" ),
70
+ (
71
+ "sexualorientation" ,
72
+ "Sexual orientation - gay, bisexual, other sexuality" ,
73
+ ),
74
+ (
75
+ "gender" ,
76
+ "Gender reassignment, being transgender, non-binary or gender-fluid" ,
77
+ ),
73
78
(
74
79
"marriage" ,
75
- "Married status - being married, in a civil partnership, unmarried " ,
80
+ "Married status - being married, in a civil partnership" ,
76
81
),
77
82
("" , "" ),
78
- ("none" , "None of the above " ),
83
+ ("none" , "None of these " ),
79
84
],
80
85
)
0 commit comments