{% extends 'speeches/base_form_select2.html' %} {% load i18n %} {% load staticfiles %} {% load url from future %} {% block extra_js %} {{ block.super }} {% endblock %} {% block title %} {% if object %} {% trans "Edit speech" %} {% else %} {% trans "Add a speech" %} {% endif %} {% endblock %} {% block content %} {% if added %}
Your speech has been created in the section {{ section.title }}!
{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %}
{% include "speeches/form-item.html" with field=form.text %}
{% include "speeches/form-item.html" with field=form.speaker %} {% include "speeches/form-item.html" with field=form.section %} {% include "speeches/form-item.html" with field=form.source_url %}
{% trans "Date & Time" %}
{% include "speeches/form-item.html" with field=form.start_time %}
{% include "speeches/form-item.html" with field=form.start_date %}
{% include "speeches/form-item.html" with field=form.end_time %}
{% include "speeches/form-item.html" with field=form.end_date %}
{% trans "Event & Location" %}
{% include "speeches/form-item.html" with field=form.location %} {% include "speeches/form-item.html" with field=form.event %}
{% trans "Title & Tags" %}
{% include "speeches/form-item.html" with field=form.heading %} {% include "speeches/form-item.html" with field=form.tags %}

{% if object %} {% else %} {% endif %}

{% endblock %}