{% extends 'components/inline_form.html' %} {% load i18n %} {% block header %} {% if announcement %} {% trans "Edit Announcement" %} {% else %} {% trans "Create Announcement" %} {% endif %} {% endblock %} {% block form %} {% csrf_token %}

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

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

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

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

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

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

{% endblock %}