75 lines
1.9 KiB
Plaintext
75 lines
1.9 KiB
Plaintext
|
<% include header.tt %>
|
||
|
<% include sidebar.tt %>
|
||
|
<% include error.tt %>
|
||
|
|
||
|
<div id="page">
|
||
|
|
||
|
<div id="domaines">
|
||
|
|
||
|
<h3>Domaines gérés</h3>
|
||
|
<table class="table" >
|
||
|
<tr>
|
||
|
<th>domaine</th>
|
||
|
<th>utilisateur</th>
|
||
|
<th>supprimer domaine</th>
|
||
|
<th>supprimer utilisateur</th>
|
||
|
</tr>
|
||
|
|
||
|
<% FOREACH pair IN alldomains.pairs %>
|
||
|
<tr>
|
||
|
<td><% pair.key %></td>
|
||
|
<td><% pair.value %></td>
|
||
|
|
||
|
<td>
|
||
|
<a href="/domain/del/<% pair.key %>"><button type="button" class="btn btn-danger">Supprimer le domaine</button></a>
|
||
|
</td>
|
||
|
|
||
|
<td>
|
||
|
<a href="/user/del/<% pair.value %>"><button type="button" class="btn btn-danger">Supprimer l'utilisateur</button></a>
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
<% END %>
|
||
|
</table>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id="utilisateurs">
|
||
|
|
||
|
<h3>Utilisateurs enregistrés</h3>
|
||
|
<table class="table" >
|
||
|
<tr>
|
||
|
<th>utilisateur</th>
|
||
|
<th>supprimer</th>
|
||
|
<th>administrateur</th>
|
||
|
</tr>
|
||
|
|
||
|
<% FOREACH pair IN allusers.pairs %>
|
||
|
<tr>
|
||
|
<td><% pair.key %></td>
|
||
|
|
||
|
<td>
|
||
|
<a href="/user/del/<% pair.key %>"><button type="button" class="btn btn-danger">Supprimer l'utilisateur</button></a>
|
||
|
</td>
|
||
|
|
||
|
<td>
|
||
|
<a href="/user/toggleadmin/<% pair.key %>">
|
||
|
<% IF pair.value == 1 %>
|
||
|
<button type="button" class="btn btn-danger">Passer utilisateur</button>
|
||
|
<% ELSE %>
|
||
|
<button type="button" class="btn btn-primary">Passer administrateur</button>
|
||
|
<% END %>
|
||
|
</a>
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
<%END%>
|
||
|
</table>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div> <!-- fin de colonne -->
|
||
|
</div> <!-- fin de ligne -->
|