Kat
2 years ago
12 changed files with 33 additions and 23 deletions
@ -1,15 +1,16 @@ |
|||||||
class Form::Sales::Pages::AboutDepositWithoutDiscount < ::Form::Page |
class Form::Sales::Pages::AboutDepositWithoutDiscount < ::Form::Page |
||||||
def initialize(id, hsh, subsection) |
def initialize(id, hsh, subsection, question_number:) |
||||||
super |
super(id, hsh, subsection) |
||||||
@header = "About the deposit" |
@header = "About the deposit" |
||||||
@depends_on = [{ "is_type_discount?" => false, "ownershipsch" => 1 }, |
@depends_on = [{ "is_type_discount?" => false, "ownershipsch" => 1 }, |
||||||
{ "ownershipsch" => 2 }, |
{ "ownershipsch" => 2 }, |
||||||
{ "ownershipsch" => 3, "mortgageused" => 1 }] |
{ "ownershipsch" => 3, "mortgageused" => 1 }] |
||||||
|
@question_number = question_number |
||||||
end |
end |
||||||
|
|
||||||
def questions |
def questions |
||||||
@questions ||= [ |
@questions ||= [ |
||||||
Form::Sales::Questions::DepositAmount.new(nil, nil, self), |
Form::Sales::Questions::DepositAmount.new(nil, nil, self, question_number: @question_number), |
||||||
] |
] |
||||||
end |
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue