{% extends '_base.html' %}
{% load form_helpers %}

{% block content %}
<div class="row">
	<div class="col-md-6 col-md-offset-3">
        <form action="." method="post" class="form">
        {% csrf_token %}
            <div class="panel panel-danger">
                <div class="panel-heading">{% block title %}{% endblock %}</div>
                <div class="panel-body">
                    {% block message %}<p>Are you sure?</p>{% endblock %}
                    {% for field in form.hidden_fields %}
                        {{ field }}
                    {% endfor %}
                    <div class="form-group">
                        <div class="checkbox{% if form.confirm.errors %} has-error{% endif %}">
                            <label for="{{ form.confirm.id_for_label }}">
                                {{ form.confirm }}
                                {{ form.confirm.label }}
                            </label>
                        </div>
                    </div>
                    <div class="text-right">
                        <button type="submit" name="_confirm" class="btn btn-danger">Confirm</button>
                        <a href="{{ cancel_url }}" class="btn btn-default">Cancel</a>
                    </div>
                </div>
            </div>
        </form>
	</div>
</div>
{% endblock %}
