38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block body %}
|
|
{% include 'nav.html' %}
|
|
|
|
<div class="container">
|
|
{% include 'notif.html' %}
|
|
|
|
<div class="text-center">
|
|
<form name="update" method="post" action="admin.php?domain={{ domain }}">
|
|
{% if isSuperAdmin %}
|
|
{% if active %}
|
|
<button type="submit" name="isactive" value="FALSE" class="btn btn-primary">Désactiver le domaine</button>
|
|
{% else %}
|
|
<button type="submit" name="isactive" value="TRUE" class="btn btn-primary">Activer le domaine</button>
|
|
{% endif %}
|
|
{% endif %}
|
|
<a href="compte.php?domain={{ domain }}"><button type="button" class="btn btn-primary">Ajouter un nouveau compte</button></a>
|
|
|
|
<a href="alias.php?domain={{ domain }}"><button type="button" class="btn btn-primary">Ajouter un nouvel alias/groupe de diffusion</button></a>
|
|
</form>
|
|
</div>
|
|
<hr>
|
|
<form class='center' action='admin.php' method='GET' name='listing'>
|
|
<div class="form-group">
|
|
<input type="hidden" name="domain" value="{{ domain }}"/>
|
|
<select class="form-control" name='viewonly' onchange="document.listing.submit()">
|
|
<option value='1' {% if view == 'account' %}selected="selected"{% endif %}>Liste des comptes</option>
|
|
<option value='2' {% if view == 'alias' %}selected="selected"{% endif %}>Liste des alias/groupe de diffusion</option>
|
|
</select>
|
|
</div>
|
|
</form>
|
|
|
|
{% block list %}{% endblock %}
|
|
|
|
</div>
|
|
{% endblock %}
|