From 8a431bf93194ca826361ab1b79fbcd073e1deffd Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 5 May 2023 15:55:53 +0100 Subject: [PATCH] feat: update to new soft val designs --- .../form/sales/pages/buyer1_income_max_value_check.rb | 4 ++++ .../form/sales/pages/buyer2_income_max_value_check.rb | 4 ++++ .../form/sales/pages/combined_income_max_value_check.rb | 4 ++++ config/locales/en.yml | 6 +++--- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/models/form/sales/pages/buyer1_income_max_value_check.rb b/app/models/form/sales/pages/buyer1_income_max_value_check.rb index 72abd2555..7d665f43b 100644 --- a/app/models/form/sales/pages/buyer1_income_max_value_check.rb +++ b/app/models/form/sales/pages/buyer1_income_max_value_check.rb @@ -25,4 +25,8 @@ class Form::Sales::Pages::Buyer1IncomeMaxValueCheck < ::Form::Page Form::Sales::Questions::Buyer1IncomeValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number), ] end + + def interruption_screen_question_ids + %w[la income1] + end end diff --git a/app/models/form/sales/pages/buyer2_income_max_value_check.rb b/app/models/form/sales/pages/buyer2_income_max_value_check.rb index 993461f99..ccdadb005 100644 --- a/app/models/form/sales/pages/buyer2_income_max_value_check.rb +++ b/app/models/form/sales/pages/buyer2_income_max_value_check.rb @@ -25,4 +25,8 @@ class Form::Sales::Pages::Buyer2IncomeMaxValueCheck < ::Form::Page Form::Sales::Questions::Buyer2IncomeValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number), ] end + + def interruption_screen_question_ids + %w[la income2] + end end diff --git a/app/models/form/sales/pages/combined_income_max_value_check.rb b/app/models/form/sales/pages/combined_income_max_value_check.rb index 3f16891fe..5b035aa2a 100644 --- a/app/models/form/sales/pages/combined_income_max_value_check.rb +++ b/app/models/form/sales/pages/combined_income_max_value_check.rb @@ -25,4 +25,8 @@ class Form::Sales::Pages::CombinedIncomeMaxValueCheck < ::Form::Page Form::Sales::Questions::CombinedIncomeValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number), ] end + + def interruption_screen_question_ids + %w[la income1 income2] + end end diff --git a/config/locales/en.yml b/config/locales/en.yml index c7a82f191..9b7a7e80d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -542,9 +542,9 @@ en: under_soft_min_for_economic_status: title_text: "You told us income was %{income}." hint_text: "This is less than we would expect for someone in this working situation." - over_soft_max_for_la_buyer_1: "You told us the income of buyer 1 is %{income}, which seems high." - over_soft_max_for_la_buyer_2: "You told us the income of buyer 2 is %{income}, which seems high." - over_soft_max_for_la_combined: "You told us the combined income of this household is %{combined_income}, which seems high." + over_soft_max_for_la_buyer_1: "You told us the income of buyer 1 is %{income}. This seems high. Are you sure this is correct?" + over_soft_max_for_la_buyer_2: "You told us the income of buyer 2 is %{income}. This seems high. Are you sure this is correct?" + 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}" min_hint_text: "The minimum rent expected for this type of property in this local authority is %{soft_min_for_period}."