{% extends form.base_template %}

{% block title %}{% if is_create %}Create{% else %}Edit{% endif %} {{ object_name }}{% endblock %}

{% block content %}

<form{{ form.rendered_attrs }}><input type="hidden" name="csrfmiddlewaretoken" value="{{csrf_token}}"/>

  {% for error in form.errors %}
    <div class="error">{{ error }}</div>
  {% endfor %}

  <div class="tablewrapper">
    <table class="formview" width="100%">
      {{ form }}
    </table>
  </div>

  <div class="form_buttons clear">
      {% if form.links %}
          {{ form.rendered_links }}
      {% endif %}
      {{ form.rendered_actions }}
  </div>
</form>

{% endblock %}
