Browse Source

Remove redundant subsection assignment from pages

pull/1166/head
Kat 3 years ago
parent
commit
078422ad2c
  1. 1
      app/models/form/common/pages/created_by.rb
  2. 1
      app/models/form/common/pages/organisation.rb
  3. 1
      app/models/form/lettings/pages/created_by.rb
  4. 1
      app/models/form/lettings/pages/managing_organisation.rb
  5. 1
      app/models/form/lettings/pages/needs_type.rb
  6. 1
      app/models/form/lettings/pages/property_reference.rb
  7. 1
      app/models/form/lettings/pages/renewal.rb
  8. 1
      app/models/form/lettings/pages/stock_owner.rb
  9. 1
      app/models/form/lettings/pages/tenancy_start_date.rb
  10. 1
      app/models/form/lettings/pages/tenant_code.rb
  11. 1
      app/models/form/sales/pages/about_deposit_with_discount.rb
  12. 1
      app/models/form/sales/pages/about_deposit_without_discount.rb
  13. 1
      app/models/form/sales/pages/about_price_not_rtb.rb
  14. 1
      app/models/form/sales/pages/about_price_rtb.rb
  15. 1
      app/models/form/sales/pages/about_price_shared_ownership.rb
  16. 1
      app/models/form/sales/pages/about_staircase.rb
  17. 1
      app/models/form/sales/pages/age1.rb
  18. 1
      app/models/form/sales/pages/age2.rb
  19. 1
      app/models/form/sales/pages/armed_forces.rb
  20. 1
      app/models/form/sales/pages/armed_forces_spouse.rb
  21. 1
      app/models/form/sales/pages/buyer1_ethnic_background_arab.rb
  22. 1
      app/models/form/sales/pages/buyer1_ethnic_background_asian.rb
  23. 1
      app/models/form/sales/pages/buyer1_ethnic_background_black.rb
  24. 1
      app/models/form/sales/pages/buyer1_ethnic_background_mixed.rb
  25. 1
      app/models/form/sales/pages/buyer1_ethnic_background_white.rb
  26. 1
      app/models/form/sales/pages/buyer1_ethnic_group.rb
  27. 1
      app/models/form/sales/pages/buyer1_income.rb
  28. 1
      app/models/form/sales/pages/buyer1_income_value_check.rb
  29. 1
      app/models/form/sales/pages/buyer1_live_in_property.rb
  30. 1
      app/models/form/sales/pages/buyer1_mortgage.rb
  31. 1
      app/models/form/sales/pages/buyer1_previous_tenure.rb
  32. 1
      app/models/form/sales/pages/buyer1_working_situation.rb
  33. 1
      app/models/form/sales/pages/buyer2_income.rb
  34. 1
      app/models/form/sales/pages/buyer2_live_in_property.rb
  35. 1
      app/models/form/sales/pages/buyer2_mortgage.rb
  36. 1
      app/models/form/sales/pages/buyer2_relationship_to_buyer1.rb
  37. 1
      app/models/form/sales/pages/buyer2_working_situation.rb
  38. 1
      app/models/form/sales/pages/buyer_company.rb
  39. 1
      app/models/form/sales/pages/buyer_interview.rb
  40. 1
      app/models/form/sales/pages/buyer_live.rb
  41. 1
      app/models/form/sales/pages/buyer_previous.rb
  42. 1
      app/models/form/sales/pages/buyer_still_serving.rb
  43. 1
      app/models/form/sales/pages/buyers_organisations.rb
  44. 1
      app/models/form/sales/pages/deposit_value_check.rb
  45. 1
      app/models/form/sales/pages/discounted_ownership_type.rb
  46. 1
      app/models/form/sales/pages/exchange_date.rb
  47. 1
      app/models/form/sales/pages/gender_identity1.rb
  48. 1
      app/models/form/sales/pages/gender_identity2.rb
  49. 1
      app/models/form/sales/pages/handover_date.rb
  50. 1
      app/models/form/sales/pages/household_disability.rb
  51. 1
      app/models/form/sales/pages/household_wheelchair.rb
  52. 1
      app/models/form/sales/pages/household_wheelchair_check.rb
  53. 1
      app/models/form/sales/pages/housing_benefits.rb
  54. 1
      app/models/form/sales/pages/joint_purchase.rb
  55. 1
      app/models/form/sales/pages/la_nominations.rb
  56. 1
      app/models/form/sales/pages/last_accommodation.rb
  57. 1
      app/models/form/sales/pages/last_accommodation_la.rb
  58. 1
      app/models/form/sales/pages/leasehold_charges.rb
  59. 1
      app/models/form/sales/pages/living_before_purchase.rb
  60. 1
      app/models/form/sales/pages/monthly_rent.rb
  61. 1
      app/models/form/sales/pages/mortgage_amount.rb
  62. 1
      app/models/form/sales/pages/mortgage_length.rb
  63. 1
      app/models/form/sales/pages/mortgage_value_check.rb
  64. 1
      app/models/form/sales/pages/mortgageused.rb
  65. 1
      app/models/form/sales/pages/nationality1.rb
  66. 1
      app/models/form/sales/pages/number_joint_buyers.rb
  67. 1
      app/models/form/sales/pages/number_of_others_in_property.rb
  68. 1
      app/models/form/sales/pages/outright_ownership_type.rb
  69. 1
      app/models/form/sales/pages/ownership_scheme.rb
  70. 1
      app/models/form/sales/pages/person_age.rb
  71. 1
      app/models/form/sales/pages/person_gender_identity.rb
  72. 1
      app/models/form/sales/pages/person_known.rb
  73. 1
      app/models/form/sales/pages/person_relationship_to_buyer_1.rb
  74. 1
      app/models/form/sales/pages/person_working_situation.rb
  75. 1
      app/models/form/sales/pages/previous_bedrooms.rb
  76. 1
      app/models/form/sales/pages/previous_ownership.rb
  77. 1
      app/models/form/sales/pages/privacy_notice.rb
  78. 1
      app/models/form/sales/pages/property_building_type.rb
  79. 1
      app/models/form/sales/pages/property_local_authority.rb
  80. 1
      app/models/form/sales/pages/property_number_of_bedrooms.rb
  81. 1
      app/models/form/sales/pages/property_unit_type.rb
  82. 1
      app/models/form/sales/pages/property_wheelchair_accessible.rb
  83. 1
      app/models/form/sales/pages/purchase_price.rb
  84. 1
      app/models/form/sales/pages/purchaser_code.rb
  85. 1
      app/models/form/sales/pages/resale.rb
  86. 1
      app/models/form/sales/pages/sale_date.rb
  87. 1
      app/models/form/sales/pages/savings.rb
  88. 1
      app/models/form/sales/pages/savings_value_check.rb
  89. 1
      app/models/form/sales/pages/shared_ownership_type.rb
  90. 1
      app/models/form/sales/pages/staircase.rb

