{% extends "network/base.html" %}
{% load i18n %}
{% load l10n %}
{% block content %}

<div class="page-header">
    <h2>
        {% blocktrans with object=object %}
            Are you sure you want to delete
            <strong>"{{ object }}"</strong>?
        {% endblocktrans %}
    </h2>
</div>

<form action="" method="post">{% csrf_token %}
{% if deps %}
<div class="alert alert-warning">
    {% trans "This action also <strong>removes</strong> the following" %}
        {% for dep in deps %}
        <div class="alert">
            <strong>{{ dep.name }}</strong>
        <ul class="">
            {{ dep.data|unordered_list }}
        </ul>
    </div>
        {% endfor %}
    </div>
{% else %}
<div class="alert alert-success">
    {% trans 'No dependencies, "safe" to delete!' %}
</div>
{% endif %}
<form action="" method="post">{% csrf_token %}
    <input type="hidden" value="{{ request.GET.next }}" name="next" />
    {% if confirmation %}
        <label><p>
            {% trans "If you are really sure, type in the object's name!" %}
        <input type="text" name="confirm" class="form-control" placeholder="{{ object }}"/>
        </p></label>
    {% else %}
    {% endif %}
    <input type="submit" class="btn btn-danger btn-lg pull-right" value="{% trans "Yes, delete it!" %}"/>
</form>

{% endblock %}
