Files
modoboa/templates/admin/permissions.html
T
tonio f9f2a9e546 Added fixtures for initial admin data.
perms object is no longer passed to builtins or filters, we use user instead
(it seems that perms content is different with Django 1.2)

#48 : I think I've found a way to include templatetags dynamically, using add_to_builtins.
2010-05-25 18:31:11 +02:00

63 lines
1.8 KiB
HTML

{% extends "admin/settings_header.html" %}
{% block menu %}
{% load admin_extras %}
{% settings_menu "permissions" user %}
{% endblock %}
{% block setcontent %}
{% load i18n %}
{% if not admins %}
<p>{% trans "No superuser defined?!" %}</p>
{% else %}
<h4>{% trans "Super administrators" %}</h4>
<table>
<tr>
<th width="50px">{% trans "Actions" %}</th>
<th width="210px">{% trans "Full name" %}</th>
<th>{% trans "User name" %}</th>
<th width="50px">{% trans "Enabled" %}</th>
</tr>
{% for admin in admins %}
<tr class="{% cycle 'odd' 'even' %}">
<td>
{% url admin.views.deletepermission admin.id "SuperAdmins" as del_url %}
<a href="{{ del_url }}" name="deletePerm">
<img src="/static/pics/remove.png" border="0" title="{% trans 'Remove permission' %}" />
</a>
</td>
<td>{{ admin.first_name }} {{ admin.last_name }}</td>
<td>{{ admin.username }}</td>
<td>{{ admin.is_active|yesno }}</td>
</tr>
{% endfor %}
</table>
<br/><br/>
{% endif %}
<h4>{% trans "Domain administrators" %}</h4>
{% if not domadmins %}
<p>{% trans "No domain admin defined." %}</p>
{% else %}
<table>
<tr>
<th width="50px">{% trans "Actions" %}</th>
<th width="210px">{% trans "Domain" %}</th>
<th>{% trans "Name" %}</th>
<th width="50px">{% trans "Enabled" %}</th>
</tr>
{% for admin in domadmins %}
<tr class="{% cycle 'odd' 'even' %}">
<td>
{% url admin.views.deletepermission admin.id "DomainAdmins" as del_url %}
<a href="{{ del_url }}" name="deletePerm">
<img src="/static/pics/remove.png" border="0"
title="{% trans 'Remove permission' %}" />
</a>
</td>
<td>{{ admin.domain.name }}</td>
<td>{{ admin.name }}</td>
<td>{{ admin.user.is_active|yesno }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endblock %}