1
app/models/form/common/pages/created_by.rb

@ -2,7 +2,6 @@ class Form::Common::Pages::CreatedBy < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "created_by" @id = "created_by"
@subsection = subsection
end end
def questions def questions

1
app/models/form/common/pages/organisation.rb

@ -2,7 +2,6 @@ class Form::Common::Pages::Organisation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "organisation" @id = "organisation"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::CreatedBy < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "created_by" @id = "created_by"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::ManagingOrganisation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "managing_organisation" @id = "managing_organisation"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::NeedsType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "needs_type" @id = "needs_type"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::PropertyReference < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_reference" @id = "property_reference"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::Renewal < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "renewal" @id = "renewal"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::StockOwner < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "stock_owner" @id = "stock_owner"
@subsection = subsection
end end
def questions def questions

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::TenancyStartDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "tenancy_start_date" @id = "tenancy_start_date"
@subsection = subsection
@next_unresolved_page_id = "scheme" @next_unresolved_page_id = "scheme"
end end

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

@ -2,7 +2,6 @@ class Form::Lettings::Pages::TenantCode < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "tenant_code" @id = "tenant_code"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/about_deposit_with_discount.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutDepositWithDiscount < ::Form::Page
super super
@id = "about_deposit_with_discount" @id = "about_deposit_with_discount"
@header = "About the deposit" @header = "About the deposit"
@subsection = subsection
@depends_on = [{ "is_type_discount?" => true }] @depends_on = [{ "is_type_discount?" => true }]
end end

1
app/models/form/sales/pages/about_deposit_without_discount.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::AboutDepositWithoutDiscount < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@header = "About the deposit" @header = "About the deposit"
@subsection = subsection
@depends_on = [{ "is_type_discount?" => false }] @depends_on = [{ "is_type_discount?" => false }]
end end

1
app/models/form/sales/pages/about_price_not_rtb.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutPriceNotRtb < ::Form::Page
super super
@id = "about_price_not_rtb" @id = "about_price_not_rtb"
@header = "About the price of the property" @header = "About the price of the property"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"right_to_buy?" => false, "right_to_buy?" => false,
}] }]

