mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -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.
39 lines
1.4 KiB
HTML
39 lines
1.4 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/radios.html" import radio, conditional_radio_panel %}
|
|
{% from "components/select-input.html" import select_wrapper %}
|
|
{% from "components/back-link/macro.njk" import govukBackLink %}
|
|
|
|
{% block service_page_title %}
|
|
Choose a mobile network
|
|
{% endblock %}
|
|
|
|
{% block backLink %}
|
|
{{ govukBackLink({ "href": url_for('.service_set_broadcast_channel', service_id=current_service.id) }) }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<div class="govuk-grid-row">
|
|
<div class="govuk-grid-column-five-sixths">
|
|
{{ page_header('Choose a mobile network') }}
|
|
{% call form_wrapper() %}
|
|
{% call select_wrapper(form.all_networks, hide_legend=True) %}
|
|
{% for option in form.all_networks %}
|
|
{{ radio(option, data_target='single-network' if option.data == False else None) }}
|
|
{% endfor %}
|
|
{% endcall %}
|
|
{% call conditional_radio_panel('single-network') %}
|
|
{{ form.network(
|
|
param_extensions={'fieldset': {'legend': {'classes': 'govuk-visually-hidden'}}}
|
|
) }}
|
|
{% endcall %}
|
|
{{ page_footer('Continue') }}
|
|
{% endcall %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|