Browse Source

Remove empty headers, descriptions and initializers from pages

pull/1254/head
Kat 4 years ago
parent
commit
41f212b22d
  1. 7
      app/models/form/lettings/pages/access_needs_exist.rb
  2. 7
      app/models/form/lettings/pages/allocation_system.rb
  3. 7
      app/models/form/lettings/pages/armed_forces.rb
  4. 2
      app/models/form/lettings/pages/armed_forces_injured.rb
  5. 2
      app/models/form/lettings/pages/armed_forces_serving.rb
  6. 7
      app/models/form/lettings/pages/benefits_proportion.rb
  7. 2
      app/models/form/lettings/pages/care_home_4_weekly.rb
  8. 2
      app/models/form/lettings/pages/care_home_bi_weekly.rb
  9. 2
      app/models/form/lettings/pages/care_home_monthly.rb
  10. 2
      app/models/form/lettings/pages/care_home_weekly.rb
  11. 1
      app/models/form/lettings/pages/declaration.rb
  12. 2
      app/models/form/lettings/pages/first_time_property_let_as_social_housing.rb
  13. 2
      app/models/form/lettings/pages/health_condition_effects.rb
  14. 7
      app/models/form/lettings/pages/health_conditions.rb
  15. 7
      app/models/form/lettings/pages/homelessness.rb
  16. 2
      app/models/form/lettings/pages/household_members.rb
  17. 7
      app/models/form/lettings/pages/housing_benefit.rb
  18. 1
      app/models/form/lettings/pages/income_amount.rb
  19. 1
      app/models/form/lettings/pages/income_known.rb
  20. 7
      app/models/form/lettings/pages/joint.rb
  21. 2
      app/models/form/lettings/pages/lead_tenant_age.rb
  22. 2
      app/models/form/lettings/pages/lead_tenant_ethnic_background_arab.rb
  23. 2
      app/models/form/lettings/pages/lead_tenant_ethnic_background_asian.rb
  24. 2
      app/models/form/lettings/pages/lead_tenant_ethnic_background_black.rb
  25. 2
      app/models/form/lettings/pages/lead_tenant_ethnic_background_mixed.rb
  26. 2
      app/models/form/lettings/pages/lead_tenant_ethnic_background_white.rb
  27. 2
      app/models/form/lettings/pages/lead_tenant_ethnic_group.rb
  28. 2
      app/models/form/lettings/pages/lead_tenant_gender_identity.rb
  29. 2
      app/models/form/lettings/pages/lead_tenant_nationality.rb
  30. 2
      app/models/form/lettings/pages/lead_tenant_working_situation.rb
  31. 2
      app/models/form/lettings/pages/new_build_handover_date.rb
  32. 2
      app/models/form/lettings/pages/outstanding.rb
  33. 2
      app/models/form/lettings/pages/outstanding_amount.rb
  34. 2
      app/models/form/lettings/pages/person_age.rb
  35. 2
      app/models/form/lettings/pages/person_gender_identity.rb
  36. 1
      app/models/form/lettings/pages/person_known.rb
  37. 2
      app/models/form/lettings/pages/person_relationship_to_lead.rb
  38. 2
      app/models/form/lettings/pages/person_working_situation.rb
  39. 7
      app/models/form/lettings/pages/pregnant.rb
  40. 2
      app/models/form/lettings/pages/previous_housing_situation.rb
  41. 2
      app/models/form/lettings/pages/previous_housing_situation_renewal.rb
  42. 2
      app/models/form/lettings/pages/previous_local_authority.rb
  43. 7
      app/models/form/lettings/pages/previous_postcode.rb
  44. 2
      app/models/form/lettings/pages/property_building_type.rb
  45. 2
      app/models/form/lettings/pages/property_let_type.rb
  46. 2
      app/models/form/lettings/pages/property_local_authority.rb
  47. 2
      app/models/form/lettings/pages/property_major_repairs.rb
  48. 2
      app/models/form/lettings/pages/property_number_of_bedrooms.rb
  49. 2
      app/models/form/lettings/pages/property_number_of_times_relet_not_social_let.rb
  50. 2
      app/models/form/lettings/pages/property_number_of_times_relet_social_let.rb
  51. 2
      app/models/form/lettings/pages/property_postcode.rb
  52. 2
      app/models/form/lettings/pages/property_unit_type.rb
  53. 2
      app/models/form/lettings/pages/property_vacancy_reason_first_let.rb
  54. 2
      app/models/form/lettings/pages/property_vacancy_reason_not_first_let.rb
  55. 2
      app/models/form/lettings/pages/property_wheelchair_accessible.rb
  56. 2
      app/models/form/lettings/pages/reason_for_leaving_last_settled_home.rb
  57. 2
      app/models/form/lettings/pages/reason_for_leaving_last_settled_home_renewal.rb
  58. 7
      app/models/form/lettings/pages/reasonable_preference.rb
  59. 2
      app/models/form/lettings/pages/reasonable_preference_reason.rb
  60. 2
      app/models/form/lettings/pages/referral.rb
  61. 2
      app/models/form/lettings/pages/referral_prp.rb
  62. 2
      app/models/form/lettings/pages/referral_supported_housing.rb
  63. 2
      app/models/form/lettings/pages/referral_supported_housing_prp.rb
  64. 1
      app/models/form/lettings/pages/rent_4_weekly.rb
  65. 1
      app/models/form/lettings/pages/rent_bi_weekly.rb
  66. 1
      app/models/form/lettings/pages/rent_monthly.rb
  67. 2
      app/models/form/lettings/pages/rent_or_other_charges.rb
  68. 2
      app/models/form/lettings/pages/rent_period.rb
  69. 1
      app/models/form/lettings/pages/rent_weekly.rb
  70. 2
      app/models/form/lettings/pages/shelteredaccom.rb
  71. 7
      app/models/form/lettings/pages/starter_tenancy.rb
  72. 2
      app/models/form/lettings/pages/starter_tenancy_type.rb
  73. 2
      app/models/form/lettings/pages/tenancy_length.rb
  74. 2
      app/models/form/lettings/pages/tenancy_type.rb
  75. 7
      app/models/form/lettings/pages/time_lived_in_local_authority.rb
  76. 2
      app/models/form/lettings/pages/time_on_waiting_list.rb
  77. 1
      app/models/form/lettings/pages/type_of_access_needs.rb
  78. 2
      app/models/form/lettings/pages/void_or_renewal_date.rb
  79. 8
      app/models/form/lettings/subsections/household_needs.rb
  80. 10
      app/models/form/lettings/subsections/household_situation.rb
  81. 4
      app/models/form/lettings/subsections/income_and_benefits.rb
  82. 4
      app/models/form/lettings/subsections/tenancy_information.rb

