Files
modoboa/templates/admin/domaliases.html
T
tonio 66f08caea9 see #97
Work still in progress. Added support for aliases creation and edition.

see #102

Starting with code refactoring before modifying UI.
2010-12-02 16:25:15 +01:00

37 lines
1.2 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">
</script>
{% endblock %}
{% block middletitle %}
{% trans "Domain aliases" %}{% if domain %} ({% trans "for" %} {{ domain.name }}){% endif %}
{% endblock %}
{% block menu %}{% domains_menu "domaliases" user %}{% endblock %}
{% block content %}
{% if messages %}{% display_messages messages %}{% endif %}
<div id="domcontent">
{% if not domaliases %}
<div class="info">{% trans "No domain alias defined." %}</div>
{% else %}
<table>
<tr>
<th width="50px">{% trans "Actions" %}</th>
<th width="150px">{% trans "Name" %}</th>
<th width="200px">{% trans "Targeted domain" %}</th>
<th width="75px">{% trans "Enabled" %}</th>
</tr>
{% for domalias in domaliases %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{% domalias_actions user domalias.id %}</td>
<td>{{ domalias.name }}</td>
<td>{{ domalias.target.name }}</td>
<td>{{ domalias.enabled|yesno }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
{% endblock %}