aboutsummaryrefslogblamecommitdiff
path: root/templates/admin_groups.html
blob: 8b5a4ef1ab340b1cb62b91044e53b4ab3ea07c9b (plain) (tree)






























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

{{define "body"}}

<div class="d-flex">
  <h4>Liste des groupes</h4>
  <a class="ml-auto btn btn-info" href="/">Retour</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}}