Extend generic confirm_delete template for groups confirm_delete template

pull/10884/head
Sage Abdullah 2023-09-12 10:49:48 +01:00
rodzic 52721613b7
commit 5cf38dd654
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 19 dodań i 25 usunięć

Wyświetl plik

@ -1,29 +1,23 @@
{% extends "wagtailadmin/base.html" %}
{% extends "wagtailadmin/generic/confirm_delete.html" %}
{% load i18n %}
{% block titletag %}{% trans "Delete group" %}{% endblock %}
{% block content %}
{% trans "Delete group" as del_str %}
{% include "wagtailadmin/shared/header.html" with title=del_str subtitle=group.name icon="group" %}
{% block main_content %}
<p>
{% blocktrans trimmed with group_name=group.name count group_user_count=group.user_set.count %}
The group '{{ group_name }}' has <strong>{{ group_user_count }}</strong> member.
{% plural %}
The group '{{ group_name }}' has <strong>{{ group_user_count }}</strong> members.
{% endblocktrans %}
</p>
<p>
{% if group.user_set.count %}
{% trans "Deleting this group will revoke this group's permissions from all member users." %}
{% endif %}
</p>
<div class="nice-padding">
<p>
{% blocktrans trimmed with group_name=group.name count group_user_count=group.user_set.count %}
The group '{{ group_name }}' has <strong>{{ group_user_count }}</strong> member.
{% plural %}
The group '{{ group_name }}' has <strong>{{ group_user_count }}</strong> members.
{% endblocktrans %}
</p>
<p>
{% if group.user_set.count %}
{% trans "Deleting this group will revoke this group's permissions from all member users." %}
{% endif %}
</p>
<p>{% trans "Are you sure you want to delete this group?" %}</p>
<form action="{% url 'wagtailusers_groups:delete' group.id %}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" />
</form>
</div>
<p>{% trans "Are you sure you want to delete this group?" %}</p>
<form action="{% url 'wagtailusers_groups:delete' group.id %}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" />
</form>
{% endblock %}