Browse Source

Update validation message: mortgage

pull/1584/head
Kat 3 years ago
parent
commit
c6785c9a0a
  1. 15
      app/models/form/sales/pages/mortgage_value_check.rb
  2. 3
      config/locales/en.yml

15
app/models/form/sales/pages/mortgage_value_check.rb

@ -4,7 +4,20 @@ class Form::Sales::Pages::MortgageValueCheck < ::Form::Page
@depends_on = depends_on @depends_on = depends_on
@informative_text = {} @informative_text = {}
@person_index = person_index @person_index = person_index
@title_text = { "translation" => "soft_validations.mortgage.title_text" } @title_text = {
"translation" => "soft_validations.mortgage.title_text",
"arguments" => [
{
"key" => "field_formatted_as_currency",
"arguments_for_key" => "mortgage",
"i18n_template" => "mortgage",
},
],
}
@informative_text = {
"translation" => "soft_validations.mortgage.hint_text",
"arguments" => [],
}
end end
def questions def questions

3
config/locales/en.yml

@ -590,7 +590,8 @@ en:
wheelchair: wheelchair:
title_text: "You told us that someone in the household uses a wheelchair." title_text: "You told us that someone in the household uses a wheelchair."
mortgage: mortgage:
title_text: "Are you sure that the mortgage is more than 5 times the income used for the mortgage application?" title_text: "You told us that the mortgage amount is %{mortgage}"
hint_text: "This is more than 5 times the income, which is higher than we would expect."
devise: devise:
two_factor_authentication: two_factor_authentication:

Loading…
Cancel
Save