mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-23 06:38:40 +02:00
Work in progress: * New domains admin page, all menus are now at the same level, * Views, models and forms partial refactoring (better code organization).
36 lines
1.1 KiB
HTML
36 lines
1.1 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 %}
|
|
{% if not domains %}<div class="info">{% trans "No domain defined." %}</div>
|
|
{% else %}
|
|
<table>
|
|
<tr>
|
|
<th width="100px">{% trans "Actions" %}</th>
|
|
<th>{% trans "Name" %}</th>
|
|
<th width="150px">{% trans "Mailboxes" %}</th>
|
|
<th width="50px">{% trans "Quota" %}</th>
|
|
<th width="50px">{% trans "Enabled" %}</th>
|
|
</tr>
|
|
{% for dom in domains %}
|
|
<tr class="{% cycle 'odd' 'even' %}" id="{{ dom.id }}">
|
|
<td>{% domain_actions user dom.id %}</td>
|
|
<td>{{ dom.name }}</td>
|
|
<td>{{ dom.mboxcounter }}</td>
|
|
<td>{{ dom.quota }} {% trans "MB" %}</td>
|
|
<td>{{ dom.enabled|yesno:_("yes,no") }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endblock %}
|