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. 3
      config/locales/forms/2023/lettings/soft_validations.en.yml
  5. 5
      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)
super
@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 }]
@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 }]
@title_text = { "translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text" }
@informative_text = {
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text",
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.informative_text",
"arguments" => [],
}
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)
super
@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"
@check_answers_card_number = 0
@answer_options = ANSWER_OPTIONS

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

@ -17,7 +17,7 @@ en:
hint_text: ""
question_text: "Are you sure this is correct?"
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:
page_header: ""
@ -33,6 +33,7 @@ en:
hint_text: ""
question_text: "Are you sure this person isn’t retired?"
title_text: "You told us this person is over 66 and not retired."
informative_text: ""
partner_under_16_value_check:
page_header: ""

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

@ -17,7 +17,7 @@ en:
hint_text: ""
question_text: "Are you sure this is correct?"
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:
page_header: ""
@ -33,6 +33,7 @@ en:
hint_text: ""
question_text: "Are you sure this person isn’t retired?"
title_text: "You told us this person is over 66 and not retired."
informative_text: ""
partner_under_16_value_check:
page_header: ""
@ -128,4 +129,4 @@ en:
hint_text: ""
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."
informative_text: "This is higher than we would expect."
informative_text: "This is longer than we would expect."

Loading…
Cancel
Save