2018-09-19 14:49:14 +02:00
|
|
|
{% extends 'domain.html' %}
|
|
|
|
|
|
|
|
{% block list %}
|
|
|
|
|
|
|
|
<h2>Liste des comptes :</h2><hr>
|
|
|
|
|
2018-09-25 18:23:04 +02:00
|
|
|
<form method="post" action="/?domain={{ domain }}&account=_all" onsubmit="return confirm('Voulez vous vraiment supprimer ce compte ?');">
|
2018-09-25 15:56:22 +02:00
|
|
|
<input type="hidden" name="delete" value="account"/>
|
2018-09-25 18:23:04 +02:00
|
|
|
<input type="hidden" name="domain" value="{{ domain }}"/>
|
2018-09-19 14:49:14 +02:00
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><strong>Nom du compte</strong></th>
|
|
|
|
<th width="100px">Actif</th>
|
|
|
|
<th width="100px">Admin</th>
|
|
|
|
<th width="100px">POP / IMAP</th>
|
|
|
|
<th width="100px">Webmail</th>
|
|
|
|
<th width="100px">Auth SMTP</th>
|
2018-11-21 12:01:26 +01:00
|
|
|
<th width="100px">Quota</th>
|
2018-09-19 14:49:14 +02:00
|
|
|
<th width="50px">Suppr</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
{% for account in accounts %}
|
|
|
|
<tr>
|
2018-09-26 12:18:37 +02:00
|
|
|
<td style="text-align:left;"><a href="/?domain={{ domain }}&account={{ account.uid }}">{{ account.name }} <{{ account.uid }}></a></td>
|
2018-09-19 14:49:14 +02:00
|
|
|
{% if account.active %}
|
|
|
|
<td><span class="glyphicon glyphicon-ok"></span></td>
|
|
|
|
{% else %}
|
|
|
|
<td><span class="glyphicon glyphicon-remove"></span></td>
|
|
|
|
{% endif %}
|
|
|
|
{% if account.admin %}
|
|
|
|
<td><span class="glyphicon glyphicon-ok"></span></td>
|
|
|
|
{% else %}
|
|
|
|
<td><span class="glyphicon glyphicon-remove"></span></td>
|
|
|
|
{% endif %}
|
2018-09-27 17:47:47 +02:00
|
|
|
{% if account.courier %}
|
2018-09-19 14:49:14 +02:00
|
|
|
<td><span class="glyphicon glyphicon-ok"></span></td>
|
|
|
|
{% else %}
|
|
|
|
<td><span class="glyphicon glyphicon-remove"></span></td>
|
|
|
|
{% endif %}
|
|
|
|
{% if account.webmail %}
|
|
|
|
<td><span class="glyphicon glyphicon-ok"></span></td>
|
|
|
|
{% else %}
|
|
|
|
<td><span class="glyphicon glyphicon-remove"></span></td>
|
|
|
|
{% endif %}
|
|
|
|
{% if account.authsmtp %}
|
|
|
|
<td><span class="glyphicon glyphicon-ok"></span></td>
|
|
|
|
{% else %}
|
|
|
|
<td><span class="glyphicon glyphicon-remove"></span></td>
|
|
|
|
{% endif %}
|
|
|
|
<td>{{ account.quota }}</td>
|
|
|
|
<td>
|
2018-09-25 15:56:22 +02:00
|
|
|
<button type="submit" name="uid" value="{{ account.uid }}"><span class="glyphicon glyphicon-trash"></span></button>
|
2018-09-19 14:49:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody></table></form>
|
|
|
|
|
|
|
|
{% endblock %}
|