Files
notifications-admin/app/templates/views/templates/breaking-change.html
Katie Smith 0f0b8b8ae4 Move back link outside of main where it was used in the page header
The page_header macro includes an optional back link. Since the
page_header is always used inside `<main>`, where the back link should
not be, this stops setting the back link in the page header and instead
sets it in the new `backLink` block.
2021-08-03 11:28:15 +01:00

47 lines
1.8 KiB
HTML

{% extends "withnav_template.html" %}
{% from "components/banner.html" import banner_wrapper %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/list.html" import list_of_placeholders, list_of_code_snippets %}
{% from "components/form.html" import form_wrapper %}
{% from "components/back-link/macro.njk" import govukBackLink %}
{% block service_page_title %}
Confirm changes
{% endblock %}
{% block backLink %}
{{ govukBackLink({ "href": url_for(".edit_service_template", service_id=current_service.id, template_id=new_template.id) }) }}
{% endblock %}
{% block maincolumn_content %}
{{ page_header('Confirm changes') }}
<div class="govuk-grid-row">
<div class="govuk-grid-column-five-sixths">
{% if template_change.placeholders_removed %}
<p class="govuk-body">
You removed {{ list_of_placeholders(template_change.placeholders_removed) }}
</p>
{% endif %}
<p class="govuk-body">
You added {{ list_of_placeholders(template_change.placeholders_added) }}
</p>
<p class="govuk-body">
Before you send any messages, make sure your API calls include {{ list_of_code_snippets(template_change.placeholders_added) }}.
</p>
</div>
</div>
{% call form_wrapper() %}
<input type="hidden" name="name" value="{{ new_template.name }}" />
<input type="hidden" name="subject" value="{{ new_template._subject or '' }}" />
<input type="hidden" name="template_content" value="{{ new_template.content }}" />
<input type="hidden" name="template_id" value="{{ new_template.id }}" />
<input type="hidden" name="confirm" value="true" />
{{ page_footer('Save changes to template') }}
{% endcall %}
{% endblock %}