You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.2 KiB
27 lines
1.2 KiB
class Form::Sales::Subsections::Setup < ::Form::Subsection |
|
def initialize(id, hsh, section) |
|
super |
|
@id = "setup" |
|
@label = "Set up this sales log" |
|
end |
|
|
|
def pages |
|
@pages ||= [ |
|
Form::Sales::Pages::OwningOrganisation.new(nil, nil, self), |
|
Form::Sales::Pages::ManagingOrganisation.new(nil, nil, self), |
|
Form::Sales::Pages::CreatedBy.new(nil, nil, self), |
|
Form::Sales::Pages::SaleDate.new(nil, nil, self), |
|
Form::Sales::Pages::PurchaserCode.new(nil, nil, self), |
|
Form::Sales::Pages::OwnershipScheme.new(nil, nil, self), |
|
Form::Sales::Pages::SharedOwnershipType.new(nil, nil, self), |
|
Form::Sales::Pages::DiscountedOwnershipType.new(nil, nil, self), |
|
Form::Sales::Pages::OutrightOwnershipType.new(nil, nil, self), |
|
Form::Sales::Pages::BuyerCompany.new(nil, nil, self), |
|
Form::Sales::Pages::BuyerLive.new(nil, nil, self), |
|
Form::Sales::Pages::JointPurchase.new(nil, nil, self), |
|
Form::Sales::Pages::NumberJointBuyers.new(nil, nil, self), |
|
(Form::Sales::Pages::BuyerInterview.new(nil, nil, self) if form.start_year_after_2024?), |
|
(Form::Sales::Pages::PrivacyNotice.new(nil, nil, self) if form.start_year_after_2024?), |
|
].flatten.compact |
|
end |
|
end
|
|
|