2020-02-09 17:28:42 +00:00
|
|
|
{{define "title"}}Liste des utilisateurs |{{end}}
|
2023-07-24 08:36:34 +00:00
|
|
|
|
2023-07-23 15:18:29 +00:00
|
|
|
{{define "admenu"}}
|
|
|
|
{{end}}
|
2023-07-24 08:36:34 +00:00
|
|
|
|
|
|
|
|
2020-02-09 17:28:42 +00:00
|
|
|
{{define "body"}}
|
2020-02-09 18:56:01 +00:00
|
|
|
|
2020-02-09 17:28:42 +00:00
|
|
|
<div class="d-flex">
|
2023-07-21 14:18:40 +00:00
|
|
|
<h2>Liste des utilisateurs</h2>
|
2020-02-10 08:44:18 +00:00
|
|
|
<a class="ml-auto btn btn-success" href="/admin/create/user/{{.UserBaseDN}}">Nouvel utilisateur</a>
|
2020-02-09 17:28:42 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table mt-4">
|
|
|
|
<thead>
|
2023-07-21 05:38:12 +00:00
|
|
|
<th scope="col"></th>
|
2020-02-09 21:06:33 +00:00
|
|
|
<th scope="col">Identifiant</th>
|
2020-02-09 17:28:42 +00:00
|
|
|
<th scope="col">Nom complet</th>
|
|
|
|
<th scope="col">Email</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{with $root := .}}
|
|
|
|
{{range $user := $root.Users}}
|
|
|
|
<tr>
|
2023-07-21 05:38:12 +00:00
|
|
|
<td>
|
|
|
|
<a href="/admin/unactivate/{{ $user.GetAttributeValue "cn" }}">
|
|
|
|
Dèsactiver
|
|
|
|
</a>
|
|
|
|
</td>
|
2020-02-09 21:06:33 +00:00
|
|
|
<td>
|
|
|
|
<a href="/admin/ldap/{{$user.DN}}">
|
|
|
|
{{$user.GetAttributeValue $root.UserNameAttr}}
|
|
|
|
</a>
|
|
|
|
</td>
|
2023-07-20 08:22:41 +00:00
|
|
|
<td>{{$user.GetAttributeValue "displayName"}}</td>
|
2020-02-09 17:28:42 +00:00
|
|
|
<td>{{$user.GetAttributeValue "mail"}}</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{end}}
|