From f478b88870cbf746b8b6b52bcd259cd30c7f5153 Mon Sep 17 00:00:00 2001 From: RoseSAK Date: Thu, 21 Nov 2024 16:51:56 +0000 Subject: [PATCH] AP-5490 add inset text to CYA pages inform users that they cannot go back once they have gone past a CYA page --- app/views/providers/check_capital_answers/show.html.erb | 4 ++++ app/views/providers/check_merits_answers/show.html.erb | 4 ++++ app/views/providers/check_provider_answers/_shared.html.erb | 4 ++++ app/views/providers/means/check_income_answers/show.html.erb | 4 ++++ config/locales/en/providers.yml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/app/views/providers/check_capital_answers/show.html.erb b/app/views/providers/check_capital_answers/show.html.erb index 746d67ee93..5495571d45 100644 --- a/app/views/providers/check_capital_answers/show.html.erb +++ b/app/views/providers/check_capital_answers/show.html.erb @@ -2,6 +2,10 @@ <%= page_template(page_title: t(".h1-heading")) do %> + <%= govuk_inset_text do %> +

<%= t(".inset_text") %>

+ <% end %> +

<%= t(".capital-section-heading#{individual}") %>

<%= render "shared/check_answers/assets", individual: %> diff --git a/app/views/providers/check_merits_answers/show.html.erb b/app/views/providers/check_merits_answers/show.html.erb index 70f1b38de2..e95bfb1f8e 100644 --- a/app/views/providers/check_merits_answers/show.html.erb +++ b/app/views/providers/check_merits_answers/show.html.erb @@ -18,6 +18,10 @@ form:, ) do %> + <%= govuk_inset_text do %> +

<%= t(".inset_text") %>

+ <% end %> + <%= render( "shared/check_answers/merits", incident: @legal_aid_application.latest_incident, diff --git a/app/views/providers/check_provider_answers/_shared.html.erb b/app/views/providers/check_provider_answers/_shared.html.erb index 3edd97d2c7..286b8e2efa 100644 --- a/app/views/providers/check_provider_answers/_shared.html.erb +++ b/app/views/providers/check_provider_answers/_shared.html.erb @@ -1,3 +1,7 @@ +<%= govuk_inset_text do %> +

<%= t(".inset_text") %>

+<% end %> +

<%= t ".section_client.heading" %>

<%= render( diff --git a/app/views/providers/means/check_income_answers/show.html.erb b/app/views/providers/means/check_income_answers/show.html.erb index a2590eb529..254fd5bcfd 100644 --- a/app/views/providers/means/check_income_answers/show.html.erb +++ b/app/views/providers/means/check_income_answers/show.html.erb @@ -6,6 +6,10 @@ <%= page_template(page_title: t(".h1-heading")) do %> + <%= govuk_inset_text do %> +

<%= t(".inset_text") %>

+ <% end %> + <%= render "providers/means/check_income_answers/applicant_income_assessment" %> <%= render "providers/means/check_income_answers/partner_income_assessment" if @legal_aid_application.applicant.has_partner_with_no_contrary_interest? %> diff --git a/config/locales/en/providers.yml b/config/locales/en/providers.yml index 9b935dc00c..a0f2ec6f81 100644 --- a/config/locales/en/providers.yml +++ b/config/locales/en/providers.yml @@ -268,6 +268,7 @@ en: show: banner_text: The merits information was copied from %{application_ref}. h1-heading: Check your answers + inset_text: You cannot change the answers on this page once you save and continue. confirm_separate_representation_required: I confirm my client wants separate representation confirm_client_declarations: show: @@ -344,6 +345,7 @@ en: sent_email_text: "We've sent an email to %{email}" change_email_button: Change email and resend link shared: + inset_text: You cannot change the answers on this page once you save and continue. change: Change proceeding: Proceeding section_client: @@ -1058,6 +1060,7 @@ en: show: *remove_show check_income_answers: show: + inset_text: You cannot change the answers on this page once you save and continue. h1-heading: Check your answers what_happens_next: heading: What happens next @@ -1344,6 +1347,7 @@ en: check_capital_answers: show: h1-heading: Check your answers + inset_text: You cannot change the answers on this page once you save and continue. capital-section-heading: Your client's capital capital-section-heading_with_partner: Your client's and their partner's capital what_happens_next: