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.
|
|
|
class Form::Sales::Pages::BuyerInterview < ::Form::Page
|
|
|
|
def initialize(id, hsh, subsection, joint_purchase:)
|
|
|
|
super(id, hsh, subsection)
|
|
|
|
@joint_purchase = joint_purchase
|
|
|
|
end
|
|
|
|
|
|
|
|
def questions
|
|
|
|
@questions ||= [
|
|
|
|
Form::Sales::Questions::BuyerInterview.new(nil, nil, self, joint_purchase: @joint_purchase),
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def depends_on
|
|
|
|
if @joint_purchase
|
|
|
|
[{ "joint_purchase?" => true }]
|
|
|
|
else
|
|
|
|
[{ "not_joint_purchase?" => true }, { "jointpur" => nil }]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|