dnmgmt/templates/domains/obj_delete.html

36 lines
811 B
HTML
Raw Normal View History

2017-03-15 02:22:08 +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-21 02:36:07 +01:00
<div class="panel-heading">Delete {{ object }}?</div>
2017-03-15 02:22:08 +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-21 02:36:07 +01:00
<p>
Are you sure you want to delete {{ object }}?
</p>
2017-03-15 02:22:08 +01:00
<form method="post" action="#">
{% csrf_token %}
2017-03-21 02:36:07 +01:00
<button type="submit" class="btn btn-primary">Delete {{ object }}</button>
2017-03-15 02:22:08 +01:00
</form>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}