diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-09 22:06:33 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-09 22:06:33 +0100 |
commit | 43825b1bbc02e9b1697b965a1621a936c5ae0334 (patch) | |
tree | 19945695086a20c8f8aedda7c90e171b61638b41 /templates/admin_groups.html | |
parent | f929ca7297905e4233aa32fe2d80dd4cc3fcda30 (diff) | |
download | guichet-43825b1bbc02e9b1697b965a1621a936c5ae0334.tar.gz guichet-43825b1bbc02e9b1697b965a1621a936c5ae0334.zip |
LDAP modification form
Diffstat (limited to 'templates/admin_groups.html')
-rw-r--r-- | templates/admin_groups.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/admin_groups.html b/templates/admin_groups.html new file mode 100644 index 0000000..8b5a4ef --- /dev/null +++ b/templates/admin_groups.html @@ -0,0 +1,31 @@ +{{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}} |