1
app/models/form/sales/pages/about_price_rtb.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutPriceRtb < ::Form::Page
super super
@id = "about_price_rtb" @id = "about_price_rtb"
@header = "About the price of the property" @header = "About the price of the property"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"right_to_buy?" => true, "right_to_buy?" => true,
}] }]

1
app/models/form/sales/pages/about_price_shared_ownership.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutPriceSharedOwnership < ::Form::Page
super super
@id = "about_price_shared_ownership" @id = "about_price_shared_ownership"
@header = "About the price of the property" @header = "About the price of the property"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/about_staircase.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutStaircase < ::Form::Page
super super
@id = "about_staircasing" @id = "about_staircasing"
@header = "About the staircasing transaction" @header = "About the staircasing transaction"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"staircase" => 1, "staircase" => 1,
}] }]

1
app/models/form/sales/pages/age1.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Age1 < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_age" @id = "buyer_1_age"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/age2.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Age2 < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_age" @id = "buyer_2_age"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/armed_forces.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::ArmedForces < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "armed_forces" @id = "armed_forces"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/armed_forces_spouse.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::ArmedForcesSpouse < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "armed_forces_spouse" @id = "armed_forces_spouse"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer1_ethnic_background_arab.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundArab < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_ethnic_background_arab" @id = "buyer_1_ethnic_background_arab"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ethnic_group" => 4, "ethnic_group" => 4,
}] }]

1
app/models/form/sales/pages/buyer1_ethnic_background_asian.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundAsian < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_ethnic_background_asian" @id = "buyer_1_ethnic_background_asian"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ethnic_group" => 2, "ethnic_group" => 2,
}] }]

1
app/models/form/sales/pages/buyer1_ethnic_background_black.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundBlack < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_ethnic_background_black" @id = "buyer_1_ethnic_background_black"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ethnic_group" => 3, "ethnic_group" => 3,
}] }]

1
app/models/form/sales/pages/buyer1_ethnic_background_mixed.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundMixed < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_ethnic_background_mixed" @id = "buyer_1_ethnic_background_mixed"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ethnic_group" => 1, "ethnic_group" => 1,
}] }]

1
app/models/form/sales/pages/buyer1_ethnic_background_white.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundWhite < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_ethnic_background_white" @id = "buyer_1_ethnic_background_white"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ethnic_group" => 0, "ethnic_group" => 0,
}] }]

1
app/models/form/sales/pages/buyer1_ethnic_group.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicGroup < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_ethnic_group" @id = "buyer_1_ethnic_group"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer1_income.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1Income < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_income" @id = "buyer_1_income"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer1_income_value_check.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ {
"income1_under_soft_min?" => true, "income1_under_soft_min?" => true,

1
app/models/form/sales/pages/buyer1_live_in_property.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1LiveInProperty < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_live_in_property" @id = "buyer_1_live_in_property"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer1_mortgage.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1Mortgage < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_mortgage" @id = "buyer_1_mortgage"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer1_previous_tenure.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1PreviousTenure < ::Form::Page
super super
@id = "buyer1_previous_tenure" @id = "buyer1_previous_tenure"
@header = "What was buyer 1's previous tenure?" @header = "What was buyer 1's previous tenure?"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer1_working_situation.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1WorkingSituation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_working_situation" @id = "buyer_1_working_situation"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer2_income.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2Income < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_income" @id = "buyer_2_income"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/buyer2_live_in_property.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2LiveInProperty < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_live_in_property" @id = "buyer_2_live_in_property"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/buyer2_mortgage.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2Mortgage < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_mortgage" @id = "buyer_2_mortgage"
@subsection = subsection
@depends_on = [{ "jointpur" => 1 }] @depends_on = [{ "jointpur" => 1 }]
end end

1
app/models/form/sales/pages/buyer2_relationship_to_buyer1.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2RelationshipToBuyer1 < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_relationship_to_buyer_1" @id = "buyer_2_relationship_to_buyer_1"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/buyer2_working_situation.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2WorkingSituation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_working_situation" @id = "buyer_2_working_situation"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/buyer_company.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerCompany < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_company" @id = "buyer_company"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ownershipsch" => 3, "ownershipsch" => 3,
}] }]

1
app/models/form/sales/pages/buyer_interview.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerInterview < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_interview" @id = "buyer_interview"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer_live.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerLive < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_live" @id = "buyer_live"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"companybuy" => 2, "companybuy" => 2,
}] }]

1
app/models/form/sales/pages/buyer_previous.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerPrevious < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_previous" @id = "buyer_previous"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/buyer_still_serving.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerStillServing < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_still_serving" @id = "buyer_still_serving"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"hhregres" => 1, "hhregres" => 1,
}] }]

