Browse Source

Fixes

pull/2735/head
Manny Dinssa 2 years ago
parent
commit
6c621c8e8e
  1. 2
      app/models/form/lettings/pages/care_home_charges_value_check.rb
  2. 2
      app/models/form/lettings/pages/property_major_repairs_value_check.rb
  3. 2
      app/models/form/lettings/questions/care_home_charges_value_check.rb
  4. 11
      config/locales/forms/2023/lettings/soft_validations.en.yml
  5. 13
      config/locales/forms/2024/lettings/soft_validations.en.yml

2
app/models/form/lettings/pages/care_home_charges_value_check.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::CareHomeChargesValueCheck < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "care_home_charges_value_check" @id = "care_home_charges_value_check"
@copy_key = "lettings.soft_validations.carehome_charges_value_check" @copy_key = "lettings.soft_validations.care_home_charges_value_check"
@depends_on = [{ "care_home_charge_expected_not_provided?" => true }] @depends_on = [{ "care_home_charge_expected_not_provided?" => true }]
@title_text = { @title_text = {
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", "translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text",

2
app/models/form/lettings/pages/property_major_repairs_value_check.rb

@ -6,7 +6,7 @@ class Form::Lettings::Pages::PropertyMajorRepairsValueCheck < ::Form::Page
@depends_on = [{ "major_repairs_date_in_soft_range?" => true }] @depends_on = [{ "major_repairs_date_in_soft_range?" => true }]
@title_text = { "translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text" } @title_text = { "translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text" }
@informative_text = { @informative_text = {
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", "translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text",
"arguments" => [], "arguments" => [],
} }
end end

2
app/models/form/lettings/questions/care_home_charges_value_check.rb

@ -2,7 +2,7 @@ class Form::Lettings::Questions::CareHomeChargesValueCheck < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "carehome_charges_value_check" @id = "carehome_charges_value_check"
@copy_key = "lettings.soft_validations.carehome_charges_value_check" @copy_key = "lettings.soft_validations.care_home_charges_value_check"
@type = "interruption_screen" @type = "interruption_screen"
@check_answers_card_number = 0 @check_answers_card_number = 0
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

11
config/locales/forms/2023/lettings/soft_validations.en.yml

@ -17,7 +17,7 @@ en:
hint_text: "" hint_text: ""
question_text: "Are you sure this is correct?" question_text: "Are you sure this is correct?"
title_text: "You told us somebody in the household is pregnant." title_text: "You told us somebody in the household is pregnant."
informative_text: "You also told us that any female tenants living at the property are in the following age ranges:<ul><li>under 16 years old</li><li>over 50 years old</li></ul>" informative_text: "You also told us that any female tenants living at the property are in the following age ranges:<ul class=\"govuk-body-l app-panel--interruption\"><li>under 16 years old</li><li>over 50 years old</li></ul>"
no_retirement_value_check: no_retirement_value_check:
page_header: "" page_header: ""
@ -33,6 +33,7 @@ en:
hint_text: "" hint_text: ""
question_text: "Are you sure this person isn’t retired?" question_text: "Are you sure this person isn’t retired?"
title_text: "You told us this person is over 66 and not retired." title_text: "You told us this person is over 66 and not retired."
informative_text: ""
partner_under_16_value_check: partner_under_16_value_check:
page_header: "" page_header: ""
@ -57,7 +58,7 @@ en:
question_text: "Are you sure this doesn’t fit an existing category?" question_text: "Are you sure this doesn’t fit an existing category?"
title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}." title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}."
informative_text: "The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question." informative_text: "The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question."
referral_value_check: referral_value_check:
page_header: "" page_header: ""
check_answer_label: "Referral confirmation" check_answer_label: "Referral confirmation"
@ -65,7 +66,7 @@ en:
question_text: "Are you sure?" question_text: "Are you sure?"
title_text: "Are you sure?" title_text: "Are you sure?"
informative_text: "This is a general needs log, and this referral type is for supported housing." informative_text: "This is a general needs log, and this referral type is for supported housing."
net_income_value_check: net_income_value_check:
page_header: "" page_header: ""
check_answer_label: "Net income confirmation" check_answer_label: "Net income confirmation"
@ -73,7 +74,7 @@ en:
question_text: "Are you sure this is correct?" question_text: "Are you sure this is correct?"
title_text: "You told us that the household’s income is %{earnings} %{incfreq}." title_text: "You told us that the household’s income is %{earnings} %{incfreq}."
informative_text: "This is %{net_income_higher_or_lower_text} than we would expect for the household’s working situation." informative_text: "This is %{net_income_higher_or_lower_text} than we would expect for the household’s working situation."
care_home_charges_value_check: care_home_charges_value_check:
page_header: "" page_header: ""
check_answer_label: "Care home charges confirmation" check_answer_label: "Care home charges confirmation"
@ -113,7 +114,7 @@ en:
question_text: "Are you sure?" question_text: "Are you sure?"
title_text: "You told us the support charge is %{supcharg}." title_text: "You told us the support charge is %{supcharg}."
informative_text: "This is higher than we would expect." informative_text: "This is higher than we would expect."
void_date_value_check: void_date_value_check:
page_header: "" page_header: ""
check_answer_label: "Void date confirmation" check_answer_label: "Void date confirmation"

13
config/locales/forms/2024/lettings/soft_validations.en.yml

@ -17,7 +17,7 @@ en:
hint_text: "" hint_text: ""
question_text: "Are you sure this is correct?" question_text: "Are you sure this is correct?"
title_text: "You told us somebody in the household is pregnant." title_text: "You told us somebody in the household is pregnant."
informative_text: "You also told us that any female tenants living at the property are in the following age ranges:<ul><li>under 16 years old</li><li>over 50 years old</li></ul>" informative_text: "You also told us that any female tenants living at the property are in the following age ranges:<ul class=\"govuk-body-l app-panel--interruption\"><li>under 16 years old</li><li>over 50 years old</li></ul>"
no_retirement_value_check: no_retirement_value_check:
page_header: "" page_header: ""
@ -33,6 +33,7 @@ en:
hint_text: "" hint_text: ""
question_text: "Are you sure this person isn’t retired?" question_text: "Are you sure this person isn’t retired?"
title_text: "You told us this person is over 66 and not retired." title_text: "You told us this person is over 66 and not retired."
informative_text: ""
partner_under_16_value_check: partner_under_16_value_check:
page_header: "" page_header: ""
@ -57,7 +58,7 @@ en:
question_text: "Are you sure this doesn’t fit an existing category?" question_text: "Are you sure this doesn’t fit an existing category?"
title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}." title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}."
informative_text: "The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question." informative_text: "The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question."
referral_value_check: referral_value_check:
page_header: "" page_header: ""
check_answer_label: "Referral confirmation" check_answer_label: "Referral confirmation"
@ -65,7 +66,7 @@ en:
question_text: "Are you sure?" question_text: "Are you sure?"
title_text: "Are you sure?" title_text: "Are you sure?"
informative_text: "This is a general needs log, and this referral type is for supported housing." informative_text: "This is a general needs log, and this referral type is for supported housing."
net_income_value_check: net_income_value_check:
page_header: "" page_header: ""
check_answer_label: "Net income confirmation" check_answer_label: "Net income confirmation"
@ -73,7 +74,7 @@ en:
question_text: "Are you sure this is correct?" question_text: "Are you sure this is correct?"
title_text: "You told us that the household’s income is %{earnings} %{incfreq}." title_text: "You told us that the household’s income is %{earnings} %{incfreq}."
informative_text: "This is %{net_income_higher_or_lower_text} than we would expect for the household’s working situation." informative_text: "This is %{net_income_higher_or_lower_text} than we would expect for the household’s working situation."
care_home_charges_value_check: care_home_charges_value_check:
page_header: "" page_header: ""
check_answer_label: "Care home charges confirmation" check_answer_label: "Care home charges confirmation"
@ -113,7 +114,7 @@ en:
question_text: "Are you sure?" question_text: "Are you sure?"
title_text: "You told us the support charge is %{supcharg}." title_text: "You told us the support charge is %{supcharg}."
informative_text: "This is higher than we would expect." informative_text: "This is higher than we would expect."
void_date_value_check: void_date_value_check:
page_header: "" page_header: ""
check_answer_label: "Void date confirmation" check_answer_label: "Void date confirmation"
@ -128,4 +129,4 @@ en:
hint_text: "" hint_text: ""
question_text: "Are you sure the property has been vacant for this long?" question_text: "Are you sure the property has been vacant for this long?"
title_text: "You told us the property has been vacant for 2 years." title_text: "You told us the property has been vacant for 2 years."
informative_text: "This is higher than we would expect." informative_text: "This is longer than we would expect."

Loading…
Cancel
Save