Browse Source

Remove redundant page assignement from questions

pull/1166/head
Kat 3 years ago
parent
commit
e2bc4b4bbf
  1. 1
      app/models/form/common/questions/created_by_id.rb
  2. 1
      app/models/form/common/questions/owning_organisation_id.rb
  3. 1
      app/models/form/lettings/questions/created_by_id.rb
  4. 1
      app/models/form/lettings/questions/irproduct_other.rb
  5. 1
      app/models/form/lettings/questions/managing_organisation.rb
  6. 1
      app/models/form/lettings/questions/needs_type.rb
  7. 1
      app/models/form/lettings/questions/property_reference.rb
  8. 1
      app/models/form/lettings/questions/renewal.rb
  9. 1
      app/models/form/lettings/questions/rent_type.rb
  10. 1
      app/models/form/lettings/questions/stock_owner.rb
  11. 1
      app/models/form/lettings/questions/tenancy_start_date.rb
  12. 1
      app/models/form/lettings/questions/tenant_code.rb
  13. 1
      app/models/form/sales/questions/age1.rb
  14. 1
      app/models/form/sales/questions/age2.rb
  15. 1
      app/models/form/sales/questions/armed_forces.rb
  16. 1
      app/models/form/sales/questions/armed_forces_spouse.rb
  17. 1
      app/models/form/sales/questions/buyer1_age_known.rb
  18. 1
      app/models/form/sales/questions/buyer1_ethnic_background_arab.rb
  19. 1
      app/models/form/sales/questions/buyer1_ethnic_background_asian.rb
  20. 1
      app/models/form/sales/questions/buyer1_ethnic_background_black.rb
  21. 1
      app/models/form/sales/questions/buyer1_ethnic_background_mixed.rb
  22. 1
      app/models/form/sales/questions/buyer1_ethnic_background_white.rb
  23. 1
      app/models/form/sales/questions/buyer1_ethnic_group.rb
  24. 1
      app/models/form/sales/questions/buyer1_income.rb
  25. 1
      app/models/form/sales/questions/buyer1_income_known.rb
  26. 1
      app/models/form/sales/questions/buyer1_income_value_check.rb
  27. 1
      app/models/form/sales/questions/buyer1_live_in_property.rb
  28. 1
      app/models/form/sales/questions/buyer1_mortgage.rb
  29. 1
      app/models/form/sales/questions/buyer1_previous_tenure.rb
  30. 1
      app/models/form/sales/questions/buyer1_working_situation.rb
  31. 1
      app/models/form/sales/questions/buyer2_age_known.rb
  32. 1
      app/models/form/sales/questions/buyer2_income.rb
  33. 1
      app/models/form/sales/questions/buyer2_income_known.rb
  34. 1
      app/models/form/sales/questions/buyer2_live_in_property.rb
  35. 1
      app/models/form/sales/questions/buyer2_mortgage.rb
  36. 1
      app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb
  37. 1
      app/models/form/sales/questions/buyer2_working_situation.rb
  38. 1
      app/models/form/sales/questions/buyer_company.rb
  39. 1
      app/models/form/sales/questions/buyer_interview.rb
  40. 1
      app/models/form/sales/questions/buyer_live.rb
  41. 1
      app/models/form/sales/questions/buyer_previous.rb
  42. 1
      app/models/form/sales/questions/buyer_still_serving.rb
  43. 1
      app/models/form/sales/questions/buyers_organisations.rb
  44. 1
      app/models/form/sales/questions/deposit_amount.rb
  45. 1
      app/models/form/sales/questions/deposit_discount.rb
  46. 1
      app/models/form/sales/questions/deposit_value_check.rb
  47. 1
      app/models/form/sales/questions/discount.rb
  48. 1
      app/models/form/sales/questions/discounted_ownership_type.rb
  49. 1
      app/models/form/sales/questions/equity.rb
  50. 1
      app/models/form/sales/questions/exchange_date.rb
  51. 1
      app/models/form/sales/questions/gender_identity1.rb
  52. 1
      app/models/form/sales/questions/gender_identity2.rb
  53. 1
      app/models/form/sales/questions/grant.rb
  54. 1
      app/models/form/sales/questions/handover_date.rb
  55. 1
      app/models/form/sales/questions/household_disability.rb
  56. 1
      app/models/form/sales/questions/household_wheelchair.rb
  57. 2
      app/models/form/sales/questions/household_wheelchair_check.rb
  58. 1
      app/models/form/sales/questions/housing_benefits.rb
  59. 1
      app/models/form/sales/questions/joint_purchase.rb
  60. 1
      app/models/form/sales/questions/la_nominations.rb
  61. 1
      app/models/form/sales/questions/leasehold_charges.rb
  62. 1
      app/models/form/sales/questions/leasehold_charges_known.rb
  63. 1
      app/models/form/sales/questions/living_before_purchase.rb
  64. 1
      app/models/form/sales/questions/monthly_rent.rb
  65. 1
      app/models/form/sales/questions/mortgage_amount.rb
  66. 1
      app/models/form/sales/questions/mortgage_length.rb
  67. 1
      app/models/form/sales/questions/mortgage_value_check.rb
  68. 1
      app/models/form/sales/questions/mortgageused.rb
  69. 1
      app/models/form/sales/questions/nationality1.rb
  70. 1
      app/models/form/sales/questions/number_joint_buyers.rb
  71. 1
      app/models/form/sales/questions/number_of_others_in_property.rb
  72. 1
      app/models/form/sales/questions/other_nationality1.rb
  73. 1
      app/models/form/sales/questions/other_ownership_type.rb
  74. 1
      app/models/form/sales/questions/outright_ownership_type.rb
  75. 1
      app/models/form/sales/questions/ownership_scheme.rb
  76. 1
      app/models/form/sales/questions/person_age.rb
  77. 1
      app/models/form/sales/questions/person_age_known.rb
  78. 1
      app/models/form/sales/questions/person_gender_identity.rb
  79. 1
      app/models/form/sales/questions/person_known.rb
  80. 1
      app/models/form/sales/questions/person_relationship_to_buyer_1.rb
  81. 1
      app/models/form/sales/questions/person_working_situation.rb
  82. 1
      app/models/form/sales/questions/previous_bedrooms.rb
  83. 1
      app/models/form/sales/questions/previous_la_known.rb
  84. 1
      app/models/form/sales/questions/previous_postcode.rb
  85. 1
      app/models/form/sales/questions/previous_postcode_known.rb
  86. 1
      app/models/form/sales/questions/prevloc.rb
  87. 1
      app/models/form/sales/questions/prevown.rb
  88. 1
      app/models/form/sales/questions/privacy_notice.rb
  89. 1
      app/models/form/sales/questions/property_building_type.rb
  90. 1
      app/models/form/sales/questions/property_local_authority.rb
  91. 1
      app/models/form/sales/questions/property_local_authority_known.rb
  92. 1
      app/models/form/sales/questions/property_number_of_bedrooms.rb
  93. 1
      app/models/form/sales/questions/property_unit_type.rb
  94. 1
      app/models/form/sales/questions/property_wheelchair_accessible.rb
  95. 1
      app/models/form/sales/questions/purchase_price.rb
  96. 1
      app/models/form/sales/questions/purchaser_code.rb
  97. 1
      app/models/form/sales/questions/resale.rb
  98. 1
      app/models/form/sales/questions/sale_date.rb
  99. 1
      app/models/form/sales/questions/savings.rb
  100. 1
      app/models/form/sales/questions/savings_nk.rb
  101. Some files were not shown because too many files have changed in this diff Show More

