{% extends 'speeches/base.html' %} {% load i18n %} {% load staticfiles %} {% load compressed %} {% load url from future %} {% load django_select2_tags %} {% block extra_css %} {% import_django_select2_css 1 %} {{ block.super }} {# #} {% endblock %} {% block extra_js %} {{ block.super }} {% import_django_select2_js 1 %} {% compressed_js 'sayit-upload' %} {% endblock %} {% block title %}{% if object %}{% trans "Edit speech" %} {% else %}{% trans "Add speech" %}{% endif %}{% endblock %} {% block content %} {% if added %}
Your speech has been created in the section {{ section.title }}!
{% endif %}

{% if object %} {% trans "Here is where you can edit a speech." %} {% else %} {% trans "Here is where you can add a new speech." %} {% endif %}

{% if object %} {% include 'speeches/form.html' with type="speech" submit="Update speech" %} {% else %} {% include 'speeches/form.html' with type="speech" submit="Add speech" pre_submit_name="add_another" pre_submit_text="Save and add another speech" %} {% endif %}
{% endblock %}