22 lines
527 B
22 lines
527 B
class Form::Sales::Pages::Buyer1EthnicGroup < ::Form::Page |
|
def initialize(id, hsh, subsection) |
|
super |
|
@id = "buyer_1_ethnic_group" |
|
end |
|
|
|
def questions |
|
@questions ||= [ |
|
Form::Sales::Questions::Buyer1EthnicGroup.new(nil, nil, self), |
|
] |
|
end |
|
|
|
def routed_to?(log, _current_user) |
|
super && page_routed_to?(log) |
|
end |
|
|
|
def page_routed_to?(log) |
|
return false if log.form.start_year_2025_or_later? && log.is_staircase? |
|
|
|
log.buyer_has_seen_privacy_notice? || log.buyer_not_interviewed? |
|
end |
|
end
|
|
|