7
app/models/form/lettings/pages/access_needs_exist.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::AccessNeedsExist < ::Form::Page class Form::Lettings::Pages::AccessNeedsExist < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "access_needs_exist"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Housingneeds.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Housingneeds.new(nil, nil, self)]
end end

7
app/models/form/lettings/pages/allocation_system.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::AllocationSystem < ::Form::Page class Form::Lettings::Pages::AllocationSystem < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "allocation_system"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::LettingAllocation.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::LettingAllocation.new(nil, nil, self)]
end end

7
app/models/form/lettings/pages/armed_forces.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::ArmedForces < ::Form::Page class Form::Lettings::Pages::ArmedForces < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "armed_forces"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Armedforces.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Armedforces.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/armed_forces_injured.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ArmedForcesInjured < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "armed_forces_injured" @id = "armed_forces_injured"
@header = ""
@depends_on = [{ "armedforces" => 1 }, { "armedforces" => 4 }] @depends_on = [{ "armedforces" => 1 }, { "armedforces" => 4 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/armed_forces_serving.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ArmedForcesServing < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "armed_forces_serving" @id = "armed_forces_serving"
@header = ""
@depends_on = [{ "armedforces" => 1 }] @depends_on = [{ "armedforces" => 1 }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/benefits_proportion.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::BenefitsProportion < ::Form::Page class Form::Lettings::Pages::BenefitsProportion < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "benefits_proportion"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Benefits.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Benefits.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/care_home_4_weekly.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::CareHome4Weekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "care_home_4_weekly" @id = "care_home_4_weekly"
@header = ""
@depends_on = [{ "period" => 3, "needstype" => 2, "household_charge" => 0 }, { "period" => 3, "needstype" => 2, "household_charge" => nil }] @depends_on = [{ "period" => 3, "needstype" => 2, "household_charge" => 0 }, { "period" => 3, "needstype" => 2, "household_charge" => nil }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/care_home_bi_weekly.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::CareHomeBiWeekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "care_home_bi_weekly" @id = "care_home_bi_weekly"
@header = ""
@depends_on = [{ "period" => 2, "needstype" => 2, "household_charge" => 0 }, { "period" => 2, "needstype" => 2, "household_charge" => nil }] @depends_on = [{ "period" => 2, "needstype" => 2, "household_charge" => 0 }, { "period" => 2, "needstype" => 2, "household_charge" => nil }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/care_home_monthly.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::CareHomeMonthly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "care_home_monthly" @id = "care_home_monthly"
@header = ""
@depends_on = [{ "period" => 4, "needstype" => 2, "household_charge" => 0 }, { "period" => 4, "needstype" => 2, "household_charge" => nil }] @depends_on = [{ "period" => 4, "needstype" => 2, "household_charge" => 0 }, { "period" => 4, "needstype" => 2, "household_charge" => nil }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/care_home_weekly.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::CareHomeWeekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "care_home_weekly" @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 }] @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 end
def questions def questions

1
app/models/form/lettings/pages/declaration.rb

@ -3,7 +3,6 @@ class Form::Lettings::Pages::Declaration < ::Form::Page
super super
@id = "declaration" @id = "declaration"
@header = "Department for Levelling Up, Housing & Communities privacy notice" @header = "Department for Levelling Up, Housing & Communities privacy notice"
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/first_time_property_let_as_social_housing.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "first_time_property_let_as_social_housing" @id = "first_time_property_let_as_social_housing"
@header = ""
@depends_on = [{ "renewal" => 0 }] @depends_on = [{ "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/health_condition_effects.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::HealthConditionEffects < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "health_condition_effects" @id = "health_condition_effects"
@header = ""
@depends_on = [{ "illness" => 1 }] @depends_on = [{ "illness" => 1 }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/health_conditions.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::HealthConditions < ::Form::Page class Form::Lettings::Pages::HealthConditions < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "health_conditions"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Illness.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Illness.new(nil, nil, self)]
end end

7
app/models/form/lettings/pages/homelessness.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::Homelessness < ::Form::Page class Form::Lettings::Pages::Homelessness < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "homelessness"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Homeless.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Homeless.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/household_members.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::HouseholdMembers < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "household_members" @id = "household_members"
@header = ""
@depends_on = [{ "declaration" => 1 }] @depends_on = [{ "declaration" => 1 }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/housing_benefit.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::HousingBenefit < ::Form::Page class Form::Lettings::Pages::HousingBenefit < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "housing_benefit"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Hb.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Hb.new(nil, nil, self)]
end end

1
app/models/form/lettings/pages/income_amount.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::IncomeAmount < ::Form::Page
@id = "income_amount" @id = "income_amount"
@header = "Total household income" @header = "Total household income"
@depends_on = [{ "net_income_known" => 0 }] @depends_on = [{ "net_income_known" => 0 }]
@description = ""
end end
def questions def questions

1
app/models/form/lettings/pages/income_known.rb

@ -3,7 +3,6 @@ class Form::Lettings::Pages::IncomeKnown < ::Form::Page
super super
@id = "income_known" @id = "income_known"
@header = "Household’s combined income after tax" @header = "Household’s combined income after tax"
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/joint.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::Joint < ::Form::Page class Form::Lettings::Pages::Joint < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "joint"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Joint.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Joint.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/lead_tenant_age.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantAge < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_age" @id = "lead_tenant_age"
@header = ""
@depends_on = [{ "declaration" => 1 }] @depends_on = [{ "declaration" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_ethnic_background_arab.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantEthnicBackgroundArab < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_ethnic_background_arab" @id = "lead_tenant_ethnic_background_arab"
@header = ""
@depends_on = [{ "ethnic_group" => 4 }] @depends_on = [{ "ethnic_group" => 4 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_ethnic_background_asian.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantEthnicBackgroundAsian < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_ethnic_background_asian" @id = "lead_tenant_ethnic_background_asian"
@header = ""
@depends_on = [{ "ethnic_group" => 2 }] @depends_on = [{ "ethnic_group" => 2 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_ethnic_background_black.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantEthnicBackgroundBlack < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_ethnic_background_black" @id = "lead_tenant_ethnic_background_black"
@header = ""
@depends_on = [{ "ethnic_group" => 3 }] @depends_on = [{ "ethnic_group" => 3 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_ethnic_background_mixed.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantEthnicBackgroundMixed < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_ethnic_background_mixed" @id = "lead_tenant_ethnic_background_mixed"
@header = ""
@depends_on = [{ "ethnic_group" => 1 }] @depends_on = [{ "ethnic_group" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_ethnic_background_white.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantEthnicBackgroundWhite < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_ethnic_background_white" @id = "lead_tenant_ethnic_background_white"
@header = ""
@depends_on = [{ "ethnic_group" => 0 }] @depends_on = [{ "ethnic_group" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_ethnic_group.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantEthnicGroup < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_ethnic_group" @id = "lead_tenant_ethnic_group"
@header = ""
@depends_on = [{ "declaration" => 1 }] @depends_on = [{ "declaration" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_gender_identity.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantGenderIdentity < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_gender_identity" @id = "lead_tenant_gender_identity"
@header = ""
@depends_on = [{ "declaration" => 1 }] @depends_on = [{ "declaration" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_nationality.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantNationality < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_nationality" @id = "lead_tenant_nationality"
@header = ""
@depends_on = [{ "declaration" => 1 }] @depends_on = [{ "declaration" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/lead_tenant_working_situation.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::LeadTenantWorkingSituation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "lead_tenant_working_situation" @id = "lead_tenant_working_situation"
@header = ""
@depends_on = [{ "declaration" => 1 }] @depends_on = [{ "declaration" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/new_build_handover_date.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::NewBuildHandoverDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "new_build_handover_date" @id = "new_build_handover_date"
@header = ""
@depends_on = [{ "renewal" => 0, "rsnvac" => 15 }, { "renewal" => 0, "rsnvac" => 16 }, { "renewal" => 0, "rsnvac" => 17 }] @depends_on = [{ "renewal" => 0, "rsnvac" => 15 }, { "renewal" => 0, "rsnvac" => 16 }, { "renewal" => 0, "rsnvac" => 17 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/outstanding.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::Outstanding < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "outstanding" @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 }] @depends_on = [{ "hb" => 1, "household_charge" => 0 }, { "hb" => 1, "household_charge" => nil }, { "hb" => 6, "household_charge" => 0 }, { "hb" => 6, "household_charge" => nil }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/outstanding_amount.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::OutstandingAmount < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "outstanding_amount" @id = "outstanding_amount"
@header = ""
@depends_on = [{ "hb" => 1, "hbrentshortfall" => 1 }, { "hb" => 6, "hbrentshortfall" => 1 }] @depends_on = [{ "hb" => 1, "hbrentshortfall" => 1 }, { "hb" => 6, "hbrentshortfall" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/person_age.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PersonAge < ::Form::Page
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super(id, hsh, subsection) super(id, hsh, subsection)
@id = "person_#{person_index}_age" @id = "person_#{person_index}_age"
@header = ""
@depends_on = [{ "details_known_#{person_index}" => 0 }] @depends_on = [{ "details_known_#{person_index}" => 0 }]
@description = ""
@person_index = person_index @person_index = person_index
end end

2
app/models/form/lettings/pages/person_gender_identity.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PersonGenderIdentity < ::Form::Page
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super(id, hsh, subsection) super(id, hsh, subsection)
@id = "person_#{person_index}_gender_identity" @id = "person_#{person_index}_gender_identity"
@header = ""
@depends_on = [{ "details_known_#{person_index}" => 0 }] @depends_on = [{ "details_known_#{person_index}" => 0 }]
@description = ""
@person_index = person_index @person_index = person_index
end end

1
app/models/form/lettings/pages/person_known.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::PersonKnown < ::Form::Page
@id = "person_#{person_index}_known" @id = "person_#{person_index}_known"
@header = "You’ve given us the details for #{person_index - 1} person in the household" @header = "You’ve given us the details for #{person_index - 1} person in the household"
@depends_on = (person_index..8).map { |index| { "hhmemb" => index } } @depends_on = (person_index..8).map { |index| { "hhmemb" => index } }
@description = ""
@person_index = person_index @person_index = person_index
end end

2
app/models/form/lettings/pages/person_relationship_to_lead.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PersonRelationshipToLead < ::Form::Page
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super(id, hsh, subsection) super(id, hsh, subsection)
@id = "person_#{person_index}_relationship_to_lead" @id = "person_#{person_index}_relationship_to_lead"
@header = ""
@depends_on = [{ "details_known_#{person_index}" => 0 }] @depends_on = [{ "details_known_#{person_index}" => 0 }]
@description = ""
@person_index = person_index @person_index = person_index
end end

2
app/models/form/lettings/pages/person_working_situation.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PersonWorkingSituation < ::Form::Page
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super(id, hsh, subsection) super(id, hsh, subsection)
@id = "person_#{person_index}_working_situation" @id = "person_#{person_index}_working_situation"
@header = ""
@depends_on = [{ "details_known_#{person_index}" => 0, "age#{person_index}" => { "operator" => ">", "operand" => 15 } }, { "details_known_#{person_index}" => 0, "age#{person_index}" => nil }] @depends_on = [{ "details_known_#{person_index}" => 0, "age#{person_index}" => { "operator" => ">", "operand" => 15 } }, { "details_known_#{person_index}" => 0, "age#{person_index}" => nil }]
@description = ""
@person_index = person_index @person_index = person_index
end end

7
app/models/form/lettings/pages/pregnant.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::Pregnant < ::Form::Page class Form::Lettings::Pages::Pregnant < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "pregnant"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::PregOcc.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregOcc.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/previous_housing_situation.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PreviousHousingSituation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "previous_housing_situation" @id = "previous_housing_situation"
@header = ""
@depends_on = [{ "renewal" => 0 }] @depends_on = [{ "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/previous_housing_situation_renewal.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PreviousHousingSituationRenewal < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "previous_housing_situation_renewal" @id = "previous_housing_situation_renewal"
@header = ""
@depends_on = [{ "renewal" => 1, "needstype" => 2 }] @depends_on = [{ "renewal" => 1, "needstype" => 2 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/previous_local_authority.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PreviousLocalAuthority < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "previous_local_authority" @id = "previous_local_authority"
@header = ""
@depends_on = [{ "is_previous_la_inferred" => false }] @depends_on = [{ "is_previous_la_inferred" => false }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/previous_postcode.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::PreviousPostcode < ::Form::Page class Form::Lettings::Pages::PreviousPostcode < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "previous_postcode"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Ppcodenk.new(nil, nil, self), Form::Lettings::Questions::PpostcodeFull.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Ppcodenk.new(nil, nil, self), Form::Lettings::Questions::PpostcodeFull.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/property_building_type.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyBuildingType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_building_type" @id = "property_building_type"
@header = ""
@depends_on = [{ "needstype" => 1 }] @depends_on = [{ "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_let_type.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyLetType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_let_type" @id = "property_let_type"
@header = ""
@depends_on = [{ "first_time_property_let_as_social_housing" => 0, "renewal" => 0, "needstype" => 1 }] @depends_on = [{ "first_time_property_let_as_social_housing" => 0, "renewal" => 0, "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_local_authority.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyLocalAuthority < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_local_authority" @id = "property_local_authority"
@header = ""
@depends_on = [{ "is_la_inferred" => false, "needstype" => 1 }] @depends_on = [{ "is_la_inferred" => false, "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_major_repairs.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyMajorRepairs < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_major_repairs" @id = "property_major_repairs"
@header = ""
@depends_on = [{ "renewal" => 0, "rsnvac" => 5 }, { "renewal" => 0, "rsnvac" => 6 }, { "renewal" => 0, "rsnvac" => 8 }, { "renewal" => 0, "rsnvac" => 9 }, { "renewal" => 0, "rsnvac" => 10 }, { "renewal" => 0, "rsnvac" => 11 }, { "renewal" => 0, "rsnvac" => 12 }, { "renewal" => 0, "rsnvac" => 13 }, { "renewal" => 0, "rsnvac" => 18 }, { "renewal" => 0, "rsnvac" => 19 }] @depends_on = [{ "renewal" => 0, "rsnvac" => 5 }, { "renewal" => 0, "rsnvac" => 6 }, { "renewal" => 0, "rsnvac" => 8 }, { "renewal" => 0, "rsnvac" => 9 }, { "renewal" => 0, "rsnvac" => 10 }, { "renewal" => 0, "rsnvac" => 11 }, { "renewal" => 0, "rsnvac" => 12 }, { "renewal" => 0, "rsnvac" => 13 }, { "renewal" => 0, "rsnvac" => 18 }, { "renewal" => 0, "rsnvac" => 19 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_number_of_bedrooms.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyNumberOfBedrooms < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_number_of_bedrooms" @id = "property_number_of_bedrooms"
@header = ""
@depends_on = [{ "needstype" => 1 }] @depends_on = [{ "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_number_of_times_relet_not_social_let.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyNumberOfTimesReletNotSocialLet < ::Form::Pa
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_number_of_times_relet_not_social_let" @id = "property_number_of_times_relet_not_social_let"
@header = ""
@depends_on = [{ "first_time_property_let_as_social_housing" => 0, "renewal" => 0 }] @depends_on = [{ "first_time_property_let_as_social_housing" => 0, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_number_of_times_relet_social_let.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyNumberOfTimesReletSocialLet < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_number_of_times_relet_social_let" @id = "property_number_of_times_relet_social_let"
@header = ""
@depends_on = [{ "first_time_property_let_as_social_housing" => 1, "renewal" => 0 }] @depends_on = [{ "first_time_property_let_as_social_housing" => 1, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_postcode.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyPostcode < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_postcode" @id = "property_postcode"
@header = ""
@depends_on = [{ "needstype" => 1 }] @depends_on = [{ "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_unit_type.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyUnitType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_unit_type" @id = "property_unit_type"
@header = ""
@depends_on = [{ "needstype" => 1 }] @depends_on = [{ "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_vacancy_reason_first_let.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyVacancyReasonFirstLet < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_vacancy_reason_first_let" @id = "property_vacancy_reason_first_let"
@header = ""
@depends_on = [{ "first_time_property_let_as_social_housing" => 1, "renewal" => 0 }] @depends_on = [{ "first_time_property_let_as_social_housing" => 1, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_vacancy_reason_not_first_let.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyVacancyReasonNotFirstLet < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_vacancy_reason_not_first_let" @id = "property_vacancy_reason_not_first_let"
@header = ""
@depends_on = [{ "first_time_property_let_as_social_housing" => 0, "renewal" => 0 }] @depends_on = [{ "first_time_property_let_as_social_housing" => 0, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/property_wheelchair_accessible.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::PropertyWheelchairAccessible < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_wheelchair_accessible" @id = "property_wheelchair_accessible"
@header = ""
@depends_on = [{ "needstype" => 1 }] @depends_on = [{ "needstype" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/reason_for_leaving_last_settled_home.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ReasonForLeavingLastSettledHome < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "reason_for_leaving_last_settled_home" @id = "reason_for_leaving_last_settled_home"
@header = ""
@depends_on = [{ "renewal" => 0 }] @depends_on = [{ "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/reason_for_leaving_last_settled_home_renewal.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ReasonForLeavingLastSettledHomeRenewal < ::Form::Pa
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "reason_for_leaving_last_settled_home_renewal" @id = "reason_for_leaving_last_settled_home_renewal"
@header = ""
@depends_on = [{ "renewal" => 1 }] @depends_on = [{ "renewal" => 1 }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/reasonable_preference.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::ReasonablePreference < ::Form::Page class Form::Lettings::Pages::ReasonablePreference < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "reasonable_preference"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Reasonpref.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Reasonpref.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/reasonable_preference_reason.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ReasonablePreferenceReason < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "reasonable_preference_reason" @id = "reasonable_preference_reason"
@header = ""
@depends_on = [{ "reasonpref" => 1 }] @depends_on = [{ "reasonpref" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/referral.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::Referral < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "referral" @id = "referral"
@header = ""
@depends_on = [{ "managing_organisation_provider_type" => "LA", "needstype" => 1, "renewal" => 0 }] @depends_on = [{ "managing_organisation_provider_type" => "LA", "needstype" => 1, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/referral_prp.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ReferralPrp < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "referral_prp" @id = "referral_prp"
@header = ""
@depends_on = [{ "managing_organisation_provider_type" => "PRP", "needstype" => 1, "renewal" => 0 }] @depends_on = [{ "managing_organisation_provider_type" => "PRP", "needstype" => 1, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/referral_supported_housing.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ReferralSupportedHousing < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "referral_supported_housing" @id = "referral_supported_housing"
@header = ""
@depends_on = [{ "managing_organisation_provider_type" => "LA", "needstype" => 2, "renewal" => 0 }] @depends_on = [{ "managing_organisation_provider_type" => "LA", "needstype" => 2, "renewal" => 0 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/referral_supported_housing_prp.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::ReferralSupportedHousingPrp < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "referral_supported_housing_prp" @id = "referral_supported_housing_prp"
@header = ""
@depends_on = [{ "managing_organisation_provider_type" => "PRP", "needstype" => 2, "renewal" => 0 }] @depends_on = [{ "managing_organisation_provider_type" => "PRP", "needstype" => 2, "renewal" => 0 }]
@description = ""
end end
def questions def questions

1
app/models/form/lettings/pages/rent_4_weekly.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::Rent4Weekly < ::Form::Page
@id = "rent_4_weekly" @id = "rent_4_weekly"
@header = "Household rent and charges" @header = "Household rent and charges"
@depends_on = [{ "household_charge" => 0, "period" => 3, "is_carehome" => 0 }, { "household_charge" => nil, "period" => 3, "is_carehome" => 0 }, { "household_charge" => 0, "period" => 3, "is_carehome" => nil }, { "household_charge" => nil, "period" => 3, "is_carehome" => nil }] @depends_on = [{ "household_charge" => 0, "period" => 3, "is_carehome" => 0 }, { "household_charge" => nil, "period" => 3, "is_carehome" => 0 }, { "household_charge" => 0, "period" => 3, "is_carehome" => nil }, { "household_charge" => nil, "period" => 3, "is_carehome" => nil }]
@description = ""
end end
def questions def questions

1
app/models/form/lettings/pages/rent_bi_weekly.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::RentBiWeekly < ::Form::Page
@id = "rent_bi_weekly" @id = "rent_bi_weekly"
@header = "Household rent and charges" @header = "Household rent and charges"
@depends_on = [{ "household_charge" => 0, "period" => 2, "is_carehome" => 0 }, { "household_charge" => nil, "period" => 2, "is_carehome" => 0 }, { "household_charge" => 0, "period" => 2, "is_carehome" => nil }, { "household_charge" => nil, "period" => 2, "is_carehome" => nil }] @depends_on = [{ "household_charge" => 0, "period" => 2, "is_carehome" => 0 }, { "household_charge" => nil, "period" => 2, "is_carehome" => 0 }, { "household_charge" => 0, "period" => 2, "is_carehome" => nil }, { "household_charge" => nil, "period" => 2, "is_carehome" => nil }]
@description = ""
end end
def questions def questions

1
app/models/form/lettings/pages/rent_monthly.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::RentMonthly < ::Form::Page
@id = "rent_monthly" @id = "rent_monthly"
@header = "Household rent and charges" @header = "Household rent and charges"
@depends_on = [{ "household_charge" => 0, "period" => 4, "is_carehome" => 0 }, { "household_charge" => nil, "period" => 4, "is_carehome" => 0 }, { "household_charge" => 0, "period" => 4, "is_carehome" => nil }, { "household_charge" => nil, "period" => 4, "is_carehome" => nil }] @depends_on = [{ "household_charge" => 0, "period" => 4, "is_carehome" => 0 }, { "household_charge" => nil, "period" => 4, "is_carehome" => 0 }, { "household_charge" => 0, "period" => 4, "is_carehome" => nil }, { "household_charge" => nil, "period" => 4, "is_carehome" => nil }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/rent_or_other_charges.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::RentOrOtherCharges < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "rent_or_other_charges" @id = "rent_or_other_charges"
@header = ""
@depends_on = [{ "needstype" => 2 }] @depends_on = [{ "needstype" => 2 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/rent_period.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::RentPeriod < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "rent_period" @id = "rent_period"
@header = ""
@depends_on = [{ "household_charge" => 0 }, { "household_charge" => nil }] @depends_on = [{ "household_charge" => 0 }, { "household_charge" => nil }]
@description = ""
end end
def questions def questions

1
app/models/form/lettings/pages/rent_weekly.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::RentWeekly < ::Form::Page
@id = "rent_weekly" @id = "rent_weekly"
@header = "Household rent and charges" @header = "Household rent and charges"
@depends_on = [{ "period" => 1, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 1, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 5, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 5, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 6, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 6, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 7, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 7, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 8, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 8, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 9, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 9, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 1, "household_charge" => 0, "is_carehome" => nil }, { "period" => 1, "household_charge" => nil, "is_carehome" => nil }, { "period" => 5, "household_charge" => 0, "is_carehome" => nil }, { "period" => 5, "household_charge" => nil, "is_carehome" => nil }, { "period" => 6, "household_charge" => 0, "is_carehome" => nil }, { "period" => 6, "household_charge" => nil, "is_carehome" => nil }, { "period" => 7, "household_charge" => 0, "is_carehome" => nil }, { "period" => 7, "household_charge" => nil, "is_carehome" => nil }, { "period" => 8, "household_charge" => 0, "is_carehome" => nil }, { "period" => 8, "household_charge" => nil, "is_carehome" => nil }, { "period" => 9, "household_charge" => 0, "is_carehome" => nil }, { "period" => 9, "household_charge" => nil, "is_carehome" => nil }] @depends_on = [{ "period" => 1, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 1, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 5, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 5, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 6, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 6, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 7, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 7, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 8, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 8, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 9, "household_charge" => 0, "is_carehome" => 0 }, { "period" => 9, "household_charge" => nil, "is_carehome" => 0 }, { "period" => 1, "household_charge" => 0, "is_carehome" => nil }, { "period" => 1, "household_charge" => nil, "is_carehome" => nil }, { "period" => 5, "household_charge" => 0, "is_carehome" => nil }, { "period" => 5, "household_charge" => nil, "is_carehome" => nil }, { "period" => 6, "household_charge" => 0, "is_carehome" => nil }, { "period" => 6, "household_charge" => nil, "is_carehome" => nil }, { "period" => 7, "household_charge" => 0, "is_carehome" => nil }, { "period" => 7, "household_charge" => nil, "is_carehome" => nil }, { "period" => 8, "household_charge" => 0, "is_carehome" => nil }, { "period" => 8, "household_charge" => nil, "is_carehome" => nil }, { "period" => 9, "household_charge" => 0, "is_carehome" => nil }, { "period" => 9, "household_charge" => nil, "is_carehome" => nil }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/shelteredaccom.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::Shelteredaccom < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "shelteredaccom" @id = "shelteredaccom"
@header = ""
@depends_on = [{ "needstype" => 2 }] @depends_on = [{ "needstype" => 2 }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/starter_tenancy.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::StarterTenancy < ::Form::Page class Form::Lettings::Pages::StarterTenancy < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "starter_tenancy"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Startertenancy.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Startertenancy.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/starter_tenancy_type.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::StarterTenancyType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "starter_tenancy_type" @id = "starter_tenancy_type"
@header = ""
@depends_on = [{ "startertenancy" => 1 }] @depends_on = [{ "startertenancy" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/tenancy_length.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::TenancyLength < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "tenancy_length" @id = "tenancy_length"
@header = ""
@depends_on = [{ "tenancy" => 4 }, { "tenancy" => 6 }, { "tenancy" => 3 }] @depends_on = [{ "tenancy" => 4 }, { "tenancy" => 6 }, { "tenancy" => 3 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/tenancy_type.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::TenancyType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "tenancy_type" @id = "tenancy_type"
@header = ""
@depends_on = [{ "startertenancy" => 2 }] @depends_on = [{ "startertenancy" => 2 }]
@description = ""
end end
def questions def questions

7
app/models/form/lettings/pages/time_lived_in_local_authority.rb

@ -1,11 +1,4 @@
class Form::Lettings::Pages::TimeLivedInLocalAuthority < ::Form::Page class Form::Lettings::Pages::TimeLivedInLocalAuthority < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "time_lived_in_local_authority"
@header = ""
@description = ""
end
def questions def questions
@questions ||= [Form::Lettings::Questions::Layear.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::Layear.new(nil, nil, self)]
end end

2
app/models/form/lettings/pages/time_on_waiting_list.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::TimeOnWaitingList < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "time_on_waiting_list" @id = "time_on_waiting_list"
@header = ""
@depends_on = [{ "renewal" => 0 }] @depends_on = [{ "renewal" => 0 }]
@description = ""
end end
def questions def questions

1
app/models/form/lettings/pages/type_of_access_needs.rb

@ -4,7 +4,6 @@ class Form::Lettings::Pages::TypeOfAccessNeeds < ::Form::Page
@id = "type_of_access_needs" @id = "type_of_access_needs"
@header = "Disabled access needs" @header = "Disabled access needs"
@depends_on = [{ "housingneeds" => 1 }] @depends_on = [{ "housingneeds" => 1 }]
@description = ""
end end
def questions def questions

2
app/models/form/lettings/pages/void_or_renewal_date.rb

@ -2,9 +2,7 @@ class Form::Lettings::Pages::VoidOrRenewalDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "void_or_renewal_date" @id = "void_or_renewal_date"
@header = ""
@depends_on = [{ "renewal" => 0, "rsnvac" => 5 }, { "renewal" => 0, "rsnvac" => 6 }, { "renewal" => 0, "rsnvac" => 8 }, { "renewal" => 0, "rsnvac" => 9 }, { "renewal" => 0, "rsnvac" => 10 }, { "renewal" => 0, "rsnvac" => 11 }, { "renewal" => 0, "rsnvac" => 12 }, { "renewal" => 0, "rsnvac" => 13 }, { "renewal" => 0, "rsnvac" => 18 }, { "renewal" => 0, "rsnvac" => 19 }] @depends_on = [{ "renewal" => 0, "rsnvac" => 5 }, { "renewal" => 0, "rsnvac" => 6 }, { "renewal" => 0, "rsnvac" => 8 }, { "renewal" => 0, "rsnvac" => 9 }, { "renewal" => 0, "rsnvac" => 10 }, { "renewal" => 0, "rsnvac" => 11 }, { "renewal" => 0, "rsnvac" => 12 }, { "renewal" => 0, "rsnvac" => 13 }, { "renewal" => 0, "rsnvac" => 18 }, { "renewal" => 0, "rsnvac" => 19 }]
@description = ""
end end
def questions def questions

8
app/models/form/lettings/subsections/household_needs.rb

@ -7,15 +7,15 @@ class Form::Lettings::Subsections::HouseholdNeeds < ::Form::Subsection
end end
def pages def pages
@pages ||= [Form::Lettings::Pages::ArmedForces.new(nil, nil, self), @pages ||= [Form::Lettings::Pages::ArmedForces.new("armed_forces", nil, self),
Form::Lettings::Pages::ArmedForcesServing.new(nil, nil, self), Form::Lettings::Pages::ArmedForcesServing.new(nil, nil, self),
Form::Lettings::Pages::ArmedForcesInjured.new(nil, nil, self), Form::Lettings::Pages::ArmedForcesInjured.new(nil, nil, self),
Form::Lettings::Pages::Pregnant.new(nil, nil, self), Form::Lettings::Pages::Pregnant.new("pregnant", nil, self),
Form::Lettings::Pages::NoFemalesPregnantHouseholdValueCheck.new(nil, nil, self), Form::Lettings::Pages::NoFemalesPregnantHouseholdValueCheck.new(nil, nil, self),
Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdValueCheck.new(nil, nil, self), Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdValueCheck.new(nil, nil, self),
Form::Lettings::Pages::AccessNeedsExist.new(nil, nil, self), Form::Lettings::Pages::AccessNeedsExist.new("access_needs_exist", nil, self),
Form::Lettings::Pages::TypeOfAccessNeeds.new(nil, nil, self), Form::Lettings::Pages::TypeOfAccessNeeds.new(nil, nil, self),
Form::Lettings::Pages::HealthConditions.new(nil, nil, self), Form::Lettings::Pages::HealthConditions.new("health_conditions", nil, self),
Form::Lettings::Pages::HealthConditionEffects.new(nil, nil, self)].compact Form::Lettings::Pages::HealthConditionEffects.new(nil, nil, self)].compact
end end
end end

10
app/models/form/lettings/subsections/household_situation.rb

@ -7,18 +7,18 @@ class Form::Lettings::Subsections::HouseholdSituation < ::Form::Subsection
end end
def pages def pages
@pages ||= [Form::Lettings::Pages::TimeLivedInLocalAuthority.new(nil, nil, self), @pages ||= [Form::Lettings::Pages::TimeLivedInLocalAuthority.new("time_lived_in_local_authority", nil, self),
Form::Lettings::Pages::TimeOnWaitingList.new(nil, nil, self), Form::Lettings::Pages::TimeOnWaitingList.new(nil, nil, self),
Form::Lettings::Pages::ReasonForLeavingLastSettledHome.new(nil, nil, self), Form::Lettings::Pages::ReasonForLeavingLastSettledHome.new(nil, nil, self),
Form::Lettings::Pages::ReasonForLeavingLastSettledHomeRenewal.new(nil, nil, self), Form::Lettings::Pages::ReasonForLeavingLastSettledHomeRenewal.new(nil, nil, self),
Form::Lettings::Pages::PreviousHousingSituation.new(nil, nil, self), Form::Lettings::Pages::PreviousHousingSituation.new(nil, nil, self),
Form::Lettings::Pages::PreviousHousingSituationRenewal.new(nil, nil, self), Form::Lettings::Pages::PreviousHousingSituationRenewal.new(nil, nil, self),
Form::Lettings::Pages::Homelessness.new(nil, nil, self), Form::Lettings::Pages::Homelessness.new("homelessness", nil, self),
Form::Lettings::Pages::PreviousPostcode.new(nil, nil, self), Form::Lettings::Pages::PreviousPostcode.new("previous_postcode", nil, self),
Form::Lettings::Pages::PreviousLocalAuthority.new(nil, nil, self), Form::Lettings::Pages::PreviousLocalAuthority.new(nil, nil, self),
Form::Lettings::Pages::ReasonablePreference.new(nil, nil, self), Form::Lettings::Pages::ReasonablePreference.new("reasonable_preference", nil, self),
Form::Lettings::Pages::ReasonablePreferenceReason.new(nil, nil, self), Form::Lettings::Pages::ReasonablePreferenceReason.new(nil, nil, self),
Form::Lettings::Pages::AllocationSystem.new(nil, nil, self), Form::Lettings::Pages::AllocationSystem.new("allocation_system", nil, self),
Form::Lettings::Pages::Referral.new(nil, nil, self), Form::Lettings::Pages::Referral.new(nil, nil, self),
Form::Lettings::Pages::ReferralPrp.new(nil, nil, self), Form::Lettings::Pages::ReferralPrp.new(nil, nil, self),
Form::Lettings::Pages::ReferralSupportedHousing.new(nil, nil, self), Form::Lettings::Pages::ReferralSupportedHousing.new(nil, nil, self),

4
app/models/form/lettings/subsections/income_and_benefits.rb

@ -10,8 +10,8 @@ class Form::Lettings::Subsections::IncomeAndBenefits < ::Form::Subsection
@pages ||= [Form::Lettings::Pages::IncomeKnown.new(nil, nil, self), @pages ||= [Form::Lettings::Pages::IncomeKnown.new(nil, nil, self),
Form::Lettings::Pages::IncomeAmount.new(nil, nil, self), Form::Lettings::Pages::IncomeAmount.new(nil, nil, self),
Form::Lettings::Pages::NetIncomeValueCheck.new(nil, nil, self), Form::Lettings::Pages::NetIncomeValueCheck.new(nil, nil, self),
Form::Lettings::Pages::HousingBenefit.new(nil, nil, self), Form::Lettings::Pages::HousingBenefit.new("housing_benefit", nil, self),
Form::Lettings::Pages::BenefitsProportion.new(nil, nil, self), Form::Lettings::Pages::BenefitsProportion.new("benefits_proportion", nil, self),
Form::Lettings::Pages::RentOrOtherCharges.new(nil, nil, self), Form::Lettings::Pages::RentOrOtherCharges.new(nil, nil, self),
Form::Lettings::Pages::RentPeriod.new(nil, nil, self), Form::Lettings::Pages::RentPeriod.new(nil, nil, self),
Form::Lettings::Pages::CareHomeWeekly.new(nil, nil, self), Form::Lettings::Pages::CareHomeWeekly.new(nil, nil, self),

4
app/models/form/lettings/subsections/tenancy_information.rb

@ -7,8 +7,8 @@ class Form::Lettings::Subsections::TenancyInformation < ::Form::Subsection
end end
def pages def pages
@pages ||= [Form::Lettings::Pages::Joint.new(nil, nil, self), @pages ||= [Form::Lettings::Pages::Joint.new("joint", nil, self),
Form::Lettings::Pages::StarterTenancy.new(nil, nil, self), Form::Lettings::Pages::StarterTenancy.new("starter_tenancy", nil, self),
Form::Lettings::Pages::TenancyType.new(nil, nil, self), Form::Lettings::Pages::TenancyType.new(nil, nil, self),
Form::Lettings::Pages::StarterTenancyType.new(nil, nil, self), Form::Lettings::Pages::StarterTenancyType.new(nil, nil, self),
Form::Lettings::Pages::TenancyLength.new(nil, nil, self), Form::Lettings::Pages::TenancyLength.new(nil, nil, self),

Loading…
Cancel
Save