{% extends "base.html" %}
{% load i18n %}

{% block title %}
    {% if content %}
        {%blocktrans%}Edit {{content_type}}{%endblocktrans%}
    {% else %}
        {%blocktrans%}New {{content_type}}{%endblocktrans%}
    {% endif %}
{% endblock %}

{% load i18n %}

{% block content %}
    {% if content %}
        <form action="{{ path }}"
              method="post"
              enctype="multipart/form-data"
              class="edit-form enableAutoFocus enableUnloadProtect">
    {% else %}
        <form action="{{ path }}"
              method="post"
              class="edit-form enableAutoFocus enableUnloadProtect">
    {% endif %}
        <fieldset>
        {% for field in form %}
            {% if not field.is_hidden %}
                <div class="fieldWrapper">
                    {{ field.errors }}
                    {{ field.label_tag }} {{ field }}
                    <div class="clear"><!-- --></div>
                </div>
            {% else %}                                                          
                {{ field }}
            {% endif %}
        {% endfor %}
        {% csrf_token %}
        <div class="form-controls">
          <input type="submit" value="{% trans 'Save' %}" /> 
          <button type="button" class="reset">{% trans 'Undo' %}</button>
          <input type="hidden" id="referer_url" value="{{referer_url}}" name="referer_url" />
        </div>
        </fieldset>
    </form>
    
{% endblock %}