1
app/models/form/common/questions/created_by_id.rb

@ -6,7 +6,6 @@ class Form::Common::Questions::CreatedById < ::Form::Question
@header = "Which user are you creating this log for?" @header = "Which user are you creating this log for?"
@hint_text = "" @hint_text = ""
@type = "select" @type = "select"
@page = page
end end
def answer_options def answer_options

1
app/models/form/common/questions/owning_organisation_id.rb

@ -6,7 +6,6 @@ class Form::Common::Questions::OwningOrganisationId < ::Form::Question
@header = "Which organisation owns this log?" @header = "Which organisation owns this log?"
@hint_text = "" @hint_text = ""
@type = "select" @type = "select"
@page = page
end end
def answer_options def answer_options

1
app/models/form/lettings/questions/created_by_id.rb

@ -6,7 +6,6 @@ class Form::Lettings::Questions::CreatedById < ::Form::Question
@header = "Which user are you creating this log for?" @header = "Which user are you creating this log for?"
@hint_text = "" @hint_text = ""
@type = "select" @type = "select"
@page = page
end end
def answer_options def answer_options

1
app/models/form/lettings/questions/irproduct_other.rb

@ -5,6 +5,5 @@ class Form::Lettings::Questions::IrproductOther < ::Form::Question
@check_answer_label = "Product name" @check_answer_label = "Product name"
@header = "Name of rent product" @header = "Name of rent product"
@type = "text" @type = "text"
@page = page
end end
end end

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

