|
|
|
|
@ -32,10 +32,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::LeadTenantUnderRetirementValueCheck.new("working_situation_lead_tenant_under_retirement_value_check", nil, self), |
|
|
|
|
Form::Lettings::Pages::LeadTenantOverRetirementValueCheck.new("working_situation_lead_tenant_over_retirement_value_check", nil, self), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 2), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 2) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 2), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_2_partner_under_16_value_check", nil, self, person_index: 2) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_2_multiple_partners_value_check", nil, self, person_index: 2) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 2), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 2) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 2), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
@ -52,10 +53,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::PersonUnderRetirementValueCheck.new("working_situation_2_under_retirement_value_check", nil, self, person_index: 2), |
|
|
|
|
Form::Lettings::Pages::PersonOverRetirementValueCheck.new("working_situation_2_over_retirement_value_check", nil, self, person_index: 2), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 3), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 3) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 3), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_3_partner_under_16_value_check", nil, self, person_index: 3) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_3_multiple_partners_value_check", nil, self, person_index: 3) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 3), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 3) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 3), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
@ -72,10 +74,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::PersonUnderRetirementValueCheck.new("working_situation_3_under_retirement_value_check", nil, self, person_index: 3), |
|
|
|
|
Form::Lettings::Pages::PersonOverRetirementValueCheck.new("working_situation_3_over_retirement_value_check", nil, self, person_index: 3), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 4), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 4) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 4), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_4_partner_under_16_value_check", nil, self, person_index: 4) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_4_multiple_partners_value_check", nil, self, person_index: 4) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 4), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 4) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 4), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
@ -92,10 +95,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::PersonUnderRetirementValueCheck.new("working_situation_4_under_retirement_value_check", nil, self, person_index: 4), |
|
|
|
|
Form::Lettings::Pages::PersonOverRetirementValueCheck.new("working_situation_4_over_retirement_value_check", nil, self, person_index: 4), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 5), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 5) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 5), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_5_partner_under_16_value_check", nil, self, person_index: 5) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_5_multiple_partners_value_check", nil, self, person_index: 5) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 5), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 5) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 5), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
@ -112,10 +116,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::PersonUnderRetirementValueCheck.new("working_situation_5_under_retirement_value_check", nil, self, person_index: 5), |
|
|
|
|
Form::Lettings::Pages::PersonOverRetirementValueCheck.new("working_situation_5_over_retirement_value_check", nil, self, person_index: 5), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 6), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 6) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 6), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_6_partner_under_16_value_check", nil, self, person_index: 6) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_6_multiple_partners_value_check", nil, self, person_index: 6) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 6), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 6) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 6), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
@ -132,10 +137,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::PersonUnderRetirementValueCheck.new("working_situation_6_under_retirement_value_check", nil, self, person_index: 6), |
|
|
|
|
Form::Lettings::Pages::PersonOverRetirementValueCheck.new("working_situation_6_over_retirement_value_check", nil, self, person_index: 6), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 7), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 7) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 7), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_7_partner_under_16_value_check", nil, self, person_index: 7) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_7_multiple_partners_value_check", nil, self, person_index: 7) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 7), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 7) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 7), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
@ -152,10 +158,11 @@ class Form::Lettings::Subsections::HouseholdCharacteristics < ::Form::Subsection
|
|
|
|
|
Form::Lettings::Pages::PersonUnderRetirementValueCheck.new("working_situation_7_under_retirement_value_check", nil, self, person_index: 7), |
|
|
|
|
Form::Lettings::Pages::PersonOverRetirementValueCheck.new("working_situation_7_over_retirement_value_check", nil, self, person_index: 7), |
|
|
|
|
Form::Lettings::Pages::PersonKnown.new(nil, nil, self, person_index: 8), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 8) if form.start_year_2026_or_later?), |
|
|
|
|
relationship_question(person_index: 8), |
|
|
|
|
(Form::Lettings::Pages::PartnerUnder16ValueCheck.new("relationship_8_partner_under_16_value_check", nil, self, person_index: 8) if form.start_year_2024_or_later?), |
|
|
|
|
(Form::Lettings::Pages::MultiplePartnersValueCheck.new("relationship_8_multiple_partners_value_check", nil, self, person_index: 8) if form.start_year_2024_or_later?), |
|
|
|
|
Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 8), |
|
|
|
|
(Form::Lettings::Pages::PersonAge.new(nil, nil, self, person_index: 8) unless form.start_year_2026_or_later?), |
|
|
|
|
Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
person_index: 8), |
|
|
|
|
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeValueCheck.new(nil, nil, self, |
|
|
|
|
|