2018-09-19 14:49:14 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
{% include 'nav.html' %}
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
{% include 'notif.html' %}
|
|
|
|
|
|
|
|
<h2>Liste des domaines administrables :</h2><hr>
|
2018-09-25 18:23:04 +02:00
|
|
|
<form method="post" action="/?domain=_all" onsubmit="return confirm('Voulez vous vraiment supprimer ce domaine ?');">
|
2018-09-25 15:56:22 +02:00
|
|
|
<input type="hidden" name="delete" value="domain"/>
|
2018-09-19 14:49:14 +02:00
|
|
|
<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 %}
|
2018-09-25 15:56:22 +02:00
|
|
|
<tr><td style="text-align:left;"><a href="/?domain={{ domain.name }}">{{ domain.name }}</a></td>
|
2018-09-19 14:49:14 +02:00
|
|
|
{% 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>
|
2018-09-25 15:56:22 +02:00
|
|
|
<td><button type="submit" name="cn" value="{{ domain.name }}"><span class="glyphicon glyphicon-trash"></span></button></td>
|
2018-09-19 14:49:14 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|