2020-02-09 18:28:42 +01:00
|
|
|
{{define "title"}}Liste des utilisateurs |{{end}}
|
|
|
|
|
|
|
|
{{define "body"}}
|
2020-02-09 19:56:01 +01:00
|
|
|
|
2020-02-09 18:28:42 +01:00
|
|
|
<div class="d-flex">
|
2020-02-09 19:56:01 +01:00
|
|
|
<h4>Liste des utilisateurs</h4>
|
2020-02-10 09:44:18 +01:00
|
|
|
<a class="ml-auto btn btn-success" href="/admin/create/user/{{.UserBaseDN}}">Nouvel utilisateur</a>
|
|
|
|
<a class="ml-4 btn btn-info" href="/">Menu principal</a>
|
2020-02-09 18:28:42 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table mt-4">
|
|
|
|
<thead>
|
2020-02-09 22:06:33 +01:00
|
|
|
<th scope="col">Identifiant</th>
|
2020-02-09 18:28:42 +01:00
|
|
|
<th scope="col">Nom complet</th>
|
|
|
|
<th scope="col">Email</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{with $root := .}}
|
|
|
|
{{range $user := $root.Users}}
|
|
|
|
<tr>
|
2020-02-09 22:06:33 +01:00
|
|
|
<td>
|
|
|
|
<a href="/admin/ldap/{{$user.DN}}">
|
|
|
|
{{$user.GetAttributeValue $root.UserNameAttr}}
|
|
|
|
</a>
|
|
|
|
</td>
|
2020-02-09 18:28:42 +01:00
|
|
|
<td>{{$user.GetAttributeValue "displayname"}}</td>
|
|
|
|
<td>{{$user.GetAttributeValue "mail"}}</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{end}}
|