aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_groups.html
blob: b52dd920f2174ed6a4271bb21e4bb09e924a8728 (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
28
29
30
31
32
{{define "title"}}Liste des groupes |{{end}}

{{define "body"}}

<div class="d-flex">
  <h4>Liste des groupes</h4>
  <a class="ml-auto btn btn-success" href="/admin/create/group/{{.GroupBaseDN}}">Nouveau groupe</a>
  <a class="ml-4 btn btn-info" href="/">Menu principal</a>
</div>

<table class="table mt-4">
  <thead>
    <th scope="col">Identifiant</th>
    <th scope="col">Nom complet</th>
  </thead>
  <tbody>
    {{with $root := .}}
      {{range $group := $root.Groups}}
        <tr>
          <td>
            <a href="/admin/ldap/{{$group.DN}}">
              {{$group.GetAttributeValue $root.GroupNameAttr}}
            </a>
          </td>
          <td>{{$group.GetAttributeValue "displayname"}}</td>
        </tr>
      {{end}}
    {{end}}
  </tbody>
</table>

{{end}}