{% extends 'speeches/base.html' %}
{% load i18n %}

{% block title %}
{% if object %}
    {% trans 'Edit section' %}
{% else %}
    {% trans 'Add a section' %}
{% endif %}
{% endblock %}

{% block content %}

<div class="page-header">
  {% if object %}
    <h1>{% trans "Edit section" %}</h1>
  {% else %}
    <h1>{% trans "Add a section" %}</h1>
  {% endif %}
</div>

<form id="section-form" class="form-horizontal" method="post">
    {% if object %}
        {% include 'speeches/form.html' with type="section" submit="Update section" %}
    {% else %}
        {% include 'speeches/form.html' with type="section" submit="Add section" %}
    {% endif %}
</form>

{% endblock %}
