Skip to content

Commit

Permalink
AP-5490 add inset text to CYA pages
Browse files Browse the repository at this point in the history
inform users that they cannot go back once they have gone past a CYA page
  • Loading branch information
RoseSAK committed Nov 21, 2024
1 parent 0d8fafa commit f478b88
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/providers/check_capital_answers/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<%= page_template(page_title: t(".h1-heading")) do %>

<%= govuk_inset_text do %>
<p class="govuk-body govuk-!-padding-bottom-2"><%= t(".inset_text") %></p>
<% end %>

<h2 class="govuk-heading-l"><%= t(".capital-section-heading#{individual}") %></h2>

<%= render "shared/check_answers/assets", individual: %>
Expand Down
4 changes: 4 additions & 0 deletions app/views/providers/check_merits_answers/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
form:,
) do %>

<%= govuk_inset_text do %>
<p class="govuk-body govuk-!-padding-bottom-2"><%= t(".inset_text") %></p>
<% end %>

<%= render(
"shared/check_answers/merits",
incident: @legal_aid_application.latest_incident,
Expand Down
4 changes: 4 additions & 0 deletions app/views/providers/check_provider_answers/_shared.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<%= govuk_inset_text do %>
<p class="govuk-body govuk-!-padding-bottom-2"><%= t(".inset_text") %></p>
<% end %>

<h2 class="govuk-heading-m"><%= t ".section_client.heading" %></h2>

<%= render(
Expand Down
4 changes: 4 additions & 0 deletions app/views/providers/means/check_income_answers/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

<%= page_template(page_title: t(".h1-heading")) do %>

<%= govuk_inset_text do %>
<p class="govuk-body govuk-!-padding-bottom-2"><%= t(".inset_text") %></p>
<% 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? %>
Expand Down
4 changes: 4 additions & 0 deletions config/locales/en/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f478b88

Please sign in to comment.