Browse Source

remove empty headers from pages

pull/1166/head
Kat 3 years ago
parent
commit
d0fcbadedc
  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/location.rb
  5. 1
      app/models/form/lettings/pages/managing_organisation.rb
  6. 1
      app/models/form/lettings/pages/needs_type.rb
  7. 1
      app/models/form/lettings/pages/property_reference.rb
  8. 1
      app/models/form/lettings/pages/renewal.rb
  9. 1
      app/models/form/lettings/pages/rent_type.rb
  10. 1
      app/models/form/lettings/pages/scheme.rb
  11. 1
      app/models/form/lettings/pages/stock_owner.rb
  12. 1
      app/models/form/lettings/pages/tenant_code.rb
  13. 1
      app/models/form/sales/pages/age1.rb
  14. 1
      app/models/form/sales/pages/age2.rb
  15. 1
      app/models/form/sales/pages/armed_forces.rb
  16. 1
      app/models/form/sales/pages/armed_forces_spouse.rb
  17. 1
      app/models/form/sales/pages/buyer1_ethnic_background_arab.rb
  18. 1
      app/models/form/sales/pages/buyer1_ethnic_background_asian.rb
  19. 1
      app/models/form/sales/pages/buyer1_ethnic_background_black.rb
  20. 1
      app/models/form/sales/pages/buyer1_ethnic_background_mixed.rb
  21. 1
      app/models/form/sales/pages/buyer1_ethnic_background_white.rb
  22. 1
      app/models/form/sales/pages/buyer1_ethnic_group.rb
  23. 1
      app/models/form/sales/pages/buyer1_income.rb
  24. 1
      app/models/form/sales/pages/buyer1_income_value_check.rb
  25. 1
      app/models/form/sales/pages/buyer1_live_in_property.rb
  26. 1
      app/models/form/sales/pages/buyer1_mortgage.rb
  27. 1
      app/models/form/sales/pages/buyer1_working_situation.rb
  28. 1
      app/models/form/sales/pages/buyer2_income.rb
  29. 1
      app/models/form/sales/pages/buyer2_live_in_property.rb
  30. 1
      app/models/form/sales/pages/buyer2_mortgage.rb
  31. 1
      app/models/form/sales/pages/buyer2_relationship_to_buyer1.rb
  32. 1
      app/models/form/sales/pages/buyer2_working_situation.rb
  33. 1
      app/models/form/sales/pages/buyer_company.rb
  34. 1
      app/models/form/sales/pages/buyer_interview.rb
  35. 1
      app/models/form/sales/pages/buyer_live.rb
  36. 1
      app/models/form/sales/pages/buyer_previous.rb
  37. 1
      app/models/form/sales/pages/buyer_still_serving.rb
  38. 1
      app/models/form/sales/pages/buyers_organisations.rb
  39. 1
      app/models/form/sales/pages/deposit_value_check.rb
  40. 1
      app/models/form/sales/pages/discounted_ownership_type.rb
  41. 1
      app/models/form/sales/pages/exchange_date.rb
  42. 1
      app/models/form/sales/pages/gender_identity1.rb
  43. 1
      app/models/form/sales/pages/gender_identity2.rb
  44. 1
      app/models/form/sales/pages/handover_date.rb
  45. 1
      app/models/form/sales/pages/household_disability.rb
  46. 1
      app/models/form/sales/pages/household_wheelchair.rb
  47. 1
      app/models/form/sales/pages/household_wheelchair_check.rb
  48. 1
      app/models/form/sales/pages/housing_benefits.rb
  49. 1
      app/models/form/sales/pages/joint_purchase.rb
  50. 1
      app/models/form/sales/pages/la_nominations.rb
  51. 1
      app/models/form/sales/pages/last_accommodation.rb
  52. 1
      app/models/form/sales/pages/last_accommodation_la.rb
  53. 1
      app/models/form/sales/pages/leasehold_charges.rb
  54. 1
      app/models/form/sales/pages/living_before_purchase.rb
  55. 1
      app/models/form/sales/pages/monthly_rent.rb
  56. 1
      app/models/form/sales/pages/mortgage_length.rb
  57. 1
      app/models/form/sales/pages/mortgage_value_check.rb
  58. 1
      app/models/form/sales/pages/mortgageused.rb
  59. 1
      app/models/form/sales/pages/nationality1.rb
  60. 1
      app/models/form/sales/pages/number_joint_buyers.rb
  61. 1
      app/models/form/sales/pages/number_of_others_in_property.rb
  62. 1
      app/models/form/sales/pages/outright_ownership_type.rb
  63. 1
      app/models/form/sales/pages/ownership_scheme.rb
  64. 1
      app/models/form/sales/pages/person_age.rb
  65. 1
      app/models/form/sales/pages/person_gender_identity.rb
  66. 1
      app/models/form/sales/pages/person_known.rb
  67. 1
      app/models/form/sales/pages/person_relationship_to_buyer_1.rb
  68. 1
      app/models/form/sales/pages/person_working_situation.rb
  69. 1
      app/models/form/sales/pages/previous_ownership.rb
  70. 1
      app/models/form/sales/pages/property_building_type.rb
  71. 1
      app/models/form/sales/pages/property_local_authority.rb
  72. 1
      app/models/form/sales/pages/property_number_of_bedrooms.rb
  73. 1
      app/models/form/sales/pages/property_unit_type.rb
  74. 1
      app/models/form/sales/pages/property_wheelchair_accessible.rb
  75. 1
      app/models/form/sales/pages/purchase_price.rb
  76. 1
      app/models/form/sales/pages/purchaser_code.rb
  77. 1
      app/models/form/sales/pages/resale.rb
  78. 1
      app/models/form/sales/pages/sale_date.rb
  79. 1
      app/models/form/sales/pages/savings.rb
  80. 1
      app/models/form/sales/pages/savings_value_check.rb
  81. 1
      app/models/form/sales/pages/shared_ownership_type.rb
  82. 1
      app/models/form/sales/pages/staircase.rb
  83. 2
      spec/models/form/common/pages/created_by_spec.rb
  84. 2
      spec/models/form/common/pages/organisation_spec.rb
  85. 2
      spec/models/form/lettings/pages/created_by_spec.rb
  86. 2
      spec/models/form/lettings/pages/location_spec.rb
  87. 2
      spec/models/form/lettings/pages/managing_organisation_spec.rb
  88. 2
      spec/models/form/lettings/pages/needs_type_spec.rb
  89. 2
      spec/models/form/lettings/pages/property_reference_spec.rb
  90. 2
      spec/models/form/lettings/pages/renewal_spec.rb
  91. 2
      spec/models/form/lettings/pages/rent_type_spec.rb
  92. 2
      spec/models/form/lettings/pages/scheme_spec.rb
  93. 2
      spec/models/form/lettings/pages/stock_owner_spec.rb
  94. 2
      spec/models/form/lettings/pages/tenant_code_spec.rb
  95. 2
      spec/models/form/sales/pages/age1_spec.rb
  96. 2
      spec/models/form/sales/pages/age2_spec.rb
  97. 2
      spec/models/form/sales/pages/armed_forces_spec.rb
  98. 2
      spec/models/form/sales/pages/armed_forces_spouse_spec.rb
  99. 2
      spec/models/form/sales/pages/buyer1_ethnic_background_arab_spec.rb
  100. 2
      spec/models/form/sales/pages/buyer1_ethnic_background_asian_spec.rb
  101. Some files were not shown because too many files have changed in this diff Show More

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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

