{% extends 'speeches/base_form.html' %} {% load i18n %} {% load staticfiles %} {% load url from future %} {% load django_select2_tags %} {% block extra_css %} {% import_django_select2_css 0 %} {{ block.super }} {% endblock %} {% block extra_js %} {{ block.super }} {% import_django_select2_js 0 %} {% if LANGUAGE_CODE == 'es' %} {% endif %} {% 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 %}
{% with form.text as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% with form.speaker as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %} {% with form.section as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %} {% with form.source_url as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% trans "Date & Time" %}
{% with form.start_time as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% with form.start_date as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% with form.end_time as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% with form.end_date as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% trans "Event & Location" %}
{% with form.location as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %} {% with form.event as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}
{% trans "Title & Tags" %}
{% with form.heading as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %} {% with form.tags as field %}
{{ field.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endwith %}

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

{% endblock %}