diff --git a/app/models/form/sales/pages/deposit_and_mortgage_value_check.rb b/app/models/form/sales/pages/deposit_and_mortgage_value_check.rb index 95e9c9dd7..fe5ad4acb 100644 --- a/app/models/form/sales/pages/deposit_and_mortgage_value_check.rb +++ b/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, }, ] - @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 def questions diff --git a/config/locales/en.yml b/config/locales/en.yml index eb0be098e..04b02f3e2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -704,7 +704,9 @@ Make sure these answers are correct." charges: informative_text: "This is higher than we would expect." hint_text: "Check the following:" - + 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: email: