diff options
author | Andrew Godwin | 2022-11-16 21:42:25 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-16 21:42:25 -0700 |
commit | 5b34ea46c3f458a174c5443714ade43c21defdac (patch) | |
tree | e41dda2218cee559268f99a802210f7507f47b02 /templates/admin/domain_delete.html | |
parent | 9d97fc92d82289301896c88f8c828321aa99701d (diff) | |
download | takahe-5b34ea46c3f458a174c5443714ade43c21defdac.tar.gz takahe-5b34ea46c3f458a174c5443714ade43c21defdac.tar.bz2 takahe-5b34ea46c3f458a174c5443714ade43c21defdac.zip |
Call it admin rather than system settings
Diffstat (limited to 'templates/admin/domain_delete.html')
-rw-r--r-- | templates/admin/domain_delete.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/admin/domain_delete.html b/templates/admin/domain_delete.html new file mode 100644 index 0000000..d47a673 --- /dev/null +++ b/templates/admin/domain_delete.html @@ -0,0 +1,33 @@ +{% 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 %} |