2020-09-08 16:35:03 +01:00
{% macro map(broadcast_message) %}
2020-10-05 13:47:21 +01:00
< div id = "area-list-map" ></ div >
2021-10-07 14:29:51 +01:00
< p class = "area-list-key area-list-key--certain" >
2021-11-03 19:50:12 +00:00
< svg class = "area-list-key__icon" width = "50" height = "50" viewbox = "0 0 50 50" aria-hidden = "true" xmlns = "http://www.w3.org/2000/svg" >
< rect x = "0" y = "0" width = "100%" height = "100%" fill = "#FFFFFF" />
< polygon points = "25 5, 45 25, 25 45, 5 25" stroke = "#0B0B0C" stroke-width = "2" fill = "#96C6E2" />
</ svg >
2021-11-04 15:09:25 +00:00
< span class = "govuk-visually-hidden" >
2021-08-03 18:46:30 +01:00
An area of {{ (broadcast_message.simple_polygons.estimated_area)|square_metres_to_square_miles|round_to_significant_figures(1)|format_thousands }} square miles
2020-09-08 16:35:03 +01:00
</ span >
Will get
2021-11-04 15:09:25 +00:00
< span class = "govuk-visually-hidden" >
the
</ span >
2020-09-24 15:52:18 +01:00
alert
2021-10-07 14:29:51 +01:00
</ p >
< p class = "area-list-key area-list-key--likely" >
2021-11-03 19:50:12 +00:00
< svg class = "area-list-key__icon" width = "50" height = "50" viewbox = "0 0 50 50" aria-hidden = "true" xmlns = "http://www.w3.org/2000/svg" >
< rect x = "0" y = "0" width = "100%" height = "100%" fill = "#FFFFFF" />
< polygon points = "25 5, 45 25, 25 45, 5 25" stroke = "#005ea5" stroke-opacity = "1" stroke-width = "2" stroke-linecap = "square" stroke-linejoin = "round" stroke-dasharray = "4,7.5,5,7.5,8,8,5,8,7.5,8,5,8,7,8,5,8,4" fill = "#2B8CC4" fill-opacity = "0.15" />
</ svg >
2021-11-04 15:09:25 +00:00
< span class = "govuk-visually-hidden" >
2021-08-03 18:46:30 +01:00
An extra area of {{ (broadcast_message.simple_polygons_with_bleed.estimated_area - broadcast_message.simple_polygons.estimated_area)|square_metres_to_square_miles|round_to_significant_figures(1)|format_thousands }} square miles is
2020-09-08 16:35:03 +01:00
</ span >
Likely to get
2021-11-04 15:09:25 +00:00
< span class = "govuk-visually-hidden" >
2020-09-08 16:35:03 +01:00
the
</ span >
alert
2021-10-07 14:29:51 +01:00
</ p >
< p class = "area-list-key area-list-key--phone-estimate" >
2021-01-27 11:24:22 +00:00
{% if broadcast_message.count_of_phones == 0 %}
Unknown number of phones
{% elif broadcast_message.count_of_phones == broadcast_message.count_of_phones_likely %}
2020-09-24 15:52:18 +01:00
{{ broadcast_message.count_of_phones|format_thousands }} phones estimated
{% else %}
{{ broadcast_message.count_of_phones|format_thousands }} to {{ broadcast_message.count_of_phones_likely|format_thousands }} phones
{% endif %}
2021-10-07 14:29:51 +01:00
</ p >
2020-09-08 16:35:03 +01:00
{% endmacro %}