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::PersonKnown < Form::Sales::Pages::Person
|
|
|
|
def initialize(id, hsh, subsection, person_index:)
|
|
|
|
super
|
|
|
|
@header_partial = "person_#{person_display_number}_known_page"
|
|
|
|
@depends_on = (person_display_number..4).map { |index| { "hholdcount" => index, "jointpur" => joint_purchase? ? 1 : 2 } }
|
|
|
|
end
|
|
|
|
|
|
|
|
def questions
|
|
|
|
@questions ||= [
|
|
|
|
Form::Sales::Questions::PersonKnown.new(field_for_person("details_known_"), nil, self, person_index: @person_index),
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|