{% extends 'components/inline_form.html' %} {% load i18n %} {% block header %} {% if announcement %} {% trans "Edit Announcement" %} {% else %} {% trans "Create Announcement" %} {% endif %} {% endblock %} {% block form %} {% csrf_token %}
{{ 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" %}
{% 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.active }} {% include 'snippets/form_errors.html' with errors_list=form.active.errors id="desc_active" %}