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.
28 lines
526 B
28 lines
526 B
class Form::Lettings::Pages::Uprn < ::Form::Page |
|
def initialize(id, hsh, subsection) |
|
super |
|
@id = "uprn" |
|
end |
|
|
|
def questions |
|
@questions ||= [ |
|
Form::Lettings::Questions::Uprn.new(nil, nil, self), |
|
] |
|
end |
|
|
|
def routed_to?(log, _current_user = nil) |
|
return false if log.is_supported_housing? |
|
|
|
log.uprn_known == 1 |
|
end |
|
|
|
def skip_text |
|
"Enter address instead" |
|
end |
|
|
|
def skip_href(log = nil) |
|
return unless log |
|
|
|
"/#{log.model_name.param_key.dasherize}s/#{log.id}/address" |
|
end |
|
end
|
|
|