mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 16:28:24 -04:00
Add a confirmation checkbox for live broadcasts
We want people to be really sure before sending a live broadcast, not just clicking through the green buttons. This commit adds a checkbox which explains exactly the consequences of what they’re about to do, tailored to the channel they’re on, and the area chosen by the person creating the alert.
This commit is contained in:
@@ -92,6 +92,17 @@
|
||||
wants to broadcast
|
||||
{{ broadcast_message.template.name }}
|
||||
</h1>
|
||||
{% if current_service.live %}
|
||||
{{ form.confirm(param_extensions={
|
||||
'formGroup': {
|
||||
'classes': 'govuk-!-margin-bottom-4'
|
||||
}
|
||||
}) }}
|
||||
{% else %}
|
||||
<p class="govuk-body govuk-!-margin-bottom-3">
|
||||
No phones will get this alert.
|
||||
</p>
|
||||
{% endif %}
|
||||
{{ page_footer(
|
||||
"Start broadcasting now",
|
||||
delete_link=url_for('main.reject_broadcast_message', service_id=current_service.id, broadcast_message_id=broadcast_message.id),
|
||||
|
||||
Reference in New Issue
Block a user