mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-03 19:18:25 -04:00
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.
31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/page-header.html" import page_header %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% from "components/ajax-block.html" import ajax_block %}
|
|
{% from "components/back-link/macro.njk" import govukBackLink %}
|
|
|
|
{% block service_page_title %}
|
|
{{ verb }} email reply-to address
|
|
{% endblock %}
|
|
|
|
{% block backLink %}
|
|
{% if replace %}
|
|
{% set back_link_href = url_for('.service_edit_email_reply_to', service_id=service_id, reply_to_email_id=replace) %}
|
|
{% else %}
|
|
{% set back_link_href = url_for('.service_add_email_reply_to', service_id=service_id) %}
|
|
{% endif %}
|
|
|
|
{{ govukBackLink({ "href": back_link_href }) }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
{{ page_header('{} email reply-to address'.format(verb)) }}
|
|
{{ ajax_block(
|
|
partials,
|
|
url_for('main.service_verify_reply_to_address_updates', service_id=service_id, notification_id=notification_id, is_default=is_default, replace=replace),
|
|
'status',
|
|
finished=finished
|
|
) }}
|
|
{% endblock %}
|