aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_users.html
blob: 8ca80e265c14c3692ea9b3a90f6333657da720bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{define "title"}}Liste des utilisateurs |{{end}}

{{define "body"}}
<div class="d-flex">
  <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}}