Browse Source

Update validation message: deposit and savings

pull/1584/head
Kat 3 years ago
parent
commit
493578bf02
  1. 17
      app/models/form/sales/pages/deposit_value_check.rb
  2. 3
      config/locales/en.yml

17
app/models/form/sales/pages/deposit_value_check.rb

@ -6,9 +6,24 @@ class Form::Sales::Pages::DepositValueCheck < ::Form::Page
"deposit_over_soft_max?" => true,
},
]
@informative_text = {}
@informative_text = {
"translation" => "soft_validations.deposit.hint_text",
"arguments" => [],
}
@title_text = {
"translation" => "soft_validations.deposit.title_text",
"arguments" => [
{
"key" => "field_formatted_as_currency",
"arguments_for_key" => "deposit",
"i18n_template" => "deposit",
},
{
"key" => "field_formatted_as_currency",
"arguments_for_key" => "savings",
"i18n_template" => "savings",
},
],
}
end

3
config/locales/en.yml

@ -586,7 +586,8 @@ en:
title_text: "You told us the buyer’s savings were %{savings}."
hint_text: "This is higher than we would expect."
deposit:
title_text: "Are you sure that the deposit is this much higher than the buyer's savings?"
title_text: "You told us the buyer’s deposit was %{deposit} and their savings were %{savings}."
hint_text: "The deposit amount is higher than we would expect for the amount of savings they have."
grant:
title_text: "You told us that the grant amount is %{grant}"
hint_text: "Loans, grants and subsidies are usually between £9,000 and £16,000."

Loading…
Cancel
Save