|
|
|
@ -2,7 +2,11 @@ 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 = [{ "jointpur" => @joint_purchase ? 1 : 2 }] |
|
|
|
@depends_on = [if @joint_purchase |
|
|
|
|
|
|
|
{ "joint_purchase?" => true } |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ "not_joint_purchase?" => true } |
|
|
|
|
|
|
|
end] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def questions |
|
|
|
def questions |
|
|
|
|