Browse Source

Move breadcrumbs (#204)

* move breadcrumbs

* revert schema file change

* add whitespace
pull/208/head
kosiakkatrina 3 years ago committed by GitHub
parent
commit
f1e56f1df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/views/case_logs/edit.html.erb
  2. 4
      app/views/form/check_answers.html.erb
  3. 1
      app/views/layouts/application.html.erb

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

@ -1,10 +1,10 @@
<% content_for :title, "Log #{@case_log.id}" %> <% content_for :title, "Log #{@case_log.id}" %>
<% breadcrumbs = { "Logs" => "/logs", content_for(:title) => "" } %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: breadcrumbs) %>
<%= 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>

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

@ -1,10 +1,10 @@
<% content_for :title, "#{subsection.id.humanize} - Check your answers" %> <% content_for :title, "#{subsection.id.humanize} - Check your answers" %>
<% breadcrumbs = { "Logs" => "/logs", "Log" => "/logs/" + @case_log.id.to_s, subsection.id.humanize => "" } %>
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: breadcrumbs) %>
<%= 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

1
app/views/layouts/application.html.erb

@ -57,6 +57,7 @@
text: "This is a new service – #{govuk_mail_to("test@mhclg.gov.uk", "give feedback or report a problem", subject: "Feedback about Lettings and Sales of Social Housing in England Data Collection")}".html_safe text: "This is a new service – #{govuk_mail_to("test@mhclg.gov.uk", "give feedback or report a problem", subject: "Feedback about Lettings and Sales of Social Housing in England Data Collection")}".html_safe
) %> ) %>
<%= content_for(:breadcrumbs) %>
<%= content_for(:before_content) %> <%= content_for(:before_content) %>
<main class="govuk-main-wrapper" id="main-content" role="main"> <main class="govuk-main-wrapper" id="main-content" role="main">

Loading…
Cancel
Save