@ -2,7 +2,6 @@ class Form::Common::Pages::CreatedBy < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "created_by"
@header = ""
@subsection = subsection
end
@ -2,7 +2,6 @@ class Form::Common::Pages::Organisation < ::Form::Page
@id = "organisation"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::CreatedBy < ::Form::Page
@ -1,7 +1,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,
@ -2,7 +2,6 @@ class Form::Lettings::Pages::ManagingOrganisation < ::Form::Page
@id = "managing_organisation"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::NeedsType < ::Form::Page
@id = "needs_type"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::PropertyReference < ::Form::Page
@id = "property_reference"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::Renewal < ::Form::Page
@id = "renewal"
class Form::Lettings::Pages::RentType < ::Form::Page
super("rent_type", hsh, subsection)
@derived = true
class Form::Lettings::Pages::Scheme < ::Form::Page
super("scheme", hsh, subsection)
}]
@ -2,7 +2,6 @@ class Form::Lettings::Pages::StockOwner < ::Form::Page
@id = "stock_owner"
@ -2,7 +2,6 @@ class Form::Lettings::Pages::TenantCode < ::Form::Page
@id = "tenant_code"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Age1 < ::Form::Page
@id = "buyer_1_age"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Age2 < ::Form::Page
@id = "buyer_2_age"
"jointpur" => 1,
@ -2,7 +2,6 @@ class Form::Sales::Pages::ArmedForces < ::Form::Page
@id = "armed_forces"
@ -2,7 +2,6 @@ class Form::Sales::Pages::ArmedForcesSpouse < ::Form::Page
@id = "armed_forces_spouse"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundArab < ::Form::Page
@id = "buyer_1_ethnic_background_arab"
"ethnic_group" => 4,
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundAsian < ::Form::Page
@id = "buyer_1_ethnic_background_asian"
"ethnic_group" => 2,
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundBlack < ::Form::Page
@id = "buyer_1_ethnic_background_black"
"ethnic_group" => 3,
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundMixed < ::Form::Page
@id = "buyer_1_ethnic_background_mixed"
"ethnic_group" => 1,
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicBackgroundWhite < ::Form::Page
@id = "buyer_1_ethnic_background_white"
"ethnic_group" => 0,
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1EthnicGroup < ::Form::Page
@id = "buyer_1_ethnic_group"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1Income < ::Form::Page
@id = "buyer_1_income"
class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
@depends_on = [
{
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1LiveInProperty < ::Form::Page
@id = "buyer_1_live_in_property"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1Mortgage < ::Form::Page
@id = "buyer_1_mortgage"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer1WorkingSituation < ::Form::Page
@id = "buyer_1_working_situation"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2Income < ::Form::Page
@id = "buyer_2_income"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2LiveInProperty < ::Form::Page
@id = "buyer_2_live_in_property"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2Mortgage < ::Form::Page
@id = "buyer_2_mortgage"
@depends_on = [{ "jointpur" => 1 }]
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2RelationshipToBuyer1 < ::Form::Page
@id = "buyer_2_relationship_to_buyer_1"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Buyer2WorkingSituation < ::Form::Page
@id = "buyer_2_working_situation"
@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerCompany < ::Form::Page
@id = "buyer_company"
"ownershipsch" => 3,
@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerInterview < ::Form::Page
@id = "buyer_interview"
@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerLive < ::Form::Page
@id = "buyer_live"
"companybuy" => 2,
@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerPrevious < ::Form::Page
@id = "buyer_previous"
@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyerStillServing < ::Form::Page
@id = "buyer_still_serving"
"hhregres" => 1,
@ -2,7 +2,6 @@ class Form::Sales::Pages::BuyersOrganisations < ::Form::Page
@id = "buyers_organisations"
class Form::Sales::Pages::DepositValueCheck < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::DiscountedOwnershipType < ::Form::Page
@id = "discounted_ownership_type"
"ownershipsch" => 2,
@ -2,7 +2,6 @@ class Form::Sales::Pages::ExchangeDate < ::Form::Page
@id = "exchange_contracts"
"resale" => 2,
@ -2,7 +2,6 @@ class Form::Sales::Pages::GenderIdentity1 < ::Form::Page
@id = "buyer_1_gender_identity"
@ -2,7 +2,6 @@ class Form::Sales::Pages::GenderIdentity2 < ::Form::Page
@id = "buyer_2_gender_identity"
@ -2,7 +2,6 @@ class Form::Sales::Pages::HandoverDate < ::Form::Page
@id = "handover_date"
"ownershipsch" => 1,
@ -2,7 +2,6 @@ class Form::Sales::Pages::HouseholdDisability < ::Form::Page
@id = "household_disability"
@ -2,7 +2,6 @@ class Form::Sales::Pages::HouseholdWheelchair < ::Form::Page
@id = "household_wheelchair"
class Form::Sales::Pages::HouseholdWheelchairCheck < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page
@id = "housing_benefits"
@ -2,7 +2,6 @@ class Form::Sales::Pages::JointPurchase < ::Form::Page
@id = "joint_purchase"
{ "ownershipsch" => 1 },
@ -2,7 +2,6 @@ class Form::Sales::Pages::LaNominations < ::Form::Page
@id = "la_nominations"
@ -2,7 +2,6 @@ class Form::Sales::Pages::LastAccommodation < ::Form::Page
@id = "last_accommodation"
@ -2,7 +2,6 @@ class Form::Sales::Pages::LastAccommodationLa < ::Form::Page
@id = "last_accommodation_la"
"is_previous_la_inferred" => false,
class Form::Sales::Pages::LeaseholdCharges < ::Form::Page
class Form::Sales::Pages::LivingBeforePurchase < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::MonthlyRent < ::Form::Page
@id = "monthly_rent"
class Form::Sales::Pages::MortgageLength < ::Form::Page
class Form::Sales::Pages::MortgageValueCheck < ::Form::Page
class Form::Sales::Pages::Mortgageused < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::Nationality1 < ::Form::Page
@id = "buyer_1_nationality"
@ -2,7 +2,6 @@ class Form::Sales::Pages::NumberJointBuyers < ::Form::Page
@id = "number_joint_buyers"
@ -2,7 +2,6 @@ class Form::Sales::Pages::NumberOfOthersInProperty < ::Form::Page
@id = "number_of_others_in_property"
@ -2,7 +2,6 @@ class Form::Sales::Pages::OutrightOwnershipType < ::Form::Page
@id = "outright_ownership_type"
@ -2,7 +2,6 @@ class Form::Sales::Pages::OwnershipScheme < ::Form::Page
@id = "ownership_scheme"
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 }]
class Form::Sales::Pages::PersonGenderIdentity < Form::Sales::Pages::Person
{ details_known_question_id => 1, "jointpur" => joint_purchase? ? 1 : 2 },
@ -2,7 +2,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 } }
class Form::Sales::Pages::PersonRelationshipToBuyer1 < ::Form::Sales::Pages::Person
class Form::Sales::Pages::PersonWorkingSituation < Form::Sales::Pages::Person
@ -2,7 +2,6 @@ class Form::Sales::Pages::PreviousOwnership < ::Form::Page
@id = "previous_ownership"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyBuildingType < ::Form::Page
@id = "property_building_type"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyLocalAuthority < ::Form::Page
@id = "property_local_authority"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyNumberOfBedrooms < ::Form::Page
@id = "property_number_of_bedrooms"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyUnitType < ::Form::Page
@id = "property_unit_type"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PropertyWheelchairAccessible < ::Form::Page
@id = "property_wheelchair_accessible"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PurchasePrice < ::Form::Page
@id = "purchase_price"
@ -2,7 +2,6 @@ class Form::Sales::Pages::PurchaserCode < ::Form::Page
@id = "purchaser_code"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Resale < ::Form::Page
@id = "resale"
@ -2,7 +2,6 @@ class Form::Sales::Pages::SaleDate < ::Form::Page
@id = "completion_date"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Savings < ::Form::Page
@id = "savings"
class Form::Sales::Pages::SavingsValueCheck < ::Form::Page
@ -2,7 +2,6 @@ class Form::Sales::Pages::SharedOwnershipType < ::Form::Page
@id = "shared_ownership_type"
@ -2,7 +2,6 @@ class Form::Sales::Pages::Staircase < ::Form::Page
@id = "staircasing"
@ -22,7 +22,7 @@ RSpec.describe Form::Common::Pages::CreatedBy, type: :model do
it "has the correct header" do
expect(page.header).to eq("")
expect(page.header).to be_nil
it "has the correct description" do
@ -22,7 +22,7 @@ RSpec.describe Form::Common::Pages::Organisation, type: :model do
@ -42,7 +42,7 @@ RSpec.describe Form::Lettings::Pages::CreatedBy, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::Location, type: :model do
@ -21,7 +21,7 @@ RSpec.describe Form::Lettings::Pages::ManagingOrganisation, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::NeedsType, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::PropertyReference, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::Renewal, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::RentType, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::Scheme, type: :model do
@ -21,7 +21,7 @@ RSpec.describe Form::Lettings::Pages::StockOwner, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::TenantCode, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Age1, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Age2, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::ArmedForces, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::ArmedForcesSpouse, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Buyer1EthnicBackgroundArab, type: :model do
@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Pages::Buyer1EthnicBackgroundAsian, type: :model do