evoadmin-mail/htdocs/tpl/page/list_domain.html

45 lines
1.6 KiB
HTML

{% extends 'base.html' %}
{% block body %}
{% include 'nav.html' %}
<div class="container">
{% include 'notif.html' %}
<h2>Liste des domaines administrables :</h2><hr>
<form method="post" action="/?domain=_all" onsubmit="return confirm('Voulez vous vraiment supprimer ce domaine ?');">
<input type="hidden" name="delete" value="domain"/>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Nom du domaine</th>
<th width="100px">Actif</th>
<th>Nombre de comptes</th>
<th>dont comptes mail</th>
<th>Nombre d'alias mail</th>
<th>Taille / Quota</th>
<th width="50px">Suppr.</th>
</tr>
</thead>
<tbody>
<?php
{% for domain in domains %}
<tr><td style="text-align:left;"><a href="/?domain={{ domain.name }}">{{ domain.name }}</a></td>
{% if domain.active %}
<td><span class="glyphicon glyphicon-ok"></span></td>
{% else %}
<td><span class="glyphicon glyphicon-remove"></span></td>
{% endif %}
<td><b>{{ domain.NbAccounts }}</b></td>
<td><b>{{ domain.NbMailAccounts }}</b></td>
<td><b>{{ domain.NbMailAlias }}</b></td>
<td>{{ domain.getQuota }}</td>
<td><button type="submit" name="cn" value="{{ domain.name }}"><span class="glyphicon glyphicon-trash"></span></button></td>
</tr>
{% endfor %}
</tbody>
</table>
</form>
</div>
{% endblock %}