@ -3,7 +3,6 @@ class Form::Common::Pages::CreatedBy < ::Form::Page
super
@id = "created_by"
@header = ""
@description = ""
@subsection = subsection
end
@ -3,7 +3,6 @@ class Form::Common::Pages::Organisation < ::Form::Page
@id = "organisation"
@ -3,7 +3,6 @@ class Form::Lettings::Pages::CreatedBy < ::Form::Page
@ -2,7 +2,6 @@ class Form::Lettings::Pages::Location < ::Form::Page
def initialize(_id, hsh, subsection)
super("location", hsh, subsection)
@depends_on = [{
"needstype" => 2,
"scheme_has_multiple_locations?" => true,
@ -3,7 +3,6 @@ class Form::Lettings::Pages::ManagingOrganisation < ::Form::Page
@id = "managing_organisation"
@ -3,7 +3,6 @@ class Form::Lettings::Pages::NeedsType < ::Form::Page
@id = "needs_type"
@ -3,7 +3,6 @@ class Form::Lettings::Pages::PropertyReference < ::Form::Page
@id = "property_reference"
@ -3,7 +3,6 @@ class Form::Lettings::Pages::Renewal < ::Form::Page
@id = "renewal"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::RentType < ::Form::Page
super("rent_type", hsh, subsection)
@derived = true
@ -2,7 +2,6 @@ class Form::Lettings::Pages::Scheme < ::Form::Page
super("scheme", hsh, subsection)
}]
@ -3,7 +3,6 @@ class Form::Lettings::Pages::StockOwner < ::Form::Page
@id = "stock_owner"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::TenancyStartDate < ::Form::Page
def initialize(id, hsh, subsection)
@id = "tenancy_start_date"
@next_unresolved_page_id = "scheme"
@ -3,7 +3,6 @@ class Form::Lettings::Pages::TenantCode < ::Form::Page
@id = "tenant_code"
@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutDepositWithDiscount < ::Form::Page
@id = "about_deposit_with_discount"
@header = "About the deposit"
@depends_on = [{ "is_type_discount?" => true }]
@ -2,7 +2,6 @@ class Form::Sales::Pages::AboutDepositWithoutDiscount < ::Form::Page
@depends_on = [{ "is_type_discount?" => false }]
@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutPriceNotRtb < ::Form::Page
@id = "about_price_not_rtb"
@header = "About the price of the property"
"right_to_buy?" => false,
@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutPriceRtb < ::Form::Page
@id = "about_price_rtb"
"right_to_buy?" => true,
@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutPriceSharedOwnership < ::Form::Page
@id = "about_price_shared_ownership"
@ -3,7 +3,6 @@ class Form::Sales::Pages::AboutStaircase < ::Form::Page
@id = "about_staircasing"
@header = "About the staircasing transaction"
"staircase" => 1,
@ -3,7 +3,6 @@ class Form::Sales::Pages::Age1 < ::Form::Page
@id = "buyer_1_age"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Age2 < ::Form::Page
@id = "buyer_2_age"
"jointpur" => 1,
@ -3,7 +3,6 @@ class Form::Sales::Pages::ArmedForces < ::Form::Page
@id = "armed_forces"
@ -3,7 +3,6 @@ class Form::Sales::Pages::ArmedForcesSpouse < ::Form::Page
@id = "armed_forces_spouse"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundArab < ::Form::Page
@id = "buyer_1_ethnic_background_arab"
"ethnic_group" => 4,
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundAsian < ::Form::Page
@id = "buyer_1_ethnic_background_asian"
"ethnic_group" => 2,
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundBlack < ::Form::Page
@id = "buyer_1_ethnic_background_black"
"ethnic_group" => 3,
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundMixed < ::Form::Page
@id = "buyer_1_ethnic_background_mixed"
"ethnic_group" => 1,
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundWhite < ::Form::Page
@id = "buyer_1_ethnic_background_white"
"ethnic_group" => 0,
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1EthnicGroup < ::Form::Page
@id = "buyer_1_ethnic_group"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1Income < ::Form::Page
@id = "buyer_1_income"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
@depends_on = [
{
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1LiveInProperty < ::Form::Page
@id = "buyer_1_live_in_property"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1Mortgage < ::Form::Page
@id = "buyer_1_mortgage"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1PreviousTenure < ::Form::Page
@id = "buyer1_previous_tenure"
@header = "What was buyer 1's previous tenure?"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer1WorkingSituation < ::Form::Page
@id = "buyer_1_working_situation"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer2Income < ::Form::Page
@id = "buyer_2_income"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer2LiveInProperty < ::Form::Page
@id = "buyer_2_live_in_property"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer2Mortgage < ::Form::Page
@id = "buyer_2_mortgage"
@depends_on = [{ "jointpur" => 1 }]
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer2RelationshipToBuyer1 < ::Form::Page
@id = "buyer_2_relationship_to_buyer_1"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Buyer2WorkingSituation < ::Form::Page
@id = "buyer_2_working_situation"
@ -3,7 +3,6 @@ class Form::Sales::Pages::BuyerCompany < ::Form::Page
@id = "buyer_company"
"ownershipsch" => 3,
@ -3,7 +3,6 @@ class Form::Sales::Pages::BuyerInterview < ::Form::Page
@id = "buyer_interview"
@ -3,7 +3,6 @@ class Form::Sales::Pages::BuyerLive < ::Form::Page
@id = "buyer_live"
"companybuy" => 2,
@ -3,7 +3,6 @@ class Form::Sales::Pages::BuyerPrevious < ::Form::Page
@id = "buyer_previous"
@ -3,7 +3,6 @@ class Form::Sales::Pages::BuyerStillServing < ::Form::Page
@id = "buyer_still_serving"
"hhregres" => 1,
@ -3,7 +3,6 @@ class Form::Sales::Pages::BuyersOrganisations < ::Form::Page
@id = "buyers_organisations"
@ -2,7 +2,6 @@ class Form::Sales::Pages::DepositValueCheck < ::Form::Page
@ -3,7 +3,6 @@ class Form::Sales::Pages::DiscountedOwnershipType < ::Form::Page
@id = "discounted_ownership_type"
"ownershipsch" => 2,
@ -3,7 +3,6 @@ class Form::Sales::Pages::ExchangeDate < ::Form::Page
@id = "exchange_contracts"
"resale" => 2,
@ -3,7 +3,6 @@ class Form::Sales::Pages::GenderIdentity1 < ::Form::Page
@id = "buyer_1_gender_identity"
@ -3,7 +3,6 @@ class Form::Sales::Pages::GenderIdentity2 < ::Form::Page
@id = "buyer_2_gender_identity"
@ -3,7 +3,6 @@ class Form::Sales::Pages::HandoverDate < ::Form::Page
@id = "handover_date"
"ownershipsch" => 1,
@ -3,7 +3,6 @@ class Form::Sales::Pages::HouseholdDisability < ::Form::Page
@id = "household_disability"
@ -3,7 +3,6 @@ class Form::Sales::Pages::HouseholdWheelchair < ::Form::Page
@id = "household_wheelchair"
@ -2,7 +2,6 @@ class Form::Sales::Pages::HouseholdWheelchairCheck < ::Form::Page
@ -3,7 +3,6 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page
@id = "housing_benefits"
@ -3,7 +3,6 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page
@id = "joint_purchase"
{ "ownershipsch" => 1 },
@ -3,7 +3,6 @@ class Form::Sales::Pages::LaNominations < ::Form::Page
@id = "la_nominations"
@ -3,7 +3,6 @@ class Form::Sales::Pages::LastAccommodation < ::Form::Page
@id = "last_accommodation"
@ -3,7 +3,6 @@ class Form::Sales::Pages::LastAccommodationLa < ::Form::Page
@id = "last_accommodation_la"
"is_previous_la_inferred" => false,
@ -2,7 +2,6 @@ class Form::Sales::Pages::LeaseholdCharges < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::LivingBeforePurchase < ::Form::Page
@ -3,7 +3,6 @@ class Form::Sales::Pages::MonthlyRent < ::Form::Page
@id = "monthly_rent"
@ -2,7 +2,6 @@ class Form::Sales::Pages::MortgageAmount < ::Form::Page
@header = "Mortgage Amount"
"mortgageused" => 1,
@ -2,7 +2,6 @@ class Form::Sales::Pages::MortgageLength < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::MortgageValueCheck < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::Mortgageused < ::Form::Page
@ -3,7 +3,6 @@ class Form::Sales::Pages::Nationality1 < ::Form::Page
@id = "buyer_1_nationality"
@ -3,7 +3,6 @@ class Form::Sales::Pages::NumberJointBuyers < ::Form::Page
@id = "number_joint_buyers"
@ -3,7 +3,6 @@ class Form::Sales::Pages::NumberOfOthersInProperty < ::Form::Page
@id = "number_of_others_in_property"
@ -3,7 +3,6 @@ class Form::Sales::Pages::OutrightOwnershipType < ::Form::Page
@id = "outright_ownership_type"
@ -3,7 +3,6 @@ class Form::Sales::Pages::OwnershipScheme < ::Form::Page
@id = "ownership_scheme"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PersonAge < Form::Sales::Pages::Person
def initialize(id, hsh, subsection, person_index:)
@depends_on = [{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 }]
@ -2,7 +2,6 @@ class Form::Sales::Pages::PersonGenderIdentity < Form::Sales::Pages::Person
{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 },
@ -3,7 +3,6 @@ class Form::Sales::Pages::PersonKnown < Form::Sales::Pages::Person
@header_partial = "person_#{person_display_number}_known_page"
@depends_on = (person_display_number..4).map { |index| { "hholdcount" => index, "jointpur" => joint_purchase? ? 1 : 2 } }
@ -2,7 +2,6 @@ class Form::Sales::Pages::PersonRelationshipToBuyer1 < ::Form::Sales::Pages::Per
@ -2,7 +2,6 @@ class Form::Sales::Pages::PersonWorkingSituation < Form::Sales::Pages::Person
@ -3,7 +3,6 @@ class Form::Sales::Pages::PreviousBedrooms < ::Form::Page
@id = "previous_bedrooms"
@header = "About the buyers’ previous property"
"soctenant" => 1,
@ -3,7 +3,6 @@ class Form::Sales::Pages::PreviousOwnership < ::Form::Page
@id = "previous_ownership"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PrivacyNotice < ::Form::Page
@id = "privacy_notice"
@header = "Department for Levelling Up, Housing and Communities privacy notice"
"noint" => 2,
@ -3,7 +3,6 @@ class Form::Sales::Pages::PropertyBuildingType < ::Form::Page
@id = "property_building_type"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PropertyLocalAuthority < ::Form::Page
@id = "property_local_authority"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PropertyNumberOfBedrooms < ::Form::Page
@id = "property_number_of_bedrooms"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PropertyUnitType < ::Form::Page
@id = "property_unit_type"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PropertyWheelchairAccessible < ::Form::Page
@id = "property_wheelchair_accessible"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PurchasePrice < ::Form::Page
@id = "purchase_price"
@ -3,7 +3,6 @@ class Form::Sales::Pages::PurchaserCode < ::Form::Page
@id = "purchaser_code"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Resale < ::Form::Page
@id = "resale"
@ -3,7 +3,6 @@ class Form::Sales::Pages::SaleDate < ::Form::Page
@id = "completion_date"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Savings < ::Form::Page
@id = "savings"
@ -2,7 +2,6 @@ class Form::Sales::Pages::SavingsValueCheck < ::Form::Page
@ -3,7 +3,6 @@ class Form::Sales::Pages::SharedOwnershipType < ::Form::Page
@id = "shared_ownership_type"
@ -3,7 +3,6 @@ class Form::Sales::Pages::Staircase < ::Form::Page
@id = "staircasing"
@ -26,7 +26,7 @@ RSpec.describe Form::Common::Pages::CreatedBy, type: :model do
it "has the correct description" do
expect(page.description).to eq("")
expect(page.description).to be_nil
it "has the correct depends_on" do
@ -26,7 +26,7 @@ RSpec.describe Form::Common::Pages::Organisation, type: :model do
@ -46,7 +46,7 @@ RSpec.describe Form::Lettings::Pages::CreatedBy, type: :model do
@ -24,7 +24,7 @@ RSpec.describe Form::Lettings::Pages::Location, type: :model do
@ -25,7 +25,7 @@ RSpec.describe Form::Lettings::Pages::ManagingOrganisation, type: :model do
@ -24,6 +24,6 @@ RSpec.describe Form::Lettings::Pages::NeedsType, type: :model do
@ -24,7 +24,7 @@ RSpec.describe Form::Lettings::Pages::PropertyReference, type: :model do