Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add breadcrumbs to pages without them #3168

Merged
merged 16 commits into from
May 13, 2024
9 changes: 8 additions & 1 deletion app/views/schools/availability_preferences/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%- self.page_title = "Choose how dates are displayed" %>
<%- self.page_title = "Choose how dates are displayed"

self.breadcrumbs = {
@current_school.name => schools_dashboard_path,
'Choose how dates are displayed' => nil
}

%>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand Down
2 changes: 1 addition & 1 deletion app/views/schools/contact_us/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% self.page_title = "Contact us" %>

<% content_for :back_link do govuk_back_link(schools_dashboard_path); end %>
MylesJarvis marked this conversation as resolved.
Show resolved Hide resolved
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l">Contact us</h1>
Expand Down
2 changes: 2 additions & 0 deletions app/views/schools/organisation_access_requests/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<% content_for :back_link do govuk_back_link(schools_dashboard_path); end %>
<div id="dsi-org-access-request" class="govuk-grid-row">
<div class="govuk-grid-column-full">
<section>

<%= page_heading "Request access to another organisation" %>

<% if @dfe_sign_in_request_organisation_url %>
Expand Down
9 changes: 8 additions & 1 deletion app/views/schools/toggle_enabled/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<% self.page_title = "Toggle requests" %>
<% self.page_title = "Toggle requests"

MylesJarvis marked this conversation as resolved.
Show resolved Hide resolved
self.breadcrumbs = {
@current_school.name => schools_dashboard_path,
'Turn profile on or off' => nil
}

%>

<%= form_for @current_school, url: schools_enabled_path, method: 'patch' do |f| %>
<%= f.govuk_radio_buttons_fieldset(:enabled) do %>
Expand Down
Loading