From 4b43e5cb68944a5a0b3a468aaadea0ec5858523a Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Thu, 26 Jan 2023 12:04:57 +0000 Subject: [PATCH] CLDC-1848 Update income hint text (#1236) * Remove old income guidance text * Add income hint text --- .../form/sales/questions/buyer1_income.rb | 1 + .../form/sales/questions/buyer1_income_known.rb | 2 -- .../form/sales/questions/buyer2_income.rb | 1 + .../form/sales/questions/buyer2_income_known.rb | 2 -- .../_what_counts_as_income_sales.html.erb | 17 ----------------- .../sales/questions/buyer1_income_known_spec.rb | 9 --------- .../form/sales/questions/buyer1_income_spec.rb | 2 +- .../sales/questions/buyer2_income_known_spec.rb | 9 --------- .../form/sales/questions/buyer2_income_spec.rb | 2 +- 9 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 app/views/form/guidance/_what_counts_as_income_sales.html.erb diff --git a/app/models/form/sales/questions/buyer1_income.rb b/app/models/form/sales/questions/buyer1_income.rb index 4a7e43e55..43451af50 100644 --- a/app/models/form/sales/questions/buyer1_income.rb +++ b/app/models/form/sales/questions/buyer1_income.rb @@ -4,6 +4,7 @@ class Form::Sales::Questions::Buyer1Income < ::Form::Question @id = "income1" @check_answer_label = "Buyer 1’s gross annual income" @header = "Buyer 1’s gross annual income" + @hint_text = "Provide the gross annual income (i.e. salary before tax) plus the annual amount of benefits, Universal Credit or pensions, and income from investments." @type = "numeric" @min = 0 @max = 999_999 diff --git a/app/models/form/sales/questions/buyer1_income_known.rb b/app/models/form/sales/questions/buyer1_income_known.rb index 36b5ec3f4..64462fa59 100644 --- a/app/models/form/sales/questions/buyer1_income_known.rb +++ b/app/models/form/sales/questions/buyer1_income_known.rb @@ -6,8 +6,6 @@ class Form::Sales::Questions::Buyer1IncomeKnown < ::Form::Question @header = "Do you know buyer 1’s annual income?" @type = "radio" @answer_options = ANSWER_OPTIONS - @guidance_position = GuidancePosition::BOTTOM - @guidance_partial = "what_counts_as_income_sales" @conditional_for = { "income1" => [0], } diff --git a/app/models/form/sales/questions/buyer2_income.rb b/app/models/form/sales/questions/buyer2_income.rb index 2bda83544..680bf8ae7 100644 --- a/app/models/form/sales/questions/buyer2_income.rb +++ b/app/models/form/sales/questions/buyer2_income.rb @@ -5,6 +5,7 @@ class Form::Sales::Questions::Buyer2Income < ::Form::Question @check_answer_label = "Buyer 2’s gross annual income" @header = "Buyer 2’s gross annual income" @type = "numeric" + @hint_text = "Provide the gross annual income (i.e. salary before tax) plus the annual amount of benefits, Universal Credit or pensions, and income from investments." @min = 0 @step = 1 @width = 5 diff --git a/app/models/form/sales/questions/buyer2_income_known.rb b/app/models/form/sales/questions/buyer2_income_known.rb index 385bd9562..0b4613809 100644 --- a/app/models/form/sales/questions/buyer2_income_known.rb +++ b/app/models/form/sales/questions/buyer2_income_known.rb @@ -6,8 +6,6 @@ class Form::Sales::Questions::Buyer2IncomeKnown < ::Form::Question @header = "Do you know buyer 2’s annual income?" @type = "radio" @answer_options = ANSWER_OPTIONS - @guidance_position = GuidancePosition::BOTTOM - @guidance_partial = "what_counts_as_income_sales" @conditional_for = { "income2" => [0], } diff --git a/app/views/form/guidance/_what_counts_as_income_sales.html.erb b/app/views/form/guidance/_what_counts_as_income_sales.html.erb deleted file mode 100644 index c5e2c7116..000000000 --- a/app/views/form/guidance/_what_counts_as_income_sales.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -<%= govuk_details(summary_text: "What counts as income?") do %> -
You should include any income from:
-Don’t include:
-