{% extends "user_groups/base.html" %}
{% load user_group_tags %}
{% load perm_tags %}
{% load i18n %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/iconrow.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/usergroups.css">
{% endblock %}

{% block body %}
<div class="t">
{% user_group_nav request.user %}
<h1>{% trans "Delete a User Group" %}</h1>
<h3>Group: <a href="{{ group.get_absolute_url }}">{{ group.label }}
({{ group.members.count }} member{{group.members.count|pluralize }})</a></h3>
<div style="color:red;font-weight:bold;">{% trans "Are you sure you want to delete this Group?" %}</div>
<div>
    {% trans "Clicking Delete User Group will" %} 
    <ul>
        <li>{% trans "remove all members from the group" %}</li>
        <li>{% trans "the group will be deleted from the system" %}</li>
        <li>{% trans "Deleted items cannot be recovered!" %}</li>
    </ul>
</div>
<form action="{% url group.delete group.id %}" method="post">{% csrf_token %}
<input type="hidden" name="id" value="{{group.id}}" />
<input type="submit" value="{% trans "Delete User Group" %}" />
</form>


</div>
{% endblock %}
