{% load i18n %}
{% load bootstrap3 %}
{% bootstrap_field form.recipients layout='horizontal' %}
{% bootstrap_field form.sendto layout='horizontal' %}
{% if form.subevent %}
    {% bootstrap_field form.subevent layout='horizontal' %}
    {% bootstrap_field form.subevents_from layout='horizontal' %}
    {% bootstrap_field form.subevents_to layout='horizontal' %}
{% endif %}
{% bootstrap_field form.created_from layout='horizontal' %}
{% bootstrap_field form.created_to layout='horizontal' %}
{% bootstrap_field form.items layout='horizontal' %}
<div class="row">
    <div class="col-md-9 col-md-offset-3">
        <div class="panel-group">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <label data-toggle="collapse" data-target="#checkin_filter">
                        {{ form.filter_checkins }} {{ form.filter_checkins.label }}
                    </label>
                </div>
                <div id="checkin_filter" class="panel-body panel-collapse collapse {% if form.filter_checkins.value %} in {% else %} out {% endif %}">
                    {% bootstrap_field form.not_checked_in layout='horizontal' %}
                    {% bootstrap_field form.checkin_lists layout='horizontal' %}
                </div>
            </div>
        </div>
    </div>
</div>