@ -1,7 +1,6 @@
class Form::Lettings::Pages::Location < ::Form::Page class Form::Lettings::Pages::Location < ::Form::Page
def initialize(_id, hsh, subsection) def initialize(_id, hsh, subsection)
super("location", hsh, subsection) super("location", hsh, subsection)
@header = ""
@depends_on = [{ @depends_on = [{
"needstype" => 2, "needstype" => 2,
"scheme_has_multiple_locations?" => true, "scheme_has_multiple_locations?" => true,

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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

@ -1,7 +1,6 @@
class Form::Lettings::Pages::RentType < ::Form::Page class Form::Lettings::Pages::RentType < ::Form::Page
def initialize(_id, hsh, subsection) def initialize(_id, hsh, subsection)
super("rent_type", hsh, subsection) super("rent_type", hsh, subsection)
@header = ""
@derived = true @derived = true
end end

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

@ -1,7 +1,6 @@
class Form::Lettings::Pages::Scheme < ::Form::Page class Form::Lettings::Pages::Scheme < ::Form::Page
def initialize(_id, hsh, subsection) def initialize(_id, hsh, subsection)
super("scheme", hsh, subsection) super("scheme", hsh, subsection)
@header = ""
@depends_on = [{ @depends_on = [{
"needstype" => 2, "needstype" => 2,
}] }]

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"
@header = ""
@subsection = subsection @subsection = subsection
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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ {

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ {

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ {

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ "ownershipsch" => 1 }, { "ownershipsch" => 1 },

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ {

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
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @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
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @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
@header = ""
@subsection = subsection @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
@header = ""
@subsection = subsection @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_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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ {

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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"
@header = ""
@subsection = subsection @subsection = subsection
end end

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
@header = ""
@subsection = subsection @subsection = subsection
@depends_on = [ @depends_on = [
{ {

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"
@header = ""
@subsection = subsection @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"
@header = ""
@subsection = subsection @subsection = subsection
end end

2
spec/models/form/common/pages/created_by_spec.rb

@ -22,7 +22,7 @@ RSpec.describe Form::Common::Pages::CreatedBy, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/common/pages/organisation_spec.rb

@ -22,7 +22,7 @@ RSpec.describe Form::Common::Pages::Organisation, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/created_by_spec.rb

@ -42,7 +42,7 @@ RSpec.describe Form::Lettings::Pages::CreatedBy, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/location_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::Location, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/managing_organisation_spec.rb

@ -21,7 +21,7 @@ RSpec.describe Form::Lettings::Pages::ManagingOrganisation, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/needs_type_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::NeedsType, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/property_reference_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::PropertyReference, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/renewal_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::Renewal, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/rent_type_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::RentType, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/scheme_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::Scheme, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/stock_owner_spec.rb

@ -21,7 +21,7 @@ RSpec.describe Form::Lettings::Pages::StockOwner, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/lettings/pages/tenant_code_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::TenantCode, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/age1_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Age1, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/age2_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Age2, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/armed_forces_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::ArmedForces, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/armed_forces_spouse_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::ArmedForcesSpouse, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/buyer1_ethnic_background_arab_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Buyer1EthnicBackgroundArab, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

2
spec/models/form/sales/pages/buyer1_ethnic_background_asian_spec.rb

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Buyer1EthnicBackgroundAsian, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("") expect(page.header).to be_nil
end end
it "has the correct description" do it "has the correct description" do

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save