{% 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 }} {% for error in form.preview.errors %}

{{ error | escape }}

{% endfor %}

{% trans "Content:" %} {{ form.content }} {% for error in form.content.errors %}

{{ error | escape }}

{% endfor %}

{% trans "Event date:" %} {% for error in form.event_date.errors %}

{{ error | escape }}

{% endfor %}

{% trans "Start date:" %} {% for error in form.start_date.errors %}

{{ error | escape }}

{% endfor %}

{% trans "End date:" %} {% for error in form.end_date.errors %}

{{ error | escape }}

{% endfor %}

{% trans "Active:" %} {{ form.active }} {% for error in form.active.errors %}

{{ error | escape }}

{% endfor %}
{% endblock %}