291 changed files with 3926 additions and 0 deletions
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::AccessNeedsExist < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "access_needs_exist" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Housingneeds.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::AllocationSystem < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "allocation_system" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::LettingAllocation.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::ArmedForces < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "armed_forces" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Armedforces.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::ArmedForcesInjured < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "armed_forces_injured" |
||||
@header = "" |
||||
@depends_on = [{ "armedforces" => 1 }, { "armedforces" => 4 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Reservist.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::ArmedForcesServing < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "armed_forces_serving" |
||||
@header = "" |
||||
@depends_on = [{ "armedforces" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Leftreg.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::BenefitsProportion < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "benefits_proportion" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Benefits.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::CareHome4Weekly < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "care_home_4_weekly" |
||||
@header = "" |
||||
@depends_on = [{ "period" => 3, "needstype" => 2, "household_charge" => 0 }, { "period" => 3, "needstype" => 2, "household_charge" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::IsCarehome.new(nil, nil, self), Form::Lettings::Questions::Chcharge.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::CareHomeBiWeekly < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "care_home_bi_weekly" |
||||
@header = "" |
||||
@depends_on = [{ "period" => 2, "needstype" => 2, "household_charge" => 0 }, { "period" => 2, "needstype" => 2, "household_charge" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::IsCarehome.new(nil, nil, self), Form::Lettings::Questions::Chcharge.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::CareHomeMonthly < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "care_home_monthly" |
||||
@header = "" |
||||
@depends_on = [{ "period" => 4, "needstype" => 2, "household_charge" => 0 }, { "period" => 4, "needstype" => 2, "household_charge" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::IsCarehome.new(nil, nil, self), Form::Lettings::Questions::Chcharge.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::CareHomeWeekly < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "care_home_weekly" |
||||
@header = "" |
||||
@depends_on = [{ "period" => 1, "needstype" => 2, "household_charge" => 0 }, { "period" => 1, "needstype" => 2, "household_charge" => nil }, { "period" => 5, "needstype" => 2, "household_charge" => 0 }, { "period" => 5, "needstype" => 2, "household_charge" => nil }, { "period" => 6, "needstype" => 2, "household_charge" => 0 }, { "period" => 6, "needstype" => 2, "household_charge" => nil }, { "period" => 7, "needstype" => 2, "household_charge" => 0 }, { "period" => 7, "needstype" => 2, "household_charge" => nil }, { "period" => 8, "needstype" => 2, "household_charge" => 0 }, { "period" => 8, "needstype" => 2, "household_charge" => nil }, { "period" => 9, "needstype" => 2, "household_charge" => 0 }, { "period" => 9, "needstype" => 2, "household_charge" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::IsCarehome.new(nil, nil, self), Form::Lettings::Questions::Chcharge.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::Declaration < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "declaration" |
||||
@header = "Department for Levelling Up, Housing & Communities privacy notice" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Declaration.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdLeadAgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_lead_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdLeadHhmembValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdLeadValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_lead_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson2AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_2_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age2_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson2ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_2_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_2" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson3AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_3_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age3_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson3ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_3_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_3" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson4AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_4_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age4_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson4ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_4_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_4" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson5AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_5_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age5_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson5ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_5_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_5" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson6AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_6_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age6_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson6ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_6_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_6" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson7AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_7_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age7_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson7ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_7_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_7" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson8AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_8_age_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "age8_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPerson8ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_person_8_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true, "details_known_8" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "females_in_soft_age_range_in_pregnant_household_value_check" |
||||
@depends_on = [{ "female_in_pregnant_household_in_soft_validation_range?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.females_not_in_soft_age_range", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "first_time_property_let_as_social_housing" |
||||
@header = "" |
||||
@depends_on = [{ "renewal" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::FirstTimePropertyLetAsSocialHousing.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::HealthConditionEffects < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "health_condition_effects" |
||||
@header = "" |
||||
@depends_on = [{ "illness" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::ConditionEffects.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::HealthConditions < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "health_conditions" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Illness.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::Homelessness < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "homelessness" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Homeless.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::HouseholdMembers < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "household_members" |
||||
@header = "" |
||||
@depends_on = [{ "declaration" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Hhmemb.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::HousingBenefit < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "housing_benefit" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Hb.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::IncomeAmount < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "income_amount" |
||||
@header = "Total household income" |
||||
@depends_on = [{ "net_income_known" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Earnings.new(nil, nil, self), Form::Lettings::Questions::Incfreq.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::IncomeKnown < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "income_known" |
||||
@header = "Household’s combined income after tax" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::NetIncomeKnown.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Lettings::Pages::Joint < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "joint" |
||||
@header = "" |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Joint.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantAge < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_age" |
||||
@header = "" |
||||
@depends_on = [{ "declaration" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Age1Known.new(nil, nil, self), Form::Lettings::Questions::Age1.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantEthnicBackgroundArab < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_ethnic_background_arab" |
||||
@header = "" |
||||
@depends_on = [{ "ethnic_group" => 4 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ethnic.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantEthnicBackgroundAsian < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_ethnic_background_asian" |
||||
@header = "" |
||||
@depends_on = [{ "ethnic_group" => 2 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ethnic.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantEthnicBackgroundBlack < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_ethnic_background_black" |
||||
@header = "" |
||||
@depends_on = [{ "ethnic_group" => 3 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ethnic.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantEthnicBackgroundMixed < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_ethnic_background_mixed" |
||||
@header = "" |
||||
@depends_on = [{ "ethnic_group" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ethnic.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantEthnicBackgroundWhite < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_ethnic_background_white" |
||||
@header = "" |
||||
@depends_on = [{ "ethnic_group" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ethnic.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantEthnicGroup < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_ethnic_group" |
||||
@header = "" |
||||
@depends_on = [{ "declaration" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::EthnicGroup.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantGenderIdentity < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_gender_identity" |
||||
@header = "" |
||||
@depends_on = [{ "declaration" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Sex1.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantNationality < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_nationality" |
||||
@header = "" |
||||
@depends_on = [{ "declaration" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::National.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantOverRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_over_retirement_value_check" |
||||
@depends_on = [{ "person_1_not_retired_over_soft_max_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.max.title", "arguments" => [{ "key" => "retirement_age_for_person_1", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.max.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_1", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_1", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantUnderRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_under_retirement_value_check" |
||||
@depends_on = [{ "person_1_retired_under_soft_min_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.min.title", "arguments" => [{ "key" => "retirement_age_for_person_1", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.min.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_1", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_1", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::LeadTenantWorkingSituation < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "lead_tenant_working_situation" |
||||
@header = "" |
||||
@depends_on = [{ "declaration" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ecstat1.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "max_rent_value_check" |
||||
@depends_on = [{ "rent_in_soft_max_range?" => true }] |
||||
@title_text = { "translation" => "soft_validations.rent.max.title_text", "arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }] } |
||||
@informative_text = { "translation" => "soft_validations.rent.max.hint_text", "arguments" => [{ "key" => "soft_max_for_period", "label" => false, "i18n_template" => "soft_max_for_period" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "min_rent_value_check" |
||||
@depends_on = [{ "rent_in_soft_min_range?" => true }] |
||||
@title_text = { "translation" => "soft_validations.rent.min.title_text", "arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }] } |
||||
@informative_text = { "translation" => "soft_validations.rent.min.hint_text", "arguments" => [{ "key" => "soft_min_for_period", "label" => false, "i18n_template" => "soft_min_for_period" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NetIncomeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "net_income_value_check" |
||||
@depends_on = [{ "net_income_soft_validation_triggered?" => true }] |
||||
@title_text = { "translation" => "soft_validations.net_income.title_text" } |
||||
@informative_text = { "translation" => "soft_validations.net_income.hint_text", "arguments" => [{ "key" => "ecstat1", "label" => true, "i18n_template" => "ecstat1" }, { "key" => "earnings", "label" => true, "i18n_template" => "earnings" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::NetIncomeValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NewBuildHandoverDate < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "new_build_handover_date" |
||||
@header = "" |
||||
@depends_on = [{ "renewal" => 0, "rsnvac" => 15 }, { "renewal" => 0, "rsnvac" => 16 }, { "renewal" => 0, "rsnvac" => 17 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Voiddate.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdLeadAgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_lead_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdLeadHhmembValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_lead_hhmemb_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdLeadValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_lead_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson2AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_2_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age2_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson2ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_2_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_2" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson3AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_3_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age3_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson3ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_3_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_3" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson4AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_4_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age4_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson4ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_4_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_4" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson5AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_5_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age5_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson5ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_5_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_5" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson6AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_6_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age6_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson6ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_6_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_6" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson7AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_7_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age7_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson7ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_7_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_7" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson8AgeValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_8_age_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "age8_known" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdPerson8ValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_person_8_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true, "details_known_8" => 0 }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::NoFemalesPregnantHouseholdValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "no_females_pregnant_household_value_check" |
||||
@depends_on = [{ "no_females_in_a_pregnant_household?" => true }] |
||||
@title_text = { "translation" => "soft_validations.pregnancy.title", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
@informative_text = { "translation" => "soft_validations.pregnancy.no_females", "arguments" => [{ "key" => "sex1", "label" => true, "i18n_template" => "sex1" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Outstanding < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "outstanding" |
||||
@header = "" |
||||
@depends_on = [{ "hb" => 1, "household_charge" => 0 }, { "hb" => 1, "household_charge" => nil }, { "hb" => 6, "household_charge" => 0 }, { "hb" => 6, "household_charge" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Hbrentshortfall.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::OutstandingAmount < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "outstanding_amount" |
||||
@header = "" |
||||
@depends_on = [{ "hb" => 1, "hbrentshortfall" => 1 }, { "hb" => 6, "hbrentshortfall" => 1 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::TshortfallKnown.new(nil, nil, self), Form::Lettings::Questions::Tshortfall.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2Age < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_age" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_2" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Age2Known.new(nil, nil, self), Form::Lettings::Questions::Age2.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2GenderIdentity < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_gender_identity" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_2" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Sex2.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2Known < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_known" |
||||
@header = "You’ve given us the details for 1 person in the household" |
||||
@depends_on = [{ "hhmemb" => 2 }, { "hhmemb" => 3 }, { "hhmemb" => 4 }, { "hhmemb" => 5 }, { "hhmemb" => 6 }, { "hhmemb" => 7 }, { "hhmemb" => 8 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::DetailsKnown2.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2OverRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_over_retirement_value_check" |
||||
@depends_on = [{ "person_2_not_retired_over_soft_max_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.max.title", "arguments" => [{ "key" => "retirement_age_for_person_2", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.max.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_2", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_2", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2RelationshipToLead < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_relationship_to_lead" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_2" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Relat2.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2UnderRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_under_retirement_value_check" |
||||
@depends_on = [{ "person_2_retired_under_soft_min_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.min.title", "arguments" => [{ "key" => "retirement_age_for_person_2", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.min.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_2", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_2", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person2WorkingSituation < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_2_working_situation" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_2" => 0, "age2" => { "operator" => ">", "operand" => 15 } }, { "details_known_2" => 0, "age2" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ecstat2.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3Age < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_age" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_3" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Age3Known.new(nil, nil, self), Form::Lettings::Questions::Age3.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3GenderIdentity < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_gender_identity" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_3" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Sex3.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3Known < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_known" |
||||
@header = "You’ve given us the details for 2 people in the household" |
||||
@depends_on = [{ "hhmemb" => 3 }, { "hhmemb" => 4 }, { "hhmemb" => 5 }, { "hhmemb" => 6 }, { "hhmemb" => 7 }, { "hhmemb" => 8 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::DetailsKnown3.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3OverRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_over_retirement_value_check" |
||||
@depends_on = [{ "person_3_not_retired_over_soft_max_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.max.title", "arguments" => [{ "key" => "retirement_age_for_person_3", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.max.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_3", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_3", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3RelationshipToLead < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_relationship_to_lead" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_3" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Relat3.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3UnderRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_under_retirement_value_check" |
||||
@depends_on = [{ "person_3_retired_under_soft_min_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.min.title", "arguments" => [{ "key" => "retirement_age_for_person_3", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.min.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_3", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_3", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person3WorkingSituation < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_3_working_situation" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_3" => 0, "age3" => { "operator" => ">", "operand" => 15 } }, { "details_known_3" => 0, "age3" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ecstat3.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4Age < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_age" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_4" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Age4Known.new(nil, nil, self), Form::Lettings::Questions::Age4.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4GenderIdentity < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_gender_identity" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_4" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Sex4.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4Known < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_known" |
||||
@header = "You’ve given us the details for 3 people in the household" |
||||
@depends_on = [{ "hhmemb" => 4 }, { "hhmemb" => 5 }, { "hhmemb" => 6 }, { "hhmemb" => 7 }, { "hhmemb" => 8 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::DetailsKnown4.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4OverRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_over_retirement_value_check" |
||||
@depends_on = [{ "person_4_not_retired_over_soft_max_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.max.title", "arguments" => [{ "key" => "retirement_age_for_person_4", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.max.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_4", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_4", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4RelationshipToLead < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_relationship_to_lead" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_4" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Relat4.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4UnderRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_under_retirement_value_check" |
||||
@depends_on = [{ "person_4_retired_under_soft_min_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.min.title", "arguments" => [{ "key" => "retirement_age_for_person_4", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.min.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_4", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_4", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person4WorkingSituation < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_4_working_situation" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_4" => 0, "age4" => { "operator" => ">", "operand" => 15 } }, { "details_known_4" => 0, "age4" => nil }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Ecstat4.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person5Age < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_5_age" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_5" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Age5Known.new(nil, nil, self), Form::Lettings::Questions::Age5.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person5GenderIdentity < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_5_gender_identity" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_5" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Sex5.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person5Known < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_5_known" |
||||
@header = "You’ve given us the details for 4 people in the household" |
||||
@depends_on = [{ "hhmemb" => 5 }, { "hhmemb" => 6 }, { "hhmemb" => 7 }, { "hhmemb" => 8 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::DetailsKnown5.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person5OverRetirementValueCheck < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_5_over_retirement_value_check" |
||||
@depends_on = [{ "person_5_not_retired_over_soft_max_age?" => true }] |
||||
@title_text = { "translation" => "soft_validations.retirement.max.title", "arguments" => [{ "key" => "retirement_age_for_person_5", "label" => false, "i18n_template" => "age" }] } |
||||
@informative_text = { "translation" => "soft_validations.retirement.max.hint_text", "arguments" => [{ "key" => "plural_gender_for_person_5", "label" => false, "i18n_template" => "gender" }, { "key" => "retirement_age_for_person_5", "label" => false, "i18n_template" => "age" }] } |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] |
||||
end |
||||
end |
||||
@ -0,0 +1,13 @@
|
||||
class Form::Lettings::Pages::Person5RelationshipToLead < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "person_5_relationship_to_lead" |
||||
@header = "" |
||||
@depends_on = [{ "details_known_5" => 0 }] |
||||
@description = "" |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [Form::Lettings::Questions::Relat5.new(nil, nil, self)] |
||||
end |
||||
end |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue