Browse Source

CLDC-1176: update hint and error text

pull/535/head
kiddhustle 3 years ago
parent
commit
5adb68abb3
  1. 2
      app/views/form/_date_question.html.erb
  2. 4
      config/forms/2021_2022.json
  3. 2
      config/locales/en.yml

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

@ -3,6 +3,6 @@
<%= f.govuk_date_field question.id.to_sym,
caption: caption(caption_text, page_header, conditional),
legend: legend(question, page_header, conditional),
hint: { text: question.hint_text&.html_safe || "For example, 27 3 2021." },
hint: { text: question.hint_text&.html_safe || "For example, 1 9 2022." },
width: 20,
**stimulus_html_attributes(question) %>

4
config/forms/2021_2022.json

@ -818,7 +818,7 @@
"voiddate": {
"check_answer_label": "Void or renewal date",
"header": "What is the void or renewal date?",
"hint_text": "For example, 27 3 2021.",
"hint_text": "For example, 1 9 2022.",
"type": "date"
}
},
@ -917,7 +917,7 @@
"mrcdate": {
"check_answer_label": "Completion date of repairs",
"header": "When were the repairs completed?",
"hint_text": "For example, 27 3 2021.",
"hint_text": "For example, 1 9 2022.",
"type": "date"
}
},

2
config/locales/en.yml

@ -41,7 +41,7 @@ en:
numeric:
valid: "%{field} must be between %{min} and %{max}"
date:
invalid_date: "Please enter a valid date"
invalid_date: "Enter a date in the correct format, for example 1 9 2022"
outside_collection_window: "Date must be within the current collection windows"
postcode: "Enter a postcode in the correct format, for example AA1 1AA"
email:

Loading…
Cancel
Save