From d823ea7f47ea73da8157cb2164969d3543dfd55f Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Tue, 24 Sep 2024 15:02:57 +0100 Subject: [PATCH 1/2] Move accessibility dates to locales We want to be able to set these per journey as different journeys will be audited at different times. --- .../accessibility_statement.html.erb | 4 +-- config/locales/en.yml | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/app/views/static_pages/accessibility_statement.html.erb b/app/views/static_pages/accessibility_statement.html.erb index 2c9c631a18..2dfbee2277 100644 --- a/app/views/static_pages/accessibility_statement.html.erb +++ b/app/views/static_pages/accessibility_statement.html.erb @@ -95,11 +95,11 @@

How we tested this website

- This website was last tested on 28 July 2022. The test was carried out by the Department for Education. + This website was last tested on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.test_date") %>. The test was carried out by the Department for Education.

- This statement was prepared on 31 July 2019. It was last updated on 28 July 2022. + This statement was prepared on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.prepared_date") %>. It was last updated on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.updated_date") %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index c0e041b482..43ebc11b78 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -290,6 +290,10 @@ en: mobile_number_verified: "You must verify your mobile number before you can submit your claim" already_submitted: "You have already submitted this claim" student_loans: + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" forms: claim_school: questions: @@ -436,6 +440,10 @@ en: matching_details: title: "Is this claim still valid despite having matching details with other claims?" additional_payments: &additional_payments + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" forms: correct_school: questions: @@ -698,6 +706,10 @@ en: support_email_address: "schools-targeted.retention-incentive@education.gov.uk" information_provided_further_details_link_text: school targeted retention incentive (opens in new tab) get_a_teacher_relocation_payment: &get_a_teacher_relocation_payment + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" journey_name: "Get a teacher relocation payment" feedback_email: "international.RELOCATIONPAYMENT@education.gov.uk" claim_description: "for a get a teacher relocation payment" @@ -847,6 +859,10 @@ en: teaching_hours: title: "Does the teacher meet the minimum 50% teaching time requirement in their role?" further_education_payments: + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" landing_page: Find out if you are eligible for a targeted retention incentive payment for further education teachers claim_description: for further education payments journey_name: Claim a targeted retention incentive payment for further education teachers @@ -1196,6 +1212,10 @@ en: correct. btn_text: Accept and send further_education_payments_provider: + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" journey_name: Claim a targeted retention incentive payment for further education teachers - provider feedback_email: "FE-targeted.retention-incentive@education.gov.uk" support_email_address: "FE-targeted.retention-incentive@education.gov.uk" @@ -1275,6 +1295,10 @@ en: early_years_payment: claim_description: for an early years financial incentive payment early_years_payment_provider_start: + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" claim_description: for an early years financial incentive payment journey_name: Claim an early years financial incentive payment - start landing_page: @@ -1286,6 +1310,10 @@ en: email_address: question: Enter your email address early_years_payment_provider_authenticated: &early_years_payment_provider_authenticated + accessibility_statement: + test_date: "28 July 2022" + prepared_date: "31 July 2019" + updated_date: "28 July 2022" claim_description: for an early years financial incentive payment journey_name: Claim an early years financial incentive payment - provider feedback_email: "help@opsteam.education.gov.uk" From 599337fda7f8c080cb548befeafe77169663a090 Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Tue, 24 Sep 2024 15:08:59 +0100 Subject: [PATCH 2/2] Add the provider journey dates Adds the dates for the provider journey accessibility statement. As this statment hasn't been updated we now branch on whether this key is present or not --- app/views/static_pages/accessibility_statement.html.erb | 5 ++++- config/locales/en.yml | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/static_pages/accessibility_statement.html.erb b/app/views/static_pages/accessibility_statement.html.erb index 2dfbee2277..32f9db896f 100644 --- a/app/views/static_pages/accessibility_statement.html.erb +++ b/app/views/static_pages/accessibility_statement.html.erb @@ -99,7 +99,10 @@

- This statement was prepared on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.prepared_date") %>. It was last updated on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.updated_date") %> + This statement was prepared on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.prepared_date") %>. + <% if I18n.exists?("#{journey::I18N_NAMESPACE}.accessibility_statement.updated_date") %> + It was last updated on <%= I18n.t("#{journey::I18N_NAMESPACE}.accessibility_statement.updated_date") %> + <% end %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 43ebc11b78..c795a34418 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1213,9 +1213,8 @@ en: btn_text: Accept and send further_education_payments_provider: accessibility_statement: - test_date: "28 July 2022" - prepared_date: "31 July 2019" - updated_date: "28 July 2022" + test_date: "20 September 2024" + prepared_date: "24 September 2024" journey_name: Claim a targeted retention incentive payment for further education teachers - provider feedback_email: "FE-targeted.retention-incentive@education.gov.uk" support_email_address: "FE-targeted.retention-incentive@education.gov.uk"