summaryrefslogtreecommitdiffstats
path: root/templates/settings/settings_system_domain_delete.html
blob: 220bbb9a1489eaf8c0a1c9b0f8377bc0b2c25aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "base.html" %}

{% block title %}Delete {{ domain.domain }} - System Settings{% endblock %}

{% block content %}
    {% block menu %}
        {% include "settings/_settings_system_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 %}