{% extends "pinax/documents/base.html" %}

{% block body_class %}{{ block.super }} pinax-documents-document-delete{% endblock %}

{% load i18n bootstrap %}

{% block head_title %}Confirm Delete: {{ document.name }}{% endblock %}


{% block body %}
<div class="pinax-documents-document-delete-container">
    <h2>{{ document.name }}</h2>

    {% include "pinax/documents/_breadcrumbs.html" with member=document %}

    {% url member.delete_url as post_url %}

    <div class="delete-document-warning" role="alert">
        {% trans "Are you sure you want to delete this document?" %}
    </div>

    <form action="{{ post_url }}" method="POST">
        {% csrf_token %}
        <div class="form-actions">
            <a href="{% url "pinax_documents:document_index" %}" class="cancel">{% trans "Cancel" %}</a>
            <button>{% trans "Delete" %}</button>
        </div>
    </form>
</div>
{% endblock %}
