6 changed files with 51 additions and 19 deletions
@ -1,12 +1,13 @@ |
|||||||
class Form::Sales::Pages::PreviousOwnership < ::Form::Page |
class Form::Sales::Pages::PreviousOwnership < ::Form::Page |
||||||
def initialize(id, hsh, subsection) |
def initialize(id, hsh, subsection, joint_purchase:) |
||||||
super |
super(id, hsh, subsection) |
||||||
@id = "previous_ownership" |
@joint_purchase = joint_purchase |
||||||
|
@depends_on = [{ "joint_purchase?" => @joint_purchase}] |
||||||
end |
end |
||||||
|
|
||||||
def questions |
def questions |
||||||
@questions ||= [ |
@questions ||= [ |
||||||
Form::Sales::Questions::Prevown.new(nil, nil, self), |
Form::Sales::Questions::Prevown.new(nil, nil, self, joint_purchase: @joint_purchase), |
||||||
] |
] |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
Loading…
Reference in new issue