You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
507 B
22 lines
507 B
5 months ago
|
class Form::Sales::Pages::DepositDiscount < ::Form::Page
|
||
11 months ago
|
def initialize(id, hsh, subsection, optional:)
|
||
|
super(id, hsh, subsection)
|
||
|
@optional = optional
|
||
5 months ago
|
@header = "About the deposit"
|
||
2 years ago
|
end
|
||
|
|
||
|
def questions
|
||
|
@questions ||= [
|
||
|
Form::Sales::Questions::DepositDiscount.new(nil, nil, self),
|
||
|
]
|
||
|
end
|
||
11 months ago
|
|
||
|
def depends_on
|
||
|
if form.start_year_after_2024?
|
||
10 months ago
|
[{ "social_homebuy?" => true, "stairowned_100?" => @optional }]
|
||
11 months ago
|
else
|
||
10 months ago
|
[{ "social_homebuy?" => true }]
|
||
11 months ago
|
end
|
||
|
end
|
||
2 years ago
|
end
|