Obsolete
/
dnsmanagerv1
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dnsmanagerv1/views/administration.tt

75 lines
1.9 KiB
Plaintext
Raw Normal View History

<% include header.tt %>
2014-01-23 00:25:33 +01:00
<% 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>
2015-10-15 17:06:35 +02:00
<% FOREACH d IN alldomains %>
<tr>
2015-10-15 17:06:35 +02:00
<td><% d.domain %></td>
<td><% d.login %></td>
<td>
2015-10-15 17:06:35 +02:00
<a href="/domain/del/<% d.domain %>"><button type="button" class="btn btn-danger">Supprimer le domaine</button></a>
</td>
<td>
2015-10-15 17:06:35 +02:00
<a href="/user/del/<% d.login %>"><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>
2015-10-15 17:06:35 +02:00
<% FOREACH u IN allusers %>
<tr>
2015-10-15 17:06:35 +02:00
<td><% u.login %></td>
<td>
2015-10-15 17:06:35 +02:00
<a href="/user/del/<% u.login %>"><button type="button" class="btn btn-danger">Supprimer l'utilisateur</button></a>
</td>
<td>
2015-10-15 17:06:35 +02:00
<a href="/user/toggleadmin/<% u.login %>">
<% IF u.admin == 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 -->