From a1a8f882a3e6163440a0e15e9a6366d5a25d2db0 Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Mon, 23 Sep 2024 14:53:05 +0100 Subject: [PATCH] Add link to view tasks Adds a link to the task index page as per the figma designs --- app/views/admin/tasks/_claim_summary.html.erb | 1 + .../tasks/_claim_summary_further_education_payments.html.erb | 1 + .../_claim_summary_international_relocation_payments.html.erb | 1 + 3 files changed, 3 insertions(+) diff --git a/app/views/admin/tasks/_claim_summary.html.erb b/app/views/admin/tasks/_claim_summary.html.erb index 6197d0c2b5..f99af0d224 100644 --- a/app/views/admin/tasks/_claim_summary.html.erb +++ b/app/views/admin/tasks/_claim_summary.html.erb @@ -5,6 +5,7 @@ <%= claim_summary_heading(claim) %> + <%= link_to "View tasks", admin_claim_tasks_path(claim), class: "govuk-link" unless current_page? admin_claim_tasks_path(@claim) %> <%= link_to "View full claim", admin_claim_path(claim), class: "govuk-link" %> <%= link_to "Amend claim", new_admin_claim_amendment_path(claim), class: "govuk-link" if claim.amendable? %> <%= link_to "Top up claim", new_admin_claim_topup_path(@claim), class: "govuk-link" if @claim.topupable? %> diff --git a/app/views/admin/tasks/_claim_summary_further_education_payments.html.erb b/app/views/admin/tasks/_claim_summary_further_education_payments.html.erb index 39b790187f..4f88ba0ad7 100644 --- a/app/views/admin/tasks/_claim_summary_further_education_payments.html.erb +++ b/app/views/admin/tasks/_claim_summary_further_education_payments.html.erb @@ -5,6 +5,7 @@ <%= claim_summary_heading(claim) %> + <%= link_to "View tasks", admin_claim_tasks_path(claim), class: "govuk-link" %> <%= link_to "View full claim", admin_claim_path(claim), class: "govuk-link" %> <%= link_to "Amend claim", new_admin_claim_amendment_path(claim), class: "govuk-link" if claim.amendable? %> <%= link_to "Top up claim", new_admin_claim_topup_path(@claim), class: "govuk-link" if @claim.topupable? %> diff --git a/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb b/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb index d62e8afb41..1c165b75a0 100644 --- a/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb +++ b/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb @@ -5,6 +5,7 @@ <%= claim_summary_heading(claim) %> + <%= link_to "View tasks", admin_claim_tasks_path(claim), class: "govuk-link" %> <%= link_to "View full claim", admin_claim_path(claim), class: "govuk-link" %> <%= link_to "Amend claim", new_admin_claim_amendment_path(claim), class: "govuk-link" if claim.amendable? %> <%= link_to "Top up claim", new_admin_claim_topup_path(@claim), class: "govuk-link" if @claim.topupable? %>