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

@@ -2316,6 +2316,8 @@ class ServiceBroadcastAccountTypeField(GovukRadiosField):
# (service_mode, broadcast_channel, allowed_broadcast_provider)
# to a value to be used in our form such as "live-severe-ee"
def process_data(self, value):
if isinstance(value, str):
return super().process_data(value)
(live, broadcast_channel, allowed_broadcast_provider) = value
account_type = None
if broadcast_channel: