{% load i18n %} {% load widget_tweaks %}

{% translate "Settings" %}

{% render_field push_notification_form.channel|add_error_class:"border-red-500" %} {% render_field push_notification_form.mode|add_error_class:"border-red-500" %} {% if push_notification_form.instance.id %}
{% render_field push_notification_form.schedule_send|add_error_class:"border-red-500" %}
{% endif %}

{% if not_accessible_regions_warning %} {{ not_accessible_regions_warning }} {% else %} {% translate "Any manager with access to only some of the selected regions can view but not edit this news." %} {% endif %}

{% render_field push_notification_form.regions|add_error_class:"border-red-500" %}
{% if push_notification_form.regions|length == 1 and not_accessible_regions_warning %}

{{ not_accessible_regions_warning }}

{% endif %}
{% if push_notification_form.instance.id %}

{% translate "Status" %}

{% if push_notification_form.instance.sent_date %} {% translate "News sent on:" %}
{{ push_notification_form.instance.sent_date }}
{% elif push_notification_form.instance.scheduled_send_date %} {% translate "News will be sent automatically on:" %}
{{ push_notification_form.instance.scheduled_send_date }} {% else %} {% translate "News not sent yet" %} {% endif %}
{% endif %}