Browse Source

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
pull/202/head
kosiakkatrina 3 years ago committed by GitHub
parent
commit
2944146130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/views/case_logs/edit.html.erb
  2. 2
      app/views/form/check_answers.html.erb

2
app/views/case_logs/edit.html.erb

@ -3,6 +3,8 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop"> <div class="govuk-grid-column-two-thirds-from-desktop">
<% breadcrumbs = { "Logs" => "/logs", content_for(:title) => "" } %>
<%= govuk_breadcrumbs(breadcrumbs: breadcrumbs) %>
<h1 class="govuk-heading-l"> <h1 class="govuk-heading-l">
<%= content_for(:title) %> <%= content_for(:title) %>
</h1> </h1>

2
app/views/form/check_answers.html.erb

@ -3,6 +3,8 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters-from-desktop"> <div class="govuk-grid-column-three-quarters-from-desktop">
<% breadcrumbs = { "Logs" => "/logs", "Log" => "/logs/" + @case_log.id.to_s, subsection.id.humanize => "" } %>
<%= govuk_breadcrumbs(breadcrumbs: breadcrumbs) %>
<h1 class="govuk-heading-l"> <h1 class="govuk-heading-l">
<span class="govuk-caption-l"><%= subsection.id.humanize %></span> <span class="govuk-caption-l"><%= subsection.id.humanize %></span>
Check your answers Check your answers

Loading…
Cancel
Save