50 lines
1.2 KiB
HTML
50 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
{% if item %}
|
|
<h2>{% trans "Are you sure you want to delete" %} {{ item }} ?</h2>
|
|
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if admin_deletion %}
|
|
<ul>
|
|
{% for c in admin_deletion %}
|
|
<li>{{ c }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if collateral_damages %}
|
|
<p>{% trans "You will also delete these objects:" %}</p>
|
|
<ul>
|
|
{% for c in collateral_damages %}
|
|
<li>{{ c }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<form method="post" action="/del_any">
|
|
<input type="hidden" name="type_entity" value="{{ type_entity }}"/>
|
|
<input type="hidden" name="id" value="{{ item.id }}"/>
|
|
<input type="hidden" name="consent" value="consent"/>
|
|
{% if back_url %}<input type="hidden" name="back_url" value="{{ back_url }}"/>{% endif %}
|
|
<input type="submit" name="Delete" value="{% trans "Delete" %}"/>
|
|
<input type="submit" name="Cancel" value="{% trans "Cancel" %}"/>
|
|
</form>
|
|
|
|
{% else %}
|
|
<p>Something bad happened.</p>
|
|
<div class="right">
|
|
<a class="back" href="/">{% trans "Back" %}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|