1
app/models/form/sales/pages/buyers_organisations.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyersOrganisations < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyers_organisations" @id = "buyers_organisations"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/deposit_value_check.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::DepositValueCheck < ::Form::Page class Form::Sales::Pages::DepositValueCheck < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ {
"deposit_over_soft_max?" => true, "deposit_over_soft_max?" => true,

1
app/models/form/sales/pages/discounted_ownership_type.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::DiscountedOwnershipType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "discounted_ownership_type" @id = "discounted_ownership_type"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ownershipsch" => 2, "ownershipsch" => 2,
}] }]

1
app/models/form/sales/pages/exchange_date.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::ExchangeDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "exchange_contracts" @id = "exchange_contracts"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"resale" => 2, "resale" => 2,
}] }]

1
app/models/form/sales/pages/gender_identity1.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::GenderIdentity1 < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_gender_identity" @id = "buyer_1_gender_identity"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/gender_identity2.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::GenderIdentity2 < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_2_gender_identity" @id = "buyer_2_gender_identity"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/handover_date.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::HandoverDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "handover_date" @id = "handover_date"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ownershipsch" => 1, "ownershipsch" => 1,
}] }]

1
app/models/form/sales/pages/household_disability.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::HouseholdDisability < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "household_disability" @id = "household_disability"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/household_wheelchair.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::HouseholdWheelchair < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "household_wheelchair" @id = "household_wheelchair"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/household_wheelchair_check.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::HouseholdWheelchairCheck < ::Form::Page class Form::Sales::Pages::HouseholdWheelchairCheck < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ {
"wheelchair_when_not_disabled?" => true, "wheelchair_when_not_disabled?" => true,

1
app/models/form/sales/pages/housing_benefits.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "housing_benefits" @id = "housing_benefits"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/joint_purchase.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "joint_purchase" @id = "joint_purchase"
@subsection = subsection
@depends_on = [ @depends_on = [
{ "ownershipsch" => 1 }, { "ownershipsch" => 1 },
{ "ownershipsch" => 2 }, { "ownershipsch" => 2 },

1
app/models/form/sales/pages/la_nominations.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::LaNominations < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "la_nominations" @id = "la_nominations"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/last_accommodation.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::LastAccommodation < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "last_accommodation" @id = "last_accommodation"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/last_accommodation_la.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::LastAccommodationLa < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "last_accommodation_la" @id = "last_accommodation_la"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"is_previous_la_inferred" => false, "is_previous_la_inferred" => false,
}] }]

1
app/models/form/sales/pages/leasehold_charges.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::LeaseholdCharges < ::Form::Page class Form::Sales::Pages::LeaseholdCharges < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/living_before_purchase.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::LivingBeforePurchase < ::Form::Page class Form::Sales::Pages::LivingBeforePurchase < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/monthly_rent.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::MonthlyRent < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "monthly_rent" @id = "monthly_rent"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/mortgage_amount.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::MortgageAmount < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@header = "Mortgage Amount" @header = "Mortgage Amount"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"mortgageused" => 1, "mortgageused" => 1,
}] }]

1
app/models/form/sales/pages/mortgage_length.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::MortgageLength < ::Form::Page class Form::Sales::Pages::MortgageLength < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/mortgage_value_check.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::MortgageValueCheck < ::Form::Page class Form::Sales::Pages::MortgageValueCheck < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ {
"mortgage_over_soft_max?" => true, "mortgage_over_soft_max?" => true,

1
app/models/form/sales/pages/mortgageused.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::Mortgageused < ::Form::Page class Form::Sales::Pages::Mortgageused < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/nationality1.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Nationality1 < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "buyer_1_nationality" @id = "buyer_1_nationality"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/number_joint_buyers.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::NumberJointBuyers < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "number_joint_buyers" @id = "number_joint_buyers"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"jointpur" => 1, "jointpur" => 1,
}] }]

1
app/models/form/sales/pages/number_of_others_in_property.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::NumberOfOthersInProperty < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "number_of_others_in_property" @id = "number_of_others_in_property"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/outright_ownership_type.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::OutrightOwnershipType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "outright_ownership_type" @id = "outright_ownership_type"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ownershipsch" => 3, "ownershipsch" => 3,
}] }]

1
app/models/form/sales/pages/ownership_scheme.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::OwnershipScheme < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "ownership_scheme" @id = "ownership_scheme"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/person_age.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::PersonAge < Form::Sales::Pages::Person class Form::Sales::Pages::PersonAge < Form::Sales::Pages::Person
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super super
@subsection = subsection
@depends_on = [{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }] @depends_on = [{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }]
end end

