From 662acd016e02d25f93027a4d022823ae5897084c Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 9 Sep 2024 11:56:37 +0100 Subject: [PATCH 1/3] fix back link --- app/views/admin/tasks/payroll_gender.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tasks/payroll_gender.html.erb b/app/views/admin/tasks/payroll_gender.html.erb index f6dd4722d8..e98c1343b4 100644 --- a/app/views/admin/tasks/payroll_gender.html.erb +++ b/app/views/admin/tasks/payroll_gender.html.erb @@ -1,6 +1,7 @@ <% content_for(:page_title) { page_title("Claim #{@claim.reference} payroll gender check for #{@claim.policy.short_name}") } %> - -<%= link_to "Back", admin_claim_tasks_path(claim_id: @claim.id), class: "govuk-back-link" %> +<% content_for :back_link do %> + <%= link_to "Back", admin_claim_tasks_path(claim_id: @claim.id), class: "govuk-back-link" %> +<% end %> <%= render "shared/error_summary", instance: @claim, errored_field_id_overrides: { "payroll_gender": "claim_payroll_gender_female" } if @claim.errors.any? %>
From 26562e2abe94939058663d8f20284deb87a117c3 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 9 Sep 2024 13:00:40 +0100 Subject: [PATCH 2/3] change admin hint copy for FE payroll gender --- .../decisions/_incomplete_tasks.html.erb | 2 +- app/views/admin/tasks/index.html.erb | 4 +- app/views/admin/tasks/payroll_gender.html.erb | 3 +- config/locales/en.yml | 56 +++++++++++++------ .../admin_claim_payroll_details_task_spec.rb | 4 +- .../admin_claim_with_matching_details_spec.rb | 2 +- ..._claim_with_missing_payroll_gender_spec.rb | 2 +- ...in_claim_without_verified_identity_spec.rb | 2 +- .../admin_checks_feature_shared_examples.rb | 6 +- 9 files changed, 50 insertions(+), 31 deletions(-) diff --git a/app/views/admin/decisions/_incomplete_tasks.html.erb b/app/views/admin/decisions/_incomplete_tasks.html.erb index fb97b38362..f454eb1604 100644 --- a/app/views/admin/decisions/_incomplete_tasks.html.erb +++ b/app/views/admin/decisions/_incomplete_tasks.html.erb @@ -6,7 +6,7 @@
    <% incomplete_task_names.each do |name| %> -
  • <%= link_to(t("admin.tasks.#{name}"), admin_claim_task_url(claim, name: name)) %>
  • +
  • <%= link_to(t("admin.tasks.#{name}.title"), admin_claim_task_url(claim, name: name)) %>
  • <% end %>
diff --git a/app/views/admin/tasks/index.html.erb b/app/views/admin/tasks/index.html.erb index b058e8f2dd..859bca8128 100644 --- a/app/views/admin/tasks/index.html.erb +++ b/app/views/admin/tasks/index.html.erb @@ -11,7 +11,7 @@

- <%= link_to "Multiple claims", admin_claim_task_path(claim_id: @claim.id, name: "matching_details") %> + <%= link_to "Multiple claims", admin_claim_task_path(claim_id: @claim.id, name: "matching_details") %> with matching details have been made in this claim window.

@@ -39,7 +39,7 @@