From 31b6e637d3d430dd2f6a61251837935bcd78f17f Mon Sep 17 00:00:00 2001 From: Aaron Spencer Date: Wed, 28 Jun 2023 15:05:40 +0100 Subject: [PATCH] CLDC-2439: content change for bulk upload errors WIP --- .../form/lettings/pages/max_rent_value_check.rb | 13 ++++++++++++- config/locales/en.yml | 4 +++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/models/form/lettings/pages/max_rent_value_check.rb b/app/models/form/lettings/pages/max_rent_value_check.rb index 0dfd87baa..8a1d0ee07 100644 --- a/app/models/form/lettings/pages/max_rent_value_check.rb +++ b/app/models/form/lettings/pages/max_rent_value_check.rb @@ -12,7 +12,18 @@ class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page }, ], } - @informative_text = {} + # @informative_text = {} + @informative_text = { + "translation" => "soft_validations.rent.max_hint_text", + "arguments" => [ + { + "key" => "field_formatted_as_currency", + "arguments_for_key" => "soft_max_for_period", + "i18n_template" => "soft_max_for_period", + }, + ], + } + @check_answers_card_number = check_answers_card_number end diff --git a/config/locales/en.yml b/config/locales/en.yml index a93a6f812..6ff44bfb5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -595,7 +595,9 @@ en: over_soft_max_for_la_combined: "You told us the combined income of this household is %{combined_income}. This seems high. Are you sure this is correct?" rent: outside_range_title: "You told us the rent is %{brent}" - hint_text: "This is %{higher_or_lower} than we would expect. Check:" + min_hint_text: "This is lower than we would expect." + max_hint_text: "This is higher than we would expect." + hint_text: "Check the following:" purchase_price: title_text: "You told us the purchase price is %{value}" hint_text: "This is %{higher_or_lower} than we would expect"