From b3d6854d82143ef62234a408ada01d4035c19b20 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 12 Feb 2020 15:54:17 +0100 Subject: Use more appropriate `description` instead of `displayname` for everything except users --- templates/admin_create.html | 23 ++++++++++++++++------- templates/admin_groups.html | 2 +- templates/admin_ldap.html | 6 +++--- 3 files changed, 20 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/admin_create.html b/templates/admin_create.html index 6e5aef1..9971aaf 100644 --- a/templates/admin_create.html +++ b/templates/admin_create.html @@ -36,19 +36,28 @@
- -
-
- - +
+ {{ if eq .Template "user" }} +
+ + +
+ + {{ else }} +
+ + +
+ + {{ end }}
- +
- +
diff --git a/templates/admin_groups.html b/templates/admin_groups.html index b52dd92..f6eabfe 100644 --- a/templates/admin_groups.html +++ b/templates/admin_groups.html @@ -22,7 +22,7 @@ {{$group.GetAttributeValue $root.GroupNameAttr}} - {{$group.GetAttributeValue "displayname"}} + {{$group.GetAttributeValue "description"}} {{end}} {{end}} diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html index 188652b..7b274dc 100644 --- a/templates/admin_ldap.html +++ b/templates/admin_ldap.html @@ -30,7 +30,7 @@ {{.Identifier}} - {{.DisplayName}} + {{.Name}} {{end}} @@ -125,7 +125,7 @@ {{range .Members}}
- {{.DisplayName}} + {{.Name}}
{{.DN}} @@ -162,7 +162,7 @@ {{range .Groups}}
- {{.DisplayName}} + {{.Name}}
{{.DN}} -- cgit v1.2.3