6 changed files with 0 additions and 87 deletions
@ -1,35 +0,0 @@ |
|||||||
class Form::Sales::Pages::ExtraBorrowingValueCheck < Form::Page |
|
||||||
def initialize(id, hsh, subsection) |
|
||||||
super |
|
||||||
@depends_on = [ |
|
||||||
{ |
|
||||||
"extra_borrowing_expected_but_not_reported?" => true, |
|
||||||
}, |
|
||||||
] |
|
||||||
@copy_key = "sales.soft_validations.extra_borrowing_value_check" |
|
||||||
@title_text = { |
|
||||||
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", |
|
||||||
"arguments" => [ |
|
||||||
{ |
|
||||||
"key" => "field_formatted_as_currency", |
|
||||||
"arguments_for_key" => "mortgage_and_deposit_total", |
|
||||||
"i18n_template" => "mortgage_and_deposit_total", |
|
||||||
}, |
|
||||||
], |
|
||||||
} |
|
||||||
@informative_text = { |
|
||||||
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text", |
|
||||||
"arguments" => [], |
|
||||||
} |
|
||||||
end |
|
||||||
|
|
||||||
def questions |
|
||||||
@questions ||= [ |
|
||||||
Form::Sales::Questions::ExtraBorrowingValueCheck.new(nil, nil, self), |
|
||||||
] |
|
||||||
end |
|
||||||
|
|
||||||
def interruption_screen_question_ids |
|
||||||
%w[extrabor mortgage deposit value discount] |
|
||||||
end |
|
||||||
end |
|
||||||
@ -1,22 +0,0 @@ |
|||||||
class Form::Sales::Questions::ExtraBorrowingValueCheck < ::Form::Question |
|
||||||
def initialize(id, hsh, page) |
|
||||||
super(id, hsh, page) |
|
||||||
@id = "extrabor_value_check" |
|
||||||
@copy_key = "sales.soft_validations.extra_borrowing_value_check" |
|
||||||
@type = "interruption_screen" |
|
||||||
@answer_options = { |
|
||||||
"0" => { "value" => "Yes" }, |
|
||||||
"1" => { "value" => "No" }, |
|
||||||
} |
|
||||||
@hidden_in_check_answers = { |
|
||||||
"depends_on" => [ |
|
||||||
{ |
|
||||||
"extrabor_value_check" => 0, |
|
||||||
}, |
|
||||||
{ |
|
||||||
"extrabor_value_check" => 1, |
|
||||||
}, |
|
||||||
], |
|
||||||
} |
|
||||||
end |
|
||||||
end |
|
||||||
Loading…
Reference in new issue