@ -8,7 +8,6 @@ class Form::Lettings::Questions::ManagingOrganisation < ::Form::Question
@header = "Which organisation manages this letting?" @header = "Which organisation manages this letting?"
@type = "select" @type = "select"
@answer_options = answer_options @answer_options = answer_options
@page = page
end end
def answer_options def answer_options

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

@ -7,7 +7,6 @@ class Form::Lettings::Questions::NeedsType < ::Form::Question
@hint_text = "General needs housing includes both self-contained and shared housing without support or specific adaptations. Supported housing can include direct access hostels, group homes, residential care and nursing homes." @hint_text = "General needs housing includes both self-contained and shared housing without support or specific adaptations. Supported housing can include direct access hostels, group homes, residential care and nursing homes."
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,6 +7,5 @@ class Form::Lettings::Questions::PropertyReference < ::Form::Question
@hint_text = "This is how you usually refer to this property on your own systems." @hint_text = "This is how you usually refer to this property on your own systems."
@type = "text" @type = "text"
@width = 10 @width = 10
@page = page
end end
end end

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

@ -7,7 +7,6 @@ class Form::Lettings::Questions::Renewal < ::Form::Question
@hint_text = "" @hint_text = ""
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -8,7 +8,6 @@ class Form::Lettings::Questions::RentType < ::Form::Question
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { "irproduct_other" => [5] } @conditional_for = { "irproduct_other" => [5] }
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,7 +7,6 @@ class Form::Lettings::Questions::StockOwner < ::Form::Question
@check_answer_label = "Stock owner" @check_answer_label = "Stock owner"
@header = "Which organisation owns this property?" @header = "Which organisation owns this property?"
@type = "select" @type = "select"
@page = page
end end
def answer_options def answer_options

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

@ -6,6 +6,5 @@ class Form::Lettings::Questions::TenancyStartDate < ::Form::Question
@header = "What is the tenancy start date?" @header = "What is the tenancy start date?"
@type = "date" @type = "date"
@unresolved_hint_text = "Some scheme details have changed, and now this log needs updating. Check that the tenancy start date is correct." @unresolved_hint_text = "Some scheme details have changed, and now this log needs updating. Check that the tenancy start date is correct."
@page = page
end end
end end

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

