Move back link above main content for straightforward cases

This moves the back link to be above the `<main>` tag by making use of
the new `backLink` block. This doesn't change the pages which are using
a back link as part of the `page_header` macro yet.
This commit is contained in:
Katie Smith
2021-07-30 14:42:54 +01:00
parent 0b9f1053b3
commit 1860b2b690
16 changed files with 64 additions and 33 deletions

View File

@@ -15,9 +15,12 @@
{{ page_title }}
{% endblock %}
{% block backLink %}
{{ govukBackLink({ "href": url_for('.user_profile') }) }}
{% endblock %}
{% block maincolumn_content %}
{{ govukBackLink({ "href": url_for('.user_profile') }) }}
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
{{ page_header(page_title) }}