Browse Source

feat: update to new soft val designs

pull/1518/head
natdeanlewissoftwire 3 years ago
parent
commit
8a431bf931
  1. 4
      app/models/form/sales/pages/buyer1_income_max_value_check.rb
  2. 4
      app/models/form/sales/pages/buyer2_income_max_value_check.rb
  3. 4
      app/models/form/sales/pages/combined_income_max_value_check.rb
  4. 6
      config/locales/en.yml

4
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), Form::Sales::Questions::Buyer1IncomeValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number),
] ]
end end
def interruption_screen_question_ids
%w[la income1]
end
end end

4
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), Form::Sales::Questions::Buyer2IncomeValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number),
] ]
end end
def interruption_screen_question_ids
%w[la income2]
end
end end

4
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), Form::Sales::Questions::CombinedIncomeValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number),
] ]
end end
def interruption_screen_question_ids
%w[la income1 income2]
end
end end

6
config/locales/en.yml

@ -542,9 +542,9 @@ en:
under_soft_min_for_economic_status: under_soft_min_for_economic_status:
title_text: "You told us income was %{income}." title_text: "You told us income was %{income}."
hint_text: "This is less than we would expect for someone in this working situation." 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_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}, which seems high." 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}, which seems high." 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: rent:
outside_range_title: "You told us the rent is %{brent}" 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}." min_hint_text: "The minimum rent expected for this type of property in this local authority is %{soft_min_for_period}."

Loading…
Cancel
Save