From 294414613088b3a4ae2407cbdd44f7c891a1eb14 Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Mon, 10 Jan 2022 11:43:59 +0000 Subject: [PATCH] Cldc 705 cross section navigation (#200) * Add breadcrumbs for log page * Add check answers breadcrumb partial * Use govuk component for the breadcrumbs" * Move the field back in schema --- app/views/case_logs/edit.html.erb | 2 ++ app/views/form/check_answers.html.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index ab0466125..add9248c5 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -3,6 +3,8 @@ <%= turbo_frame_tag "case_log_form", target: "_top" do %>
+ <% breadcrumbs = { "Logs" => "/logs", content_for(:title) => "" } %> + <%= govuk_breadcrumbs(breadcrumbs: breadcrumbs) %>

<%= content_for(:title) %>

diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb index 1da554189..3eed12715 100644 --- a/app/views/form/check_answers.html.erb +++ b/app/views/form/check_answers.html.erb @@ -3,6 +3,8 @@ <%= turbo_frame_tag "case_log_form", target: "_top" do %>
+ <% breadcrumbs = { "Logs" => "/logs", "Log" => "/logs/" + @case_log.id.to_s, subsection.id.humanize => "" } %> + <%= govuk_breadcrumbs(breadcrumbs: breadcrumbs) %>

<%= subsection.id.humanize %> Check your answers