guichet/templates/admin_users.html

30 lines
682 B
HTML
Raw Normal View History

2020-02-09 17:28:42 +00:00
{{define "title"}}Liste des utilisateurs |{{end}}
{{define "body"}}
2020-02-09 18:56:01 +00:00
2020-02-09 17:28:42 +00:00
<div class="d-flex">
2020-02-09 18:56:01 +00:00
<h4>Liste des utilisateurs</h4>
2020-02-09 17:28:42 +00:00
<a class="ml-auto btn btn-info" href="/">Retour</a>
</div>
<table class="table mt-4">
<thead>
<th scope="col">{{ .UserNameAttr }}</th>
<th scope="col">Nom complet</th>
<th scope="col">Email</th>
</thead>
<tbody>
{{with $root := .}}
{{range $user := $root.Users}}
<tr>
<td>{{$user.GetAttributeValue $root.UserNameAttr}}</td>
<td>{{$user.GetAttributeValue "displayname"}}</td>
<td>{{$user.GetAttributeValue "mail"}}</td>
</tr>
{{end}}
{{end}}
</tbody>
</table>
{{end}}