gvguichet/templates/admin_groups.html

33 lines
781 B
HTML
Raw Normal View History

2020-02-09 22:06:33 +01:00
{{define "title"}}Liste des groupes |{{end}}
{{define "body"}}
<div class="d-flex">
<h4>Liste des groupes</h4>
2020-02-10 09:44:18 +01:00
<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>
2020-02-09 22:06:33 +01:00
</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 "description"}}</td>
2020-02-09 22:06:33 +01:00
</tr>
{{end}}
{{end}}
</tbody>
</table>
{{end}}