mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
We don’t want one person going full yolo and start broadcasting without any oversight. This commit changes the flow so that the button on the ‘preview’ page puts the broadcast into `pending-approval`, rather than directly into `broadcasting`.
35 lines
971 B
HTML
35 lines
971 B
HTML
{% from "components/button/macro.njk" import govukButton %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% from "components/page-header.html" import page_header %}
|
|
{% from "components/page-footer.html" import sticky_page_footer %}
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
{% block service_page_title %}
|
|
Preview message
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
{{ page_header("Preview", back_link=url_for('.preview_broadcast_areas', service_id=current_service.id, broadcast_message_id=broadcast_message.id)) }}
|
|
|
|
{% for area in broadcast_message.areas %}
|
|
{% if loop.first %}
|
|
<ul class="area-list">
|
|
{% endif %}
|
|
<li class="area-list-item area-list-item--unremoveable">
|
|
{{ area.name }}
|
|
</li>
|
|
{% if loop.last %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{{ broadcast_message.template|string }}
|
|
|
|
{% call form_wrapper() %}
|
|
{{ sticky_page_footer('Submit for approval') }}
|
|
{% endcall %}
|
|
|
|
{% endblock %}
|