Add confirmation step to emergency alert settings

It feels quite dangerous that it’s just one click to make an emergency
alerts service live.

This commit adds a confirmation step which explains the consequences of
what you’re about to do.
This commit is contained in:
Chris Hill-Scott
2021-05-10 22:00:09 +01:00
parent 78824f54fd
commit ffd844b2a7
7 changed files with 185 additions and 9 deletions

View File

@@ -0,0 +1,53 @@
{% 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 %}
{% block service_page_title %}
Confirm emergency alert settings
{% endblock %}
{% block maincolumn_content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-five-sixths">
{{ page_header(
'Confirm emergency alert settings',
back_link=url_for('.service_set_broadcast_account_type', service_id=current_service.id)
) }}
{% if form.account_type.service_mode == 'training' %}
<p class="govuk-body">
<span class="navigation-service-type navigation-service-type--training govuk-!-margin-left-0">Training</span>
</p>
<p class="govuk-body">
No phones will receive alerts sent from this service.
</p>
{% else %}
<p class="govuk-body">
<span class="navigation-service-type navigation-service-type--live govuk-!-margin-left-0">
{% if form.account_type.broadcast_channel == 'severe' %}
Live
{% elif form.account_type.broadcast_channel == 'test' %}
Test
{% endif %}
{% if form.account_type.provider_restriction != 'all' %}
({{ form.account_type.provider_restriction|format_mobile_network }})
{% endif %}
</span>
</p>
<p class="govuk-body">
Members of the public
{% if form.account_type.broadcast_channel == 'test' %}
who have switched on the test channel on their phones
{% endif %}
will receive alerts sent from this service.
</p>
{% endif %}
{% call form_wrapper() %}
{{ page_footer('Confirm') }}
{% endcall %}
</div>
</div>
{% endblock %}

View File

@@ -6,7 +6,7 @@
{% block service_page_title %}
Send cell broadcasts
{% endblock %}
{% block maincolumn_content %}
<div class="govuk-grid-row">
@@ -24,7 +24,7 @@
}
}
}) }}
{{ page_footer('Save') }}
{{ page_footer('Continue') }}
{% endcall %}
</div>
</div>