Browse Source

update buyer 1 and 2 income value check to be consistent

pull/1101/head
Arthur Campbell 3 years ago
parent
commit
ac6abe2db2
  1. 14
      app/models/form/sales/pages/buyer1_income_value_check.rb
  2. 2
      app/models/form/sales/questions/buyer1_income_value_check.rb
  3. 2
      app/models/form/sales/questions/buyer2_income_value_check.rb

14
app/models/form/sales/pages/buyer1_income_value_check.rb

@ -6,6 +6,20 @@ class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
"income1_under_soft_min?" => true, "income1_under_soft_min?" => true,
}, },
] ]
@title_text = {
"translation" => "soft_validations.income.under_soft_min_for_economic_status",
"arguments" => [
{
"key" => "income1",
"i18n_template" => "income",
},
{
"key" => "income_soft_min_for_ecstat",
"arguments_for_public_send" => "ecstat1",
"i18n_template" => "minimum",
},
],
}
@informative_text = {} @informative_text = {}
end end

2
app/models/form/sales/questions/buyer1_income_value_check.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1IncomeValueCheck < ::Form::Question
super super
@id = "income1_value_check" @id = "income1_value_check"
@check_answer_label = "Income confirmation" @check_answer_label = "Income confirmation"
@header = "Are you sure this income is correct?" @header = "Are you sure this is correct?"
@type = "interruption_screen" @type = "interruption_screen"
@answer_options = { @answer_options = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },

2
app/models/form/sales/questions/buyer2_income_value_check.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2IncomeValueCheck < ::Form::Question
super super
@id = "income2_value_check" @id = "income2_value_check"
@check_answer_label = "Income confirmation" @check_answer_label = "Income confirmation"
@header = "Are you sure?" @header = "Are you sure this is correct?"
@type = "interruption_screen" @type = "interruption_screen"
@answer_options = { @answer_options = {
"0" => { "value" => "Yes" }, "0" => { "value" => "Yes" },

Loading…
Cancel
Save