takahe/templates/admin/domain_delete.html
2022-11-16 21:42:25 -07:00

33 lines
1 KiB
HTML

{% extends "base.html" %}
{% block title %}Delete {{ domain.domain }} - Admin{% endblock %}
{% block content %}
{% block menu %}
{% include "admin/_menu.html" %}
{% endblock %}
<form action="." method="POST">
{% csrf_token %}
<h1>Deleting {{ domain.domain }}</h1>
{% if num_identities %}
<p>
You cannot delete this domain as it has <b>{{ num_identities }}
identit{{ num_identities|pluralize:"y,ies" }}</b> registered on it.
</p>
<p>
You will need to manually remove all identities from this domain in
order to delete it.
</p>
{% else %}
<p>Please confirm deletion of this domain - there are no identities registed on it.</p>
<div class="buttons">
<a class="button" href="{{ domain.urls.edit }}">Cancel</a>
<button class="delete">Confirm Deletion</button>
</div>
{% endif %}
</form>
{% endblock %}