{% extends "events/event_detail.html" %}
{% load i18n comments %}

{% block title %}Weitere Termine für {{ event.name }}{% endblock %}

{% block maincontent %}

{{ event.description|safe }}

<form class="grid_12" method="post">
  {% csrf_token %}
  {{ formset.management_form }}
  <table>
    {% for form in formset %}
      {% if forloop.counter == 1 %}
        <tr>{% for field in form.visible_fields %}<th>{{field.label_tag}}</th>{% endfor %}<th></th></tr>
      {% endif %}
      <tr>
        {% for field in form.visible_fields %}<td class="{{field.css_classes}}">{{field}} {% for error in field.errors %}<br />{{error}}{% endfor %}</td>{% endfor %}
        <td width="*">{{form.id}}</td>
      </tr>
    {% endfor %}
    <tfoot><tr><td colspan="4" class="buttonbar">
      <a href="{{ event.get_absolute_url }}" class="button"><span class="fa fa-undo"></span> {% trans 'back' %}</a>
      <button type="submit"><span class="fa fa-hdd-o"></span> {% trans 'save' %}</button>
    </td></tr></tfoot>
  </table>
</form>
{% endblock %}

{% block comments %}{% endblock %}

{% block buttonbar %}
{% endblock %}

