Files
modoboa/templates/admin/mailboxes.html
T
tonio c43fdc2371 fixed #107
Removed useless fields (full_address) and added associated migrations. SQL queries used by postfix or dovecot will need to be updated. (as the documentation)

see #103

Big refactoring of objects creation and edition. (javascript cleanup, forms factoring, etc.)
2011-01-01 16:32:52 +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.full_address }}</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 %}