7 changed files with 40 additions and 1 deletions
@ -0,0 +1,14 @@ |
|||||||
|
class Form::Sales::Pages::MortgageLength < ::Form::Page |
||||||
|
def initialize(id, hsh, subsection) |
||||||
|
super |
||||||
|
@header = "" |
||||||
|
@description = "" |
||||||
|
@subsection = subsection |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [ |
||||||
|
Form::Sales::Questions::MortgageLength.new(nil, nil, self), |
||||||
|
] |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
class Form::Sales::Questions::MortgageLength < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "mortlen" |
||||||
|
@check_answer_label = " Length of mortgage" |
||||||
|
@header = "What is the length of the mortgage?" |
||||||
|
@type = "numeric" |
||||||
|
@page = page |
||||||
|
@min = 0 |
||||||
|
@width = 5 |
||||||
|
@suffix = " years" |
||||||
|
@hint_text = "" |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,7 @@ |
|||||||
|
class AddMortlenToSalesLogs < ActiveRecord::Migration[7.0] |
||||||
|
def change |
||||||
|
change_table :sales_logs, bulk: true do |t| |
||||||
|
t.column :mortlen, :integer |
||||||
|
end |
||||||
|
end |
||||||
|
end |
||||||
Loading…
Reference in new issue