mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-24 06:48:35 +02:00
Work still in progress. Added support for aliases creation and edition. see #102 Starting with code refactoring before modifying UI.
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
{% extends "nlayout.html" %}
|
|
{% load i18n admin_extras libextras %}
|
|
{% block html_head %}
|
|
<script src="{{ MEDIA_URL }}js/domains.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
window.addEvent('domready', function() {
|
|
{% url admin.views.domains as view_url %}
|
|
bindRows("{{ view_url }}", "{{ current_page }}");
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
{% block middletitle %}{% trans "Available domains" %}{% endblock %}
|
|
{% block menu %}{% domains_menu "domains" user %}{% endblock %}
|
|
{% block content %}
|
|
{% if messages %}
|
|
{% display_messages messages %}
|
|
{% endif %}
|
|
<div id="domcontent">
|
|
{% 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 %}
|
|
</div>
|
|
{% endblock %}
|