Files
modoboa/templates/admin/mailboxes.html
T
tonio e5e04e6991 see #103
This is almost over :
 * new informations available in misc. listings,
 * tables layout update.
2010-12-15 23:05:30 +01:00

32 lines
1.2 KiB
HTML

{% extends "admin/domains_header.html" %}
{% load i18n admin_extras %}
{% block pagetitle %}{% trans "Available mailboxes" %}{% endblock %}
{% block subcontent %}
<div id="objects" name="mailboxes" rel="300 320">
{% if not mailboxes %}
<div class="info">{% trans "No mailbox defined." %}</div>
{% else %}
<table id="objects_table">
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Address" %}</th>
<th width="150px" class="center">{% trans "Defined aliases" %}</th>
<th width="70px" class="center">{% trans "Quota" %}</th>
<th width="70px" class="center">{{ "Enabled"|gender:"f" }}</th>
<th width="70px" class="center">{% trans "Actions" %}</th>
</tr>
{% for mb in mailboxes %}
<tr class="{% cycle 'odd' 'even' %}" id="{{ mb.id }}">
<td>{{ mb.name }}</td>
<td>{{ mb.address }}@{{ mb.domain.name }}</td>
<td class="center">{{ mb.alias_set.all|length }}</td>
<td class="center">{{ mb.quota }} {% trans "MB" %}</td>
<td class="center">{{ mb.user.is_active|yesno:_("yes,no") }}</td>
<td class="center">{% mailbox_actions user mb %}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
{% endblock %}