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 |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "housing_benefits" |
||||
def initialize(id, hsh, subsection, joint_purchase:) |
||||
super(id, hsh, subsection) |
||||
@joint_purchase = joint_purchase |
||||
@depends_on = [{ "jointpur" => @joint_purchase ? 1 : 2 }] |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::HousingBenefits.new(nil, nil, self), |
||||
Form::Sales::Questions::HousingBenefits.new(nil, nil, self, joint_purchase: @joint_purchase), |
||||
] |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue