6 changed files with 28 additions and 3 deletions
@ -0,0 +1,10 @@ |
|||||||
|
class Form::Sales::Property::Sections::PropertyInformation < ::Form::Section |
||||||
|
def initialize(id, hsh, form) |
||||||
|
super |
||||||
|
@id = "property_information" |
||||||
|
@label = "Property information" |
||||||
|
@description = "" |
||||||
|
@form = form |
||||||
|
@subsections = [Form::Sales::Property::Subsections::PropertyInformation.new(nil, nil, self)] || [] |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,15 @@ |
|||||||
|
class Form::Sales::Property::Subsections::PropertyInformation < ::Form::Subsection |
||||||
|
def initialize(id, hsh, section) |
||||||
|
super |
||||||
|
@id = "property_information" |
||||||
|
@label = "Property information" |
||||||
|
@section = section |
||||||
|
@depends_on = [ { "setup" => "completed" } ] |
||||||
|
end |
||||||
|
|
||||||
|
def pages |
||||||
|
@pages ||= [ |
||||||
|
Form::Sales::Pages::PropertyNumberOfBedrooms.new(nil, nil, self), |
||||||
|
] |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue