Browse Source

Update validation message: void date, major repairs date

pull/1584/head
Kat 3 years ago
parent
commit
7580bd556d
  1. 5
      app/models/form/lettings/pages/property_major_repairs_value_check.rb
  2. 5
      app/models/form/lettings/pages/void_date_value_check.rb
  3. 2
      app/views/form/_interruption_screen_question.html.erb
  4. 10
      config/forms/2022_2023.json
  5. 6
      config/locales/en.yml

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

@ -4,7 +4,10 @@ class Form::Lettings::Pages::PropertyMajorRepairsValueCheck < ::Form::Page
@id = "property_major_repairs_value_check"
@depends_on = [{ "major_repairs_date_in_soft_range?" => true }]
@title_text = { "translation" => "soft_validations.major_repairs_date.title_text" }
@informative_text = {}
@informative_text = {
"translation" => "soft_validations.major_repairs_date.hint_text",
"arguments" => [],
}
end
def questions

5
app/models/form/lettings/pages/void_date_value_check.rb

@ -4,7 +4,10 @@ class Form::Lettings::Pages::VoidDateValueCheck < ::Form::Page
@id = "void_date_value_check"
@depends_on = [{ "voiddate_in_soft_range?" => true }]
@title_text = { "translation" => "soft_validations.void_date.title_text" }
@informative_text = {}
@informative_text = {
"translation" => "soft_validations.void_date.hint_text",
"arguments" => [],
}
end
def questions

2
app/views/form/_interruption_screen_question.html.erb

@ -1,7 +1,7 @@
<%= render partial: "form/interruption_screen_banner", locals: { question:, title_text:, informative_text:, lettings_log: } %>
<h1 class="govuk-heading-m">
Make sure these answers are all correct
Make sure these answers are correct:
</h1>
<div class="x-govuk-summary-card govuk-!-margin-bottom-6">
<div class="x-govuk-summary-card__body">

10
config/forms/2022_2023.json

@ -789,7 +789,10 @@
"title_text": {
"translation": "soft_validations.void_date.title_text"
},
"informative_text": {},
"informative_text": {
"translation": "soft_validations.void_date.hint_text",
"arguments": []
},
"questions": {
"void_date_value_check": {
"check_answer_label": "Void date confirmation",
@ -899,7 +902,10 @@
"title_text": {
"translation": "soft_validations.major_repairs_date.title_text"
},
"informative_text": {},
"informative_text": {
"translation": "soft_validations.major_repairs_date.hint_text",
"arguments": []
},
"questions": {
"major_repairs_date_value_check": {
"check_answer_label": "Major repairs date confirmation",

6
config/locales/en.yml

@ -547,9 +547,11 @@ en:
no_females: "You also told us there are no female tenants living at the property."
females_not_in_soft_age_range: "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>"
major_repairs_date:
title_text: "You told us the time between the start of the tenancy and the major repairs completion date is more than 2 years"
title_text: "You told us the property has been vacant for 2 years."
hint_text: "This is higher than we would expect."
void_date:
title_text: "You told us the time between the start of the tenancy and the void date is more than 2 years"
title_text: "You told us that the property has been vacant for more than 2 years."
hint_text: "This is higher than we would expect."
shared_ownership_deposit:
title_text: "Mortgage, deposit and cash discount total should equal %{expected_shared_ownership_deposit_value}"
old_persons_shared_ownership: "At least one buyer should be aged over 64 for Older persons’ shared ownership scheme"

Loading…
Cancel
Save