From 6747bd8bcf35b0243c9770872febdd462c803e98 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Tue, 31 Aug 2021 17:11:42 +0100 Subject: [PATCH] Change layout of tour pages showing service nav They have the service navigation inside the
block. This means you can't bypass it when you use the skiplink. This copies other layouts that inherit from admin_template.html and sets the contents of the 'main' template block so the service navigation is placed before the
tag. --- app/templates/views/broadcast/tour/6.html | 49 ++++++++++--------- .../views/broadcast/tour/live/1.html | 48 +++++++++--------- .../views/broadcast/tour/live/2.html | 39 ++++++++------- 3 files changed, 71 insertions(+), 65 deletions(-) diff --git a/app/templates/views/broadcast/tour/6.html b/app/templates/views/broadcast/tour/6.html index 10e30d69e..84fbea4c3 100644 --- a/app/templates/views/broadcast/tour/6.html +++ b/app/templates/views/broadcast/tour/6.html @@ -6,32 +6,33 @@ Notify has not sent your alert because you’re in training mode. {% endblock %} -{% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-0" %} +{% block main %} -{% block content %} - - {% include "service_navigation.html" %} - -
{% endblock %} diff --git a/app/templates/views/broadcast/tour/live/1.html b/app/templates/views/broadcast/tour/live/1.html index 37f4dde89..8b3726fda 100644 --- a/app/templates/views/broadcast/tour/live/1.html +++ b/app/templates/views/broadcast/tour/live/1.html @@ -8,30 +8,32 @@ {% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-0" %} -{% block content %} +{% block main %} - {% include "service_navigation.html" %} - -
- {% endblock %} diff --git a/app/templates/views/broadcast/tour/live/2.html b/app/templates/views/broadcast/tour/live/2.html index 73dbfece0..6fbf7db3b 100644 --- a/app/templates/views/broadcast/tour/live/2.html +++ b/app/templates/views/broadcast/tour/live/2.html @@ -8,26 +8,29 @@ {% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-0" %} -{% block content %} +{% block main %} - {% include "service_navigation.html" %} - -