Browse Source

Add sale_information section

pull/1109/head
Kat 2 years ago
parent
commit
d82663f063
  1. 14
      app/models/form/sales/sections/sale_information.rb
  2. 1
      app/models/form_handler.rb

14
app/models/form/sales/sections/sale_information.rb

@ -0,0 +1,14 @@
class Form::Sales::Sections::SaleInformation < ::Form::Section
def initialize(id, hsh, form)
super
@id = "sale_information"
@label = "Sale information"
@description = ""
@form = form
@subsections = [
Form::Sales::Subsections::SharedOwnershipScheme.new(nil, nil, self),
Form::Sales::Subsections::DiscountedOwnershipScheme.new(nil, nil, self),
Form::Sales::Subsections::OutrightSale.new(nil, nil, self),
] || []
end
end

1
app/models/form_handler.rb

@ -22,6 +22,7 @@ class FormHandler
sales_sections = [ sales_sections = [
Form::Sales::Sections::PropertyInformation, Form::Sales::Sections::PropertyInformation,
Form::Sales::Sections::Household, Form::Sales::Sections::Household,
Form::Sales::Sections::SaleInformation,
Form::Sales::Sections::Finances, Form::Sales::Sections::Finances,
] ]
current_form = Form.new(nil, current_collection_start_year, sales_sections, "sales") current_form = Form.new(nil, current_collection_start_year, sales_sections, "sales")

Loading…
Cancel
Save