mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Add backLink block to templates
This will be used to put the back link in, since it it is before the `<main>` tag. We could have used the `beforeContent` block directly, but that sometimes already has content in - this means it's not clear when you also need to use `super()` inside the block and when you don't.
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
{% include "org_nav.html" %}
|
||||
</div>
|
||||
<div class="govuk-grid-column-three-quarters">
|
||||
{% block beforeContent %}{% endblock %}
|
||||
{% block beforeContent %}
|
||||
{% block backLink %}{% endblock %}
|
||||
{% endblock %}
|
||||
<main class="govuk-main-wrapper column-main govuk-!-padding-top-0 govuk-!-padding-bottom-0" id="main-content" role="main" >
|
||||
{% block content %}
|
||||
{% include 'flash_messages.html' %}
|
||||
|
||||
Reference in New Issue
Block a user