8 changed files with 41 additions and 3 deletions
@ -0,0 +1,15 @@
|
||||
class Form::Sales::Pages::NumberOfOthersInProperty < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "number_of_others_in_property" |
||||
@header = "" |
||||
@description = "" |
||||
@subsection = subsection |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::NumberOfOthersInProperty.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
||||
@ -0,0 +1,12 @@
|
||||
class Form::Sales::Questions::NumberOfOthersInProperty < ::Form::Question |
||||
def initialize(id, hsh, page) |
||||
super |
||||
@id = "hholdcount" |
||||
@check_answer_label = "Number of other people living in the property" |
||||
@header = "Besides the buyers, how many other people live in the property?" |
||||
@type = "numeric" |
||||
@hint_text = "You can provide details for a maximum of 4 other people." |
||||
@page = page |
||||
@width = 2 |
||||
end |
||||
end |
||||
@ -0,0 +1,7 @@
|
||||
class AddHholdcountToSalesLog < ActiveRecord::Migration[7.0] |
||||
def change |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.column :hholdcount, :int |
||||
end |
||||
end |
||||
end |
||||
Loading…
Reference in new issue