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.
22 lines
999 B
22 lines
999 B
class Form::Lettings::Subsections::TenancyInformation < ::Form::Subsection |
|
def initialize(id, hsh, section) |
|
super |
|
@id = "tenancy_information" |
|
@label = "Tenancy information" |
|
@depends_on = [{ "non_location_setup_questions_completed?" => true }] |
|
end |
|
|
|
def pages |
|
@pages ||= [ |
|
Form::Lettings::Pages::Joint.new("joint", nil, self), |
|
Form::Lettings::Pages::StarterTenancy.new("starter_tenancy", nil, self), |
|
Form::Lettings::Pages::TenancyType.new(nil, nil, self), |
|
Form::Lettings::Pages::StarterTenancyType.new(nil, nil, self), |
|
Form::Lettings::Pages::TenancyLength.new(nil, nil, self), |
|
Form::Lettings::Pages::TenancyLengthAffordableRent.new(nil, nil, self), |
|
Form::Lettings::Pages::TenancyLengthIntermediateRent.new(nil, nil, self), |
|
(Form::Lettings::Pages::TenancyLengthPeriodic.new(nil, nil, self) if form.start_year_after_2024?), |
|
Form::Lettings::Pages::ShelteredAccommodation.new(nil, nil, self), |
|
].flatten.compact |
|
end |
|
end
|
|
|