dnmgmt/templates/whoisdb/obj_delete.html

36 lines
810 B
HTML
Raw Permalink Normal View History

2017-02-28 19:44:15 +01:00
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-{% if reasons %}danger{%else%}default{%endif%}">
2017-03-20 00:16:33 +01:00
<div class="panel-heading">Delete {{ object }}?</div>
2017-02-28 19:44:15 +01:00
<div class="panel-body">
{% if reasons %}
<p>
You cannot delete this object, as other objects in the database depend on it!
</p>
<p>
<ul>
{% for reason in reasons %}
<li>{{ reason }}</li>
{% endfor %}
</ul>
{% else %}
2017-03-20 00:16:33 +01:00
<p>
Are you sure you want to delete {{ object }}?
</p>
2017-02-28 19:44:15 +01:00
<form method="post" action="#">
{% csrf_token %}
2017-04-15 17:01:30 +02:00
<button type="submit" class="btn btn-danger">Delete {{ object }}</button>
2017-02-28 19:44:15 +01:00
</form>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}