|
|
|
@ -5,12 +5,6 @@ class Form::Sales::Questions::PersonGenderIdentity < ::Form::Question |
|
|
|
@copy_key = "sales.household_characteristics.sex2.person" if person_index == 2 |
|
|
|
@copy_key = "sales.household_characteristics.sex2.person" if person_index == 2 |
|
|
|
@answer_options = ANSWER_OPTIONS |
|
|
|
@answer_options = ANSWER_OPTIONS |
|
|
|
@check_answers_card_number = person_index |
|
|
|
@check_answers_card_number = person_index |
|
|
|
@inferred_check_answers_value = [{ |
|
|
|
|
|
|
|
"condition" => { |
|
|
|
|
|
|
|
id => "R", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"value" => "Prefers not to say", |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
@person_index = person_index |
|
|
|
@person_index = person_index |
|
|
|
@question_number = get_person_question_number(BASE_QUESTION_NUMBERS) |
|
|
|
@question_number = get_person_question_number(BASE_QUESTION_NUMBERS) |
|
|
|
end |
|
|
|
end |
|
|
|
@ -23,4 +17,12 @@ class Form::Sales::Questions::PersonGenderIdentity < ::Form::Question |
|
|
|
}.freeze |
|
|
|
}.freeze |
|
|
|
|
|
|
|
|
|
|
|
BASE_QUESTION_NUMBERS = { 2023 => 30, 2024 => 32, 2025 => 30 }.freeze |
|
|
|
BASE_QUESTION_NUMBERS = { 2023 => 30, 2024 => 32, 2025 => 30 }.freeze |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def label_from_value(value, _log = nil, _user = nil) |
|
|
|
|
|
|
|
return unless value |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return "Prefers not to say" if value == "R" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
super |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|