Files
modoboa/templates/admin/permissions.html
T
tonio de08808a7f * Added documentation
* Ticket #1 implemented
2009-04-16 18:09:31 +02:00

60 lines
1.7 KiB
HTML

{% extends "admin/settings_header.html" %}
{% block menu %}
{% load admin_extras %}
{% settings_menu "permissions" %}
{% 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>
<a href=""><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 %}