{% extends "_base.html" %} {% load i18n %} {% load widget_tweaks %} {% load content_filters %} {% load push_notification_filters %} {% block content %}
{% csrf_token %}

{% if push_notification_form.instance.id %} {% with push_notification_form.instance as push_notification_title %} {% blocktranslate trimmed %} Edit News "{{ push_notification_title }}" {% endblocktranslate %} {% endwith %} {% else %} {% translate "Create News" %} {% endif %}

{% if perms.cms.change_pushnotification and not not_accessible_regions_warning %} {% translate "Cancel" %} {% if not push_notification_form.instance.archived %} {% if push_notification_form.instance.id and not push_notification_form.instance.sent_date and perms.cms.send_push_notification %}
{% endif %} {% endif %} {% endif %}
{% if push_notification_form.instance.sent_date and push_notification_translation_form.instance.id %} {% endif %}
{% render_field push_notification_translation_form.title|add_error_class:"border-red-500" class+="mb-2" %} {% render_field push_notification_translation_form.text class+="tinymce_textarea flex-auto" %} {% spaceless %}

/{{ push_notification_translation_form.fields.text.max_length }}

{% endspaceless %}
{% if push_notification_translation_form.mt_form_is_enabled %} {% include "./push_notification_translation_box.html" with box_id="push-notification-translation" %} {% endif %}
{% include "./push_notification_setting_box.html" with box_id="push-notification-setting" %}
{% endblock content %}