aboutsummaryrefslogblamecommitdiff
path: root/templates/admin_users.html
blob: 39e291c334909d0b86f5d7969f27a61f0083ec1d (plain) (tree)
1
2
3
4
5
6


                                                 
 
                    
                                 






















                                                                 
{{define "title"}}Liste des utilisateurs |{{end}}

{{define "body"}}

<div class="d-flex">
  <h4>Liste des utilisateurs</h4>
  <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}}