{% extends "cms/admin_home.html" %}
{% load crispy_forms_tags sekizai_tags i18n %}

{% block content %}
    <div>

        <h1>{% trans "Add an Event (non-Public)" %}</h1>

        <form action="" method="post">
            <div class="panel panel-default">
                <div class="panel-body">
                {% crispy form form.helper %}
                {{ formset.management_form }}
                {% for this_form in formset %}
                    <div class="inline {{ formset.prefix }}">
                        {% crispy this_form formset_helper %}
                    </div>
                {% endfor %}
                </div>
            </div>
        </form>
    </div>

{% addtoblock "css" %}
    {{ form.media.css }}
{% endaddtoblock %}
{% addtoblock "js" %}
    {{ form.media.js }}
{% endaddtoblock %}

{% endblock %}