{% extends 'settings/layout.html' %} {% load i18n %} {% block header %} {% if announcement %} {% trans "Edit Announcement" %} {% else %} {% trans "Create Announcement" %} {% endif %} {% endblock %} {% block panel %}
{% csrf_token %}

{% trans "Announcement content" %}

{{ form.preview }} {% include 'snippets/form_errors.html' with errors_list=form.preview.errors id="desc_preview" %}

{{ form.content }} {% include 'snippets/form_errors.html' with errors_list=form.content.errors id="desc_content" %}

{% include 'snippets/form_errors.html' with errors_list=form.event_date.errors id="desc_event_date" %}

{% trans "Display settings" %}

{% include 'snippets/form_errors.html' with errors_list=form.start_date.errors id="desc_start_date" %}

{% include 'snippets/form_errors.html' with errors_list=form.end_date.errors id="desc_end_date" %}

{{ form.display_type }}
{% include 'snippets/form_errors.html' with errors_list=form.active.errors id="desc_display_type" %}

{% include 'snippets/form_errors.html' with errors_list=form.active.errors id="desc_active" %}

{% endblock %}