Remove some of the option we have for broadcast services.

This is the first step in making the UI easier for setting the
options for a broadcast service. Here we remove the options for
"Training mode" test channels. When we create a broadcast message for a trail mode service it is marked as stubbed and does not create a broadcast event that is sent to a provider.

The label for the form and setting page have been updated to reflect the
change.
This commit is contained in:
Rebecca Law
2021-05-04 15:58:57 +01:00
parent bfc55b45ca
commit 5495de0b3b
3 changed files with 32 additions and 55 deletions

View File

@@ -434,7 +434,9 @@
{% if not current_service.broadcast_channel %}
Off
{% else %}
{% if current_service.live %}Live{% else %}Training mode{% endif %} - {% if current_service.allowed_broadcast_provider %}{{ current_service.allowed_broadcast_provider|format_mobile_network }} network{% else %}All networks{% endif %} - {% if current_service.broadcast_channel == "test" %}Test channel only{% else %}Public channel{% endif %}
{% if current_service.live and current_service.broadcast_channel == "severe" %}Live - Public channel{% endif %}
{% if current_service.live and current_service.broadcast_channel == "test" %}Test channel {% if current_service.allowed_broadcast_provider %}({{ current_service.allowed_broadcast_provider|format_mobile_network }} network){% else %} (All networks){% endif %}{%endif%}
{% if not current_service.live%}Training mode {% endif%}
{% endif %}
{% endcall %}
{{ edit_field(