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.
34 lines
1.7 KiB
34 lines
1.7 KiB
class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection |
|
def initialize(id, hsh, section) |
|
super |
|
@id = "property_information" |
|
@label = "Property information" |
|
@depends_on = [{ "non_location_setup_questions_completed?" => true }] |
|
end |
|
|
|
def pages |
|
@pages ||= [ |
|
Form::Lettings::Pages::PropertyPostcode.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyLocalAuthority.new(nil, nil, self), |
|
Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyLetType.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyVacancyReasonNotFirstLet.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyVacancyReasonFirstLet.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyNumberOfTimesReletNotSocialLet.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyNumberOfTimesReletSocialLet.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyUnitType.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyBuildingType.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyWheelchairAccessible.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyNumberOfBedrooms.new(nil, nil, self), |
|
Form::Lettings::Pages::VoidOrRenewalDate.new(nil, nil, self), |
|
Form::Lettings::Pages::VoidDateValueCheck.new(nil, nil, self), |
|
Form::Lettings::Pages::NewBuildHandoverDate.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyMajorRepairs.new(nil, nil, self), |
|
Form::Lettings::Pages::PropertyMajorRepairsValueCheck.new(nil, nil, self), |
|
].compact |
|
end |
|
|
|
def displayed_in_tasklist?(log) |
|
!(log.is_supported_housing? && log.is_renewal?) |
|
end |
|
end
|
|
|