1
app/models/form/sales/pages/person_gender_identity.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::PersonGenderIdentity < Form::Sales::Pages::Person class Form::Sales::Pages::PersonGenderIdentity < Form::Sales::Pages::Person
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }, { details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 },
] ]

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

@ -2,7 +2,6 @@ class Form::Sales::Pages::PersonKnown < Form::Sales::Pages::Person
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super super
@header_partial = "person_#{person_display_number}_known_page" @header_partial = "person_#{person_display_number}_known_page"
@subsection = subsection
@depends_on = (person_display_number..4).map { |index| { "hholdcount" => index, "jointpur" => joint_purchase? ? 1 : 2 } } @depends_on = (person_display_number..4).map { |index| { "hholdcount" => index, "jointpur" => joint_purchase? ? 1 : 2 } }
end end

1
app/models/form/sales/pages/person_relationship_to_buyer_1.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::PersonRelationshipToBuyer1 < ::Form::Sales::Pages::Person class Form::Sales::Pages::PersonRelationshipToBuyer1 < ::Form::Sales::Pages::Person
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }, { details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 },
] ]

1
app/models/form/sales/pages/person_working_situation.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::PersonWorkingSituation < Form::Sales::Pages::Person class Form::Sales::Pages::PersonWorkingSituation < Form::Sales::Pages::Person
def initialize(id, hsh, subsection, person_index:) def initialize(id, hsh, subsection, person_index:)
super super
@subsection = subsection
@depends_on = [{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }] @depends_on = [{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }]
end end

1
app/models/form/sales/pages/previous_bedrooms.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::PreviousBedrooms < ::Form::Page
super super
@id = "previous_bedrooms" @id = "previous_bedrooms"
@header = "About the buyers’ previous property" @header = "About the buyers’ previous property"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"soctenant" => 1, "soctenant" => 1,
}] }]

1
app/models/form/sales/pages/previous_ownership.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PreviousOwnership < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "previous_ownership" @id = "previous_ownership"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/privacy_notice.rb

@ -3,7 +3,6 @@ class Form::Sales::Pages::PrivacyNotice < ::Form::Page
super super
@id = "privacy_notice" @id = "privacy_notice"
@header = "Department for Levelling Up, Housing and Communities privacy notice" @header = "Department for Levelling Up, Housing and Communities privacy notice"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"noint" => 2, "noint" => 2,
}] }]

1
app/models/form/sales/pages/property_building_type.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyBuildingType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_building_type" @id = "property_building_type"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/property_local_authority.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyLocalAuthority < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_local_authority" @id = "property_local_authority"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/property_number_of_bedrooms.rb

@ -2,7 +2,6 @@ class Form::Sales::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"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/property_unit_type.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyUnitType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_unit_type" @id = "property_unit_type"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/property_wheelchair_accessible.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyWheelchairAccessible < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "property_wheelchair_accessible" @id = "property_wheelchair_accessible"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/purchase_price.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PurchasePrice < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "purchase_price" @id = "purchase_price"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/purchaser_code.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::PurchaserCode < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "purchaser_code" @id = "purchaser_code"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/resale.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Resale < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "resale" @id = "resale"
@subsection = subsection
@depends_on = [ @depends_on = [
{ {
"staircase" => 2, "staircase" => 2,

1
app/models/form/sales/pages/sale_date.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::SaleDate < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "completion_date" @id = "completion_date"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/savings.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Savings < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "savings" @id = "savings"
@subsection = subsection
end end
def questions def questions

1
app/models/form/sales/pages/savings_value_check.rb

@ -1,7 +1,6 @@
class Form::Sales::Pages::SavingsValueCheck < ::Form::Page class Form::Sales::Pages::SavingsValueCheck < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@subsection = subsection
@depends_on = [ @depends_on = [
{ {
"savings_over_soft_max?" => true, "savings_over_soft_max?" => true,

1
app/models/form/sales/pages/shared_ownership_type.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::SharedOwnershipType < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "shared_ownership_type" @id = "shared_ownership_type"
@subsection = subsection
@depends_on = [{ @depends_on = [{
"ownershipsch" => 1, "ownershipsch" => 1,
}] }]

1
app/models/form/sales/pages/staircase.rb

@ -2,7 +2,6 @@ class Form::Sales::Pages::Staircase < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "staircasing" @id = "staircasing"
@subsection = subsection
end end
def questions def questions

Loading…
Cancel
Save