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:
Chris Hill-Scott
2021-05-12 13:26:13 +01:00
parent 773a51dec1
commit 7d66dadcd7
4 changed files with 196 additions and 10 deletions

View File

@@ -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),