From 20833c241cb0d5b754f7dfc8ccd0483cec10a531 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 2 May 2023 11:34:54 +0100 Subject: [PATCH] Update validation message: extra borrowing --- app/models/form/sales/pages/grant_value_check.rb | 16 ++++++++++++++-- config/locales/en.yml | 3 ++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/models/form/sales/pages/grant_value_check.rb b/app/models/form/sales/pages/grant_value_check.rb index c3633201a..6b53d74ee 100644 --- a/app/models/form/sales/pages/grant_value_check.rb +++ b/app/models/form/sales/pages/grant_value_check.rb @@ -7,8 +7,20 @@ class Form::Sales::Pages::GrantValueCheck < ::Form::Page "grant_outside_common_range?" => true, }, ] - @title_text = { "translation" => "soft_validations.grant.title_text" } - @informative_text = {} + @title_text = { + "translation" => "soft_validations.grant.title_text", + "arguments" => [ + { + "key" => "field_formatted_as_currency", + "arguments_for_key" => "grant", + "i18n_template" => "grant", + }, + ], + } + @informative_text = { + "translation" => "soft_validations.grant.hint_text", + "arguments" => [], + } end def questions diff --git a/config/locales/en.yml b/config/locales/en.yml index be9816fe9..30863269f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -584,7 +584,8 @@ en: deposit: title_text: "Are you sure that the deposit is this much higher than the buyer's savings?" grant: - title_text: "Are you sure? Grants are usually £9,000 - £16,000" + 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." wheelchair: title_text: "Are you sure? You said previously that somebody in household uses a wheelchair" mortgage: