From 43825b1bbc02e9b1697b965a1621a936c5ae0334 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 9 Feb 2020 22:06:33 +0100 Subject: LDAP modification form --- templates/admin_groups.html | 31 ++++++++++ templates/admin_ldap.html | 134 ++++++++++++++++++++++++++++++++++++++++++++ templates/admin_users.html | 8 ++- templates/home.html | 2 +- 4 files changed, 172 insertions(+), 3 deletions(-) create mode 100644 templates/admin_groups.html create mode 100644 templates/admin_ldap.html (limited to 'templates') 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"}} + +
+

Liste des groupes

+ Retour +
+ + + + + + + + {{with $root := .}} + {{range $group := $root.Groups}} + + + + + {{end}} + {{end}} + +
IdentifiantNom complet
+ + {{$group.GetAttributeValue $root.GroupNameAttr}} + + {{$group.GetAttributeValue "displayname"}}
+ +{{end}} diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html new file mode 100644 index 0000000..5eece8a --- /dev/null +++ b/templates/admin_ldap.html @@ -0,0 +1,134 @@ +{{define "title"}}Explorateur LDAP |{{end}} + +{{define "body"}} + +
+

Explorateur LDAP

+ Retour +
+ +
+ +
+ + + + {{range .Children}} + + + + + {{end}} + +
+ + {{.Identifier}} + + {{.DisplayName}}
+ +
Attributs
+
+ {{range $key, $value := .Props}} + {{if $value.Editable}} +
+
{{$key}}
+ +
+
+
+ + + +
+ +
+
+
+ {{if $value.ModifySuccess}} +
Modification enregistrée.
+ {{end}} + {{if $value.ModifyError}} +
+ Impossible de modifier la valeur. +
{{$value.ModifyError}}
+
+ {{end}} +
+ +
+
+ + + +
+
+
+ {{end}} + {{end}} + {{range $key, $value := .Props}} + {{if not $value.Editable}} +
+
{{$key}}
+
+ {{range $value.Values}} +
{{.}}
+ {{end}} +
+
+ {{end}} + {{end}} +
+
+
+ + +
+
+ {{if .AddError}} +
+ Impossible d'ajouter la valeur. +
{{.AddError}}
+
+ {{end}} +
+ +
+ +
+
+
+
+
+
+ +{{if .Members}} +
Membres
+ +{{end}} + +{{if .Groups}} +
Membre de
+ +{{end}} + +
+ +{{end}} diff --git a/templates/admin_users.html b/templates/admin_users.html index 39e291c..01d96d2 100644 --- a/templates/admin_users.html +++ b/templates/admin_users.html @@ -9,7 +9,7 @@ - + @@ -17,7 +17,11 @@ {{with $root := .}} {{range $user := $root.Users}} - + diff --git a/templates/home.html b/templates/home.html index b4012fd..011dcc1 100644 --- a/templates/home.html +++ b/templates/home.html @@ -30,7 +30,7 @@
Utilisateurs Groupes - Explorateur LDAP + Explorateur LDAP
{{end}} -- cgit v1.2.3
{{ .UserNameAttr }}Identifiant Nom complet Email
{{$user.GetAttributeValue $root.UserNameAttr}} + + {{$user.GetAttributeValue $root.UserNameAttr}} + + {{$user.GetAttributeValue "displayname"}} {{$user.GetAttributeValue "mail"}}