Browse Source
* alter copy conditionally for plurality depending on whether a purchase is a joint purchase * correct linting oversight * resolve rebase conflicts and alter annoying test to prevent future conflictspull/1350/head
Arthur Campbell
2 years ago
committed by
GitHub
8 changed files with 47 additions and 21 deletions
@ -1,12 +1,13 @@ |
|||||||
class Form::Sales::Pages::HousingBenefits < ::Form::Page |
class Form::Sales::Pages::HousingBenefits < ::Form::Page |
||||||
def initialize(id, hsh, subsection) |
def initialize(id, hsh, subsection, joint_purchase:) |
||||||
super |
super(id, hsh, subsection) |
||||||
@id = "housing_benefits" |
@joint_purchase = joint_purchase |
||||||
|
@depends_on = [{ "jointpur" => @joint_purchase ? 1 : 2 }] |
||||||
end |
end |
||||||
|
|
||||||
def questions |
def questions |
||||||
@questions ||= [ |
@questions ||= [ |
||||||
Form::Sales::Questions::HousingBenefits.new(nil, nil, self), |
Form::Sales::Questions::HousingBenefits.new(nil, nil, self, joint_purchase: @joint_purchase), |
||||||
] |
] |
||||||
end |
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue