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.
25 lines
754 B
25 lines
754 B
2 years ago
|
class Form::Lettings::Pages::Address < ::Form::Page
|
||
|
def initialize(id, hsh, subsection)
|
||
|
super
|
||
|
@id = "address"
|
||
|
@header = "What is the property's address?"
|
||
|
end
|
||
|
|
||
|
def questions
|
||
|
@questions ||= [
|
||
|
Form::Lettings::Questions::AddressLine1.new(nil, nil, self),
|
||
|
Form::Lettings::Questions::AddressLine2.new(nil, nil, self),
|
||
|
Form::Lettings::Questions::TownOrCity.new(nil, nil, self),
|
||
|
Form::Lettings::Questions::County.new(nil, nil, self),
|
||
|
Form::Lettings::Questions::PostcodeForFullAddress.new(nil, nil, self),
|
||
|
]
|
||
|
end
|
||
|
|
||
|
def routed_to?(log, _current_user = nil)
|
||
|
return false if log.uprn_known.nil?
|
||
|
return false if log.is_supported_housing?
|
||
|
|
||
|
log.uprn_confirmed != 1 || log.uprn_known.zero?
|
||
|
end
|
||
|
end
|