From d8fac37f9742e574e2cef293abd7573df54671f3 Mon Sep 17 00:00:00 2001 From: abhiahirv1 Date: Thu, 7 Mar 2024 16:15:04 +0000 Subject: [PATCH 1/2] Correcting name --- locales/cy/what-is-your-date-of-birth.json | 4 ++-- locales/en/what-is-your-date-of-birth.json | 4 ++-- .../what-is-your-date-of-birth/what-is-your-date-of-birth.njk | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/locales/cy/what-is-your-date-of-birth.json b/locales/cy/what-is-your-date-of-birth.json index 532615cb8..0443fcf03 100644 --- a/locales/cy/what-is-your-date-of-birth.json +++ b/locales/cy/what-is-your-date-of-birth.json @@ -1,6 +1,6 @@ { - "whereDoYouLiveTitle" : "What is your date of birth? welsh", - "whereDoYouLiveHint" : "For example, 31 3 1980 welsh", + "dateOfBirthTitle" : "What is your date of birth? welsh", + "dateOfBirthHint" : "For example, 31 3 1980 welsh", "day": "Day welsh", "month": "Month welsh", "year": "Year welsh", diff --git a/locales/en/what-is-your-date-of-birth.json b/locales/en/what-is-your-date-of-birth.json index d7869c329..ce1ae465e 100644 --- a/locales/en/what-is-your-date-of-birth.json +++ b/locales/en/what-is-your-date-of-birth.json @@ -1,6 +1,6 @@ { - "whereDoYouLiveTitle" : "What is your date of birth?", - "whereDoYouLiveHint" : "For example, 31 3 1980", + "dateOfBirthTitle" : "What is your date of birth?", + "dateOfBirthHint" : "For example, 31 3 1980", "day": "Day", "month": "Month", "year": "Year", diff --git a/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk b/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk index 2205550be..9e9d5406f 100644 --- a/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk +++ b/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk @@ -24,13 +24,13 @@ namePrefix: "dob", fieldset: { legend: { - text: i18n.whereDoYouLiveTitle, + text: i18n.dateOfBirthTitle, isPageHeading: true, classes: "govuk-fieldset__legend--l" } }, hint: { - text: "For example, 31 3 1980" + text: i18n.dateOfBirthHint }, errorMessage: { text: errorMessageText From 9da629930093f2a81bfdf16b6742a7c5171a9bbb Mon Sep 17 00:00:00 2001 From: abhiahirv1 Date: Thu, 7 Mar 2024 16:28:56 +0000 Subject: [PATCH 2/2] Correcting name --- .../what-is-your-date-of-birth.njk | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk b/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk index 9e9d5406f..49060f870 100644 --- a/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk +++ b/src/main/views/features/sole-trader/what-is-your-date-of-birth/what-is-your-date-of-birth.njk @@ -38,25 +38,28 @@ items: [ { - name: i18n.day, + name: "day", classes: "govuk-input--error govuk-input--width-2" if errors else "govuk-input--width-2", autocomplete: "bday-day", id: "dob-day", - value: payload["dob-day"] + value: payload["dob-day"], + label: i18n.day }, { - name: i18n.month, + name: "month", classes: "govuk-input--error govuk-input--width-2" if errors else "govuk-input--width-2", autocomplete: "bday-month", id: "dob-month", - value: payload["dob-month"] + value: payload["dob-month"], + label: i18n.month }, { - name: i18n.year, + name: "year", classes: "govuk-input--error govuk-input--width-4" if errors else "govuk-input--width-4", autocomplete: "bday-year", id: "dob-year", - value: payload["dob-year"] + value: payload["dob-year"], + label: i18n.year } ] }) }}