@ -7,6 +7,5 @@ class Form::Lettings::Questions::TenantCode < ::Form::Question
@hint_text = "This is how you usually refer to this tenancy on your own systems." @hint_text = "This is how you usually refer to this tenancy on your own systems."
@type = "text" @type = "text"
@width = 10 @width = 10
@page = page
end end
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::Age1 < ::Form::Question
@check_answer_label = "Lead buyer’s age" @check_answer_label = "Lead buyer’s age"
@header = "Age" @header = "Age"
@type = "numeric" @type = "numeric"
@page = page
@width = 2 @width = 2
@inferred_check_answers_value = { @inferred_check_answers_value = {
"condition" => { "condition" => {

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::Age2 < ::Form::Question
@check_answer_label = "Buyer 2’s age" @check_answer_label = "Buyer 2’s age"
@header = "Age" @header = "Age"
@type = "numeric" @type = "numeric"
@page = page
@width = 2 @width = 2
@inferred_check_answers_value = { @inferred_check_answers_value = {
"condition" => { "age2_known" => 1 }, "condition" => { "age2_known" => 1 },

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::ArmedForces < ::Form::Question
@type = "radio" @type = "radio"
@hint_text = "A regular is somebody who has served in the Royal Navy, the Royal Marines, the Royal Airforce or Army full time and does not include reserve forces" @hint_text = "A regular is somebody who has served in the Royal Navy, the Royal Marines, the Royal Airforce or Army full time and does not include reserve forces"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::ArmedForcesSpouse < ::Form::Question
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_age_known.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question
@header = "Do you know buyer 1’s age?" @header = "Do you know buyer 1’s age?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@conditional_for = { @conditional_for = {
"age1" => [0], "age1" => [0],

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundArab < ::Form::Question
@header = "Which of the following best describes the buyer 1’s Arab background?" @header = "Which of the following best describes the buyer 1’s Arab background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundAsian < ::Form::Question
@header = "Which of the following best describes the buyer 1’s Asian or Asian British background?" @header = "Which of the following best describes the buyer 1’s Asian or Asian British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundBlack < ::Form::Question
@header = "Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?" @header = "Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundMixed < ::Form::Question
@header = "Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?" @header = "Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundWhite < ::Form::Question
@header = "Which of the following best describes the buyer 1’s White background?" @header = "Which of the following best describes the buyer 1’s White background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1EthnicGroup < ::Form::Question
@header = "What is buyer 1’s ethnic group?" @header = "What is buyer 1’s ethnic group?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@inferred_check_answers_value = { @inferred_check_answers_value = {
"condition" => { "condition" => {

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::Buyer1Income < ::Form::Question
@check_answer_label = "Buyer 1’s gross annual income" @check_answer_label = "Buyer 1’s gross annual income"
@header = "Buyer 1’s gross annual income" @header = "Buyer 1’s gross annual income"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@max = 999_999 @max = 999_999
@step = 1 @step = 1

1
app/models/form/sales/questions/buyer1_income_known.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1IncomeKnown < ::Form::Question
@header = "Do you know buyer 1’s annual income?" @header = "Do you know buyer 1’s annual income?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@guidance_position = GuidancePosition::BOTTOM @guidance_position = GuidancePosition::BOTTOM
@guidance_partial = "what_counts_as_income_sales" @guidance_partial = "what_counts_as_income_sales"
@conditional_for = { @conditional_for = {

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

@ -20,6 +20,5 @@ class Form::Sales::Questions::Buyer1IncomeValueCheck < ::Form::Question
], ],
} }
@check_answers_card_number = 1 @check_answers_card_number = 1
@page = page
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1LiveInProperty < ::Form::Question
@header = "Will buyer 1 live in the property?" @header = "Will buyer 1 live in the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1Mortgage < ::Form::Question
@header = "Was buyer 1's income used for a mortgage application?" @header = "Was buyer 1's income used for a mortgage application?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1PreviousTenure < ::Form::Question
@header = "What was buyer 1's previous tenure?" @header = "What was buyer 1's previous tenure?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer1WorkingSituation < ::Form::Question
@header = "Which of these best describes buyer 1's working situation?" @header = "Which of these best describes buyer 1's working situation?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

1
app/models/form/sales/questions/buyer2_age_known.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer2AgeKnown < ::Form::Question
@header = "Do you know buyer 2’s age?" @header = "Do you know buyer 2’s age?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@conditional_for = { @conditional_for = {
"age2" => [0], "age2" => [0],
} }

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::Buyer2Income < ::Form::Question
@check_answer_label = "Buyer 2’s gross annual income" @check_answer_label = "Buyer 2’s gross annual income"
@header = "Buyer 2’s gross annual income" @header = "Buyer 2’s gross annual income"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@step = 1 @step = 1
@width = 5 @width = 5

1
app/models/form/sales/questions/buyer2_income_known.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer2IncomeKnown < ::Form::Question
@header = "Do you know buyer 2’s annual income?" @header = "Do you know buyer 2’s annual income?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@guidance_position = GuidancePosition::BOTTOM @guidance_position = GuidancePosition::BOTTOM
@guidance_partial = "what_counts_as_income_sales" @guidance_partial = "what_counts_as_income_sales"
@conditional_for = { @conditional_for = {

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::Buyer2LiveInProperty < ::Form::Question
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@check_answers_card_number = 2 @check_answers_card_number = 2
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer2Mortgage < ::Form::Question
@header = "Was buyer 2's income used for a mortgage application?" @header = "Was buyer 2's income used for a mortgage application?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@check_answers_card_number = 2 @check_answers_card_number = 2
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
@header = "What is buyer 2's relationship to buyer 1?" @header = "What is buyer 2's relationship to buyer 1?"
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
@header = "Which of these best describes buyer 2's working situation?" @header = "Which of these best describes buyer 2's working situation?"
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
end end

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::BuyerCompany < ::Form::Question
@hint_text = "" @hint_text = ""
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::BuyerInterview < ::Form::Question
@header = "Was the buyer interviewed for any of the answers you will provide on this log?" @header = "Was the buyer interviewed for any of the answers you will provide on this log?"
@type = "radio" @type = "radio"
@hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person" @hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person"
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::BuyerLive < ::Form::Question
@header = "Will the buyers live in the property?" @header = "Will the buyers live in the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::BuyerPrevious < ::Form::Question
@header = "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?" @header = "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::BuyerStillServing < ::Form::Question
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::BuyersOrganisations < ::Form::Question
@header = "What organisations were the buyers registered with?" @header = "What organisations were the buyers registered with?"
@type = "checkbox" @type = "checkbox"
@hint_text = "Select all that apply" @hint_text = "Select all that apply"
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

1
app/models/form/sales/questions/deposit_amount.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::DepositAmount < ::Form::Question
@check_answer_label = "Cash deposit" @check_answer_label = "Cash deposit"
@header = "How much cash deposit was paid on the property?" @header = "How much cash deposit was paid on the property?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

1
app/models/form/sales/questions/deposit_discount.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::DepositDiscount < ::Form::Question
@check_answer_label = "Cash discount through SocialHomeBuy" @check_answer_label = "Cash discount through SocialHomeBuy"
@header = "How much cash discount was given through Social HomeBuy?" @header = "How much cash discount was given through Social HomeBuy?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

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

@ -20,6 +20,5 @@ class Form::Sales::Questions::DepositValueCheck < ::Form::Question
], ],
} }
@check_answers_card_number = 0 @check_answers_card_number = 0
@page = page
end end
end end

1
app/models/form/sales/questions/discount.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::Discount < ::Form::Question
@check_answer_label = "Percentage discount" @check_answer_label = "Percentage discount"
@header = "What was the percentage discount?" @header = "What was the percentage discount?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@max = 100 @max = 100
@width = 5 @width = 5

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::DiscountedOwnershipType < ::Form::Question
@header = "What is the type of discounted ownership sale?" @header = "What is the type of discounted ownership sale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/equity.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::Equity < ::Form::Question
@check_answer_label = "Initial percentage equity stake" @check_answer_label = "Initial percentage equity stake"
@header = "What was the initial percentage equity stake purchased?" @header = "What was the initial percentage equity stake purchased?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@max = 100 @max = 100
@width = 5 @width = 5

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

@ -5,6 +5,5 @@ class Form::Sales::Questions::ExchangeDate < ::Form::Question
@check_answer_label = "Exchange of contracts date" @check_answer_label = "Exchange of contracts date"
@header = "What is the exchange of contracts date?" @header = "What is the exchange of contracts date?"
@type = "date" @type = "date"
@page = page
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::GenderIdentity1 < ::Form::Question
@header = "Which of these best describes buyer 1’s gender identity?" @header = "Which of these best describes buyer 1’s gender identity?"
@type = "radio" @type = "radio"
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 1 @check_answers_card_number = 1
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::GenderIdentity2 < ::Form::Question
@check_answer_label = "Buyer 2’s gender identity" @check_answer_label = "Buyer 2’s gender identity"
@header = "Which of these best describes buyer 2’s gender identity?" @header = "Which of these best describes buyer 2’s gender identity?"
@type = "radio" @type = "radio"
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
end end

1
app/models/form/sales/questions/grant.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::Grant < ::Form::Question
@check_answer_label = "Amount of any loan, grant or subsidy" @check_answer_label = "Amount of any loan, grant or subsidy"
@header = "What was the amount of any loan, grant, discount or subsidy given?" @header = "What was the amount of any loan, grant, discount or subsidy given?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::HandoverDate < ::Form::Question
@check_answer_label = "Practical completion or handover date" @check_answer_label = "Practical completion or handover date"
@header = "What is the practical completion or handover date?" @header = "What is the practical completion or handover date?"
@type = "date" @type = "date"
@page = page
@hint_text = "This is the date on which the building contractor hands over responsibility for the completed property to the private registered provider (PRP)" @hint_text = "This is the date on which the building contractor hands over responsibility for the completed property to the private registered provider (PRP)"
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::HouseholdDisability < ::Form::Question
@check_answer_label = "Does anyone in the household have a disability?" @check_answer_label = "Does anyone in the household have a disability?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "This includes any long-term health condition that has an impact on the person's day-to-day life" @hint_text = "This includes any long-term health condition that has an impact on the person's day-to-day life"
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::HouseholdWheelchair < ::Form::Question
@header = "Does anyone in the household use a wheelchair?" @header = "Does anyone in the household use a wheelchair?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "This can be inside or outside the home" @hint_text = "This can be inside or outside the home"
end end

2
app/models/form/sales/questions/household_wheelchair_check.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::HouseholdWheelchairCheck < ::Form::Question
@check_answer_label = "Does anyone in the household use a wheelchair?" @check_answer_label = "Does anyone in the household use a wheelchair?"
@header = "Are you sure? You said previously that somebody in household uses a wheelchair" @header = "Are you sure? You said previously that somebody in household uses a wheelchair"
@type = "interruption_screen" @type = "interruption_screen"
@page = page
@answer_options = { @answer_options = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },
"1" => { "value" => "No" }, "1" => { "value" => "No" },
@ -20,6 +19,5 @@ class Form::Sales::Questions::HouseholdWheelchairCheck < ::Form::Question
}, },
], ],
} }
@page = page
end end
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::HousingBenefits < ::Form::Question
@check_answer_label = "Housing-related benefits buyer received before buying this property" @check_answer_label = "Housing-related benefits buyer received before buying this property"
@header = "Was the buyer receiving any of these housing-related benefits immediately before buying this property?" @header = "Was the buyer receiving any of these housing-related benefits immediately before buying this property?"
@type = "radio" @type = "radio"
@page = page
@hint_text = "" @hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::JointPurchase < ::Form::Question
@hint_text = "" @hint_text = ""
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::LaNominations < ::Form::Question
@header = "Was the household rehoused under a 'local authority nominations agreement'?" @header = "Was the household rehoused under a 'local authority nominations agreement'?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "A local authority nominations agreement is a written agreement between a local authority and private registered provider (PRP) that some or all of its sales vacancies are offered to local authorities for rehousing" @hint_text = "A local authority nominations agreement is a written agreement between a local authority and private registered provider (PRP) that some or all of its sales vacancies are offered to local authorities for rehousing"
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::LeaseholdCharges < ::Form::Question
@check_answer_label = "Monthly leasehold charges" @check_answer_label = "Monthly leasehold charges"
@header = "Enter the total monthly charge" @header = "Enter the total monthly charge"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

1
app/models/form/sales/questions/leasehold_charges_known.rb

@ -7,7 +7,6 @@ class Form::Sales::Questions::LeaseholdChargesKnown < ::Form::Question
@hint_text = "For example, service and management charges" @hint_text = "For example, service and management charges"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@conditional_for = { @conditional_for = {
"mscharge" => [1], "mscharge" => [1],
} }

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::LivingBeforePurchase < ::Form::Question
@header = "How long did the buyer(s) live in the property before purchase?" @header = "How long did the buyer(s) live in the property before purchase?"
@hint_text = "You should round this up to the nearest year. If the buyers haven't been living in the property, enter '0'" @hint_text = "You should round this up to the nearest year. If the buyers haven't been living in the property, enter '0'"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@max = 80 @max = 80
@step = 1 @step = 1

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::MonthlyRent < ::Form::Question
@check_answer_label = "Monthly rent" @check_answer_label = "Monthly rent"
@header = "What is the basic monthly rent?" @header = "What is the basic monthly rent?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::MortgageAmount < ::Form::Question
@check_answer_label = "Mortgage amount" @check_answer_label = "Mortgage amount"
@header = "What is the mortgage amount?" @header = "What is the mortgage amount?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::MortgageLength < ::Form::Question
@check_answer_label = "Length of mortgage" @check_answer_label = "Length of mortgage"
@header = "What is the length of the mortgage?" @header = "What is the length of the mortgage?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@suffix = " years" @suffix = " years"

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

@ -20,6 +20,5 @@ class Form::Sales::Questions::MortgageValueCheck < ::Form::Question
], ],
} }
@check_answers_card_number = 1 @check_answers_card_number = 1
@page = page
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Mortgageused < ::Form::Question
@header = "Was a mortgage used for the purchase of this property?" @header = "Was a mortgage used for the purchase of this property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Nationality1 < ::Form::Question
@header = "What is buyer 1’s nationality?" @header = "What is buyer 1’s nationality?"
@type = "radio" @type = "radio"
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {
"othernational" => [12], "othernational" => [12],

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

@ -7,7 +7,6 @@ class Form::Sales::Questions::NumberJointBuyers < ::Form::Question
@hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person" @hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::NumberOfOthersInProperty < ::Form::Question
@header = "Besides the buyers, how many other people live in the property?" @header = "Besides the buyers, how many other people live in the property?"
@type = "numeric" @type = "numeric"
@hint_text = "You can provide details for a maximum of 4 other people." @hint_text = "You can provide details for a maximum of 4 other people."
@page = page
@width = 2 @width = 2
end end
end end

1
app/models/form/sales/questions/other_nationality1.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::OtherNationality1 < ::Form::Question
@check_answer_label = "Buyer 1’s nationality" @check_answer_label = "Buyer 1’s nationality"
@header = "Nationality" @header = "Nationality"
@type = "text" @type = "text"
@page = page
@check_answers_card_number = 1 @check_answers_card_number = 1
end end
end end

1
app/models/form/sales/questions/other_ownership_type.rb

@ -6,6 +6,5 @@ class Form::Sales::Questions::OtherOwnershipType < ::Form::Question
@header = "What type of sale is it?" @header = "What type of sale is it?"
@type = "text" @type = "text"
@width = 10 @width = 10
@page = page
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::OutrightOwnershipType < ::Form::Question
@header = "What is the type of outright sale?" @header = "What is the type of outright sale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@conditional_for = { @conditional_for = {
"othtype" => [12], "othtype" => [12],
} }

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::OwnershipScheme < ::Form::Question
@header = "Was this purchase made through an ownership scheme?" @header = "Was this purchase made through an ownership scheme?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -4,7 +4,6 @@ class Form::Sales::Questions::PersonAge < Form::Sales::Questions::Person
@check_answer_label = "Person #{person_display_number}’s age" @check_answer_label = "Person #{person_display_number}’s age"
@header = "Age" @header = "Age"
@type = "numeric" @type = "numeric"
@page = page
@width = 3 @width = 3
@inferred_check_answers_value = { @inferred_check_answers_value = {
"condition" => { field_for_person("age", "_known") => 1 }, "condition" => { field_for_person("age", "_known") => 1 },

1
app/models/form/sales/questions/person_age_known.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::PersonAgeKnown < ::Form::Sales::Questions::Person
@header = "Do you know person #{person_display_number}’s age?" @header = "Do you know person #{person_display_number}’s age?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
@conditional_for = { @conditional_for = {
field_for_person("age") => [0], field_for_person("age") => [0],

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

@ -4,7 +4,6 @@ class Form::Sales::Questions::PersonGenderIdentity < ::Form::Sales::Questions::P
@check_answer_label = "Person #{person_display_number}’s gender identity" @check_answer_label = "Person #{person_display_number}’s gender identity"
@header = "Which of these best describes Person #{person_display_number}’s gender identity?" @header = "Which of these best describes Person #{person_display_number}’s gender identity?"
@type = "radio" @type = "radio"
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = person_index @check_answers_card_number = person_index
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::PersonKnown < Form::Sales::Questions::Person
@header = "Do you know the details for person #{person_display_number}?" @header = "Do you know the details for person #{person_display_number}?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
@hidden_in_check_answers = { @hidden_in_check_answers = {
"depends_on" => [ "depends_on" => [

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::PersonRelationshipToBuyer1 < ::Form::Sales::Questi
@header = "What is Person #{person_display_number}’s relationship to Buyer 1?" @header = "What is Person #{person_display_number}’s relationship to Buyer 1?"
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = person_index @check_answers_card_number = person_index
end end

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

@ -4,7 +4,6 @@ class Form::Sales::Questions::PersonWorkingSituation < ::Form::Sales::Questions:
@check_answer_label = "Person #{person_display_number}’s working situation" @check_answer_label = "Person #{person_display_number}’s working situation"
@header = "Which of these best describes Person #{person_display_number}’s working situation?" @header = "Which of these best describes Person #{person_display_number}’s working situation?"
@type = "radio" @type = "radio"
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = person_index @check_answers_card_number = person_index
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::PreviousBedrooms < ::Form::Question
@check_answer_label = "Number of bedrooms in previous property" @check_answer_label = "Number of bedrooms in previous property"
@header = "How many bedrooms did the property have?" @header = "How many bedrooms did the property have?"
@type = "numeric" @type = "numeric"
@page = page
@width = 5 @width = 5
@min = 0 @min = 0
@hint_text = "For bedsits enter 1" @hint_text = "For bedsits enter 1"

1
app/models/form/sales/questions/previous_la_known.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::PreviousLaKnown < ::Form::Question
@header = "Do you know the local authority of buyer 1’s last settled accommodation?" @header = "Do you know the local authority of buyer 1’s last settled accommodation?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "This is also known as the household’s 'last settled home'" @hint_text = "This is also known as the household’s 'last settled home'"
@hidden_in_check_answers = { @hidden_in_check_answers = {
"depends_on" => [ "depends_on" => [

1
app/models/form/sales/questions/previous_postcode.rb

@ -4,7 +4,6 @@ class Form::Sales::Questions::PreviousPostcode < ::Form::Question
@id = "ppostcode_full" @id = "ppostcode_full"
@check_answer_label = "Postcode of buyer 1’s last settled accommodation" @check_answer_label = "Postcode of buyer 1’s last settled accommodation"
@header = "Postcode" @header = "Postcode"
@page = page
@type = "text" @type = "text"
@width = 5 @width = 5
@hint_text = "" @hint_text = ""

1
app/models/form/sales/questions/previous_postcode_known.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::PreviousPostcodeKnown < ::Form::Question
@header = "Do you know the postcode of buyer 1’s last settled accommodation?" @header = "Do you know the postcode of buyer 1’s last settled accommodation?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@conditional_for = { @conditional_for = {
"ppostcode_full" => [0], "ppostcode_full" => [0],
} }

1
app/models/form/sales/questions/prevloc.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Prevloc < ::Form::Question
@header = "Select a local authority" @header = "Select a local authority"
@type = "select" @type = "select"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
@inferred_check_answers_value = { @inferred_check_answers_value = {
"condition" => { "condition" => {

1
app/models/form/sales/questions/prevown.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Prevown < ::Form::Question
@header = "Has the buyer previously owned a property?" @header = "Has the buyer previously owned a property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::PrivacyNotice < ::Form::Question
@header = "Declaration" @header = "Declaration"
@type = "checkbox" @type = "checkbox"
@hint_text = "" @hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@guidance_position = GuidancePosition::TOP @guidance_position = GuidancePosition::TOP
@guidance_partial = "privacy_notice_buyer" @guidance_partial = "privacy_notice_buyer"

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::PropertyBuildingType < ::Form::Question
@header = "What type of building is the property?" @header = "What type of building is the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::PropertyLocalAuthority < ::Form::Question
@header = "What is the local authority of the property?" @header = "What is the local authority of the property?"
@type = "select" @type = "select"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/property_local_authority_known.rb

@ -14,7 +14,6 @@ class Form::Sales::Questions::PropertyLocalAuthorityKnown < ::Form::Question
}, },
], ],
} }
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -7,6 +7,5 @@ class Form::Sales::Questions::PropertyNumberOfBedrooms < ::Form::Question
@hint_text = "A bedsit has 1 bedroom" @hint_text = "A bedsit has 1 bedroom"
@type = "text" @type = "text"
@width = 10 @width = 10
@page = page
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::PropertyUnitType < ::Form::Question
@header = "What type of unit is the property?" @header = "What type of unit is the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::PropertyWheelchairAccessible < ::Form::Question
@header = "Is the property build or adapted to wheelchair-user standards?" @header = "Is the property build or adapted to wheelchair-user standards?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::PurchasePrice < ::Form::Question
@check_answer_label = "Purchase price" @check_answer_label = "Purchase price"
@header = "What is the full purchase price?" @header = "What is the full purchase price?"
@type = "numeric" @type = "numeric"
@page = page
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"

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

@ -7,6 +7,5 @@ class Form::Sales::Questions::PurchaserCode < ::Form::Question
@hint_text = "This is how you usually refer to the purchaser on your own systems." @hint_text = "This is how you usually refer to the purchaser on your own systems."
@type = "text" @type = "text"
@width = 10 @width = 10
@page = page
end end
end end

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

@ -6,7 +6,6 @@ class Form::Sales::Questions::Resale < ::Form::Question
@header = "Is this a resale?" @header = "Is this a resale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "If the social landlord has previously sold the property to another buyer and is now reselling the property, select 'yes'. If this is the first time the property has been sold, select 'no'." @hint_text = "If the social landlord has previously sold the property to another buyer and is now reselling the property, select 'yes'. If this is the first time the property has been sold, select 'no'."
end end

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

@ -5,6 +5,5 @@ class Form::Sales::Questions::SaleDate < ::Form::Question
@check_answer_label = "Sale completion date" @check_answer_label = "Sale completion date"
@header = "What is the sale completion date?" @header = "What is the sale completion date?"
@type = "date" @type = "date"
@page = page
end end
end end

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

@ -5,7 +5,6 @@ class Form::Sales::Questions::Savings < ::Form::Question
@check_answer_label = "Buyer’s total savings (to nearest £10) before any deposit paid" @check_answer_label = "Buyer’s total savings (to nearest £10) before any deposit paid"
@header = "Enter their total savings to the nearest £10" @header = "Enter their total savings to the nearest £10"
@type = "numeric" @type = "numeric"
@page = page
@width = 5 @width = 5
@prefix = "£" @prefix = "£"
@step = 1 @step = 1

1
app/models/form/sales/questions/savings_nk.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::SavingsNk < ::Form::Question
@header = "Do you know how much the buyer had in savings before they paid any deposit for the property?" @header = "Do you know how much the buyer had in savings before they paid any deposit for the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page
@hint_text = "" @hint_text = ""
@conditional_for = { @conditional_for = {
"savings" => [0], "savings" => [0],

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

Loading…
Cancel
Save