Files
modoboa/templates/admin/domains.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

42 lines
1.6 KiB
HTML

{% extends "admin/domains_header.html" %}
{% load i18n admin_extras libextras %}
{% block html_head %}
{{ block.super }}
<script type="text/javascript">
window.addEvent('domready', function() {
{% url admin.views.mailboxes as view_url %}
bindRows("{{ view_url }}", "{{ current_page }}");
});
</script>
{% endblock %}
{% block middletitle %}{% trans "Available domains" %}{% endblock %}
{% block subcontent %}
<div id="objects" name="domains" rel="300 190">
{% if not domains %}<div class="info">{% trans "No domain defined." %}</div>
{% else %}
<table id="objects_table">
<tr>
<th>{% trans "Name" %}</th>
<th width="150px" class="center">{% trans "Domain aliases" %}</th>
<th width="150px" class="center">{% trans "Mailboxes" %}</th>
<th width="150px" class="center">{% trans "Mailbox aliases" %}</th>
<th width="70px" class="center">{% trans "Quota" %}</th>
<th width="70px" class="center">{% trans "Enabled" %}</th>
<th width="70px" class="center">{% trans "Actions" %}</th>
</tr>
{% for dom in domains %}
<tr class="{% cycle 'odd' 'even' %}" id="{{ dom.id }}">
<td>{{ dom.name }}</td>
<td class="center">{{ dom.domainalias_set.all|length }}</td>
<td class="center">{{ dom.mailbox_set.all|length }}</td>
<td class="center">{{ dom.mbalias_counter }}</td>
<td class="center">{{ dom.quota }} {% trans "MB" %}</td>
<td class="center">{{ dom.enabled|yesno:_("yes,no") }}</td>
<td class="center">{% domain_actions user dom.id %}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
{% endblock %}