Submit social housing lettings and sales data (CORE)
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.
 
 
 
 

23 lines
571 B

class Form::Sales::Pages::Buyer2EthnicGroup < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "buyer_2_ethnic_group"
end
def questions
@questions ||= [
Form::Sales::Questions::Buyer2EthnicGroup.new(nil, nil, self),
]
end
def routed_to?(log, _current_user)
super && page_routed_to?(log)
end
def page_routed_to?(log)
return false unless log.joint_purchase?
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