Browse Source

Add missing soft validation message (#2073)

pull/2091/head
kosiakkatrina 1 year ago committed by GitHub
parent
commit
4475f2ace1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      app/models/form/sales/pages/deposit_and_mortgage_value_check.rb
  2. 4
      config/locales/en.yml

25
app/models/form/sales/pages/deposit_and_mortgage_value_check.rb

@ -6,7 +6,30 @@ class Form::Sales::Pages::DepositAndMortgageValueCheck < ::Form::Page
"mortgage_plus_deposit_less_than_discounted_value?" => true, "mortgage_plus_deposit_less_than_discounted_value?" => true,
}, },
] ]
@informative_text = {} @title_text = {
"translation" => "soft_validations.deposit_and_mortgage.title_text",
"arguments" => [
{
"key" => "mortgage",
"label" => true,
"i18n_template" => "mortgage",
},
{
"key" => "deposit",
"label" => true,
"i18n_template" => "deposit",
},
{
"key" => "discount",
"label" => true,
"i18n_template" => "discount",
},
],
}
@informative_text = {
"translation" => "soft_validations.deposit_and_mortgage.hint_text",
"arguments" => [],
}
end end
def questions def questions

4
config/locales/en.yml

@ -704,7 +704,9 @@ Make sure these answers are correct."
charges: charges:
informative_text: "This is higher than we would expect." informative_text: "This is higher than we would expect."
hint_text: "Check the following:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the needs type</li></ul>" hint_text: "Check the following:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the needs type</li></ul>"
deposit_and_mortgage:
title_text: "You told us the mortgage amount was %{mortgage}, the cash deposit was %{deposit} and the discount was %{discount}."
hint_text: "We would expect the mortgage amount and the deposit added together to be the same as the purchase price minus the discount."
devise: devise:
email: email:

Loading…
Cancel
Save