From 5adb68abb33fb2709cb10f242b111d1d6031635d Mon Sep 17 00:00:00 2001 From: kiddhustle Date: Fri, 29 Apr 2022 10:17:46 +0100 Subject: [PATCH] CLDC-1176: update hint and error text --- app/views/form/_date_question.html.erb | 2 +- config/forms/2021_2022.json | 4 ++-- config/locales/en.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/form/_date_question.html.erb b/app/views/form/_date_question.html.erb index 1778e5674..753ea5ba1 100644 --- a/app/views/form/_date_question.html.erb +++ b/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) %> diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index eaccaf64b..b09a64911 100644 --- a/config/forms/2021_2022.json +++ b/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" } }, diff --git a/config/locales/en.yml b/config/locales/en.yml index e5eee6723..bfa4fd30b 100644 --- a/config/locales/en.yml +++ b/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: