2023-05-04 04:42:37 +00:00
|
|
|
{% extends "admin/base_main.html" %}
|
2022-11-17 04:12:28 +00:00
|
|
|
|
2022-11-17 04:42:25 +00:00
|
|
|
{% block title %}Delete {{ domain.domain }} - Admin{% endblock %}
|
2022-11-17 04:12:28 +00:00
|
|
|
|
2023-05-04 04:42:37 +00:00
|
|
|
{% block settings_content %}
|
2022-11-17 04:12:28 +00:00
|
|
|
<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 }}
|
2023-01-09 16:58:17 +00:00
|
|
|
identit{{ num_identities|pluralize:"y,ies" }}</b> registered on it.
|
2022-11-17 04:12:28 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
You will need to manually remove all identities from this domain in
|
|
|
|
order to delete it.
|
|
|
|
</p>
|
|
|
|
{% else %}
|
2022-11-25 04:30:21 +00:00
|
|
|
<p>Please confirm deletion of this domain - there are no identities registered on it.</p>
|
2022-11-17 04:12:28 +00:00
|
|
|
<div class="buttons">
|
|
|
|
<a class="button" href="{{ domain.urls.edit }}">Cancel</a>
|
|
|
|
<button class="delete">Confirm Deletion</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-01-14 17:32:48 +00:00
|
|
|
</form>
|
2022-11-17 04:12:28 +00:00
|
|
|
{% endblock %}
|