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.
19 lines
519 B
19 lines
519 B
5 months ago
|
class Form::Sales::Pages::PurchasePrice < ::Form::Page
|
||
|
def initialize(id, hsh, subsection)
|
||
|
super
|
||
|
@id = "purchase_price"
|
||
|
@header = "About the price of the property"
|
||
|
@depends_on = [{ "right_to_buy?" => true },
|
||
|
{
|
||
|
"right_to_buy?" => false,
|
||
|
"rent_to_buy_full_ownership?" => false,
|
||
|
}]
|
||
|
end
|
||
|
|
||
|
def questions
|
||
|
@questions ||= [
|
||
|
Form::Sales::Questions::PurchasePrice.new(nil, nil, self, ownershipsch: 2),
|
||
|
]
|
||
|
end
|
||
|
end
|