{% extends postorius_base_template %}
{% load url from future %}
{% load i18n %}
{% load nav_helpers %}

{% block main %}
    {% list_nav 'list_delete' "Delete List" %}

    <p>{% trans "Are you sure you want to permanently delete this list?" %}</p>
    <p>{% trans "All settings and membership data will be lost!" %}</p>
    <form action="{{submit_url}}" method="post"> {% csrf_token %}
        <button class="btn btn-danger" type="submit">{% trans "Delete" %} {{ list.fqdn_listname }}</button>
        <a class="btn" href="{% url 'list_summary' list_id=list.list_id %}">{% trans "Cancel" %}</a>
    </form>
{% endblock main %}
