|
|
|
@ -2,11 +2,14 @@ class Form::Sales::Pages::HousingBenefits < ::Form::Page |
|
|
|
def initialize(id, hsh, subsection, joint_purchase:) |
|
|
|
def initialize(id, hsh, subsection, joint_purchase:) |
|
|
|
super(id, hsh, subsection) |
|
|
|
super(id, hsh, subsection) |
|
|
|
@joint_purchase = joint_purchase |
|
|
|
@joint_purchase = joint_purchase |
|
|
|
@depends_on = [if @joint_purchase |
|
|
|
@depends_on = |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
if @joint_purchase |
|
|
|
{ "joint_purchase?" => true } |
|
|
|
{ "joint_purchase?" => true } |
|
|
|
else |
|
|
|
else |
|
|
|
{ "not_joint_purchase?" => true } |
|
|
|
{ "not_joint_purchase?" => true } |
|
|
|
end] |
|
|
|
end, |
|
|
|
|
|
|
|
] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def questions |
|
|
|
def questions |
|
|
|
|