aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_ldap.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin_ldap.html')
-rw-r--r--templates/admin_ldap.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html
index 53570fe..3ceed7d 100644
--- a/templates/admin_ldap.html
+++ b/templates/admin_ldap.html
@@ -21,14 +21,6 @@
</nav>
</div>
-<div class="mt-4">
- <div class="d-flex">
- <a class="ml-auto btn btn-sm btn-success" href="/admin/create/user/{{.DN}}">+utilisateur</a>
- <a class="ml-4 btn btn-sm btn-success" href="/admin/create/group/{{.DN}}">+groupe</a>
- <a class="ml-4 btn btn-sm btn-success" href="/admin/create/generic/{{.DN}}">+objet</a>
- </div>
-</div>
-
<table class="table mt-4">
<tbody>
{{range .Children}}
@@ -44,6 +36,17 @@
</tbody>
</table>
+{{if .CanAddChild}}
+ <div class="mt-4">
+ <div class="d-flex">
+ <a class="ml-auto btn btn-sm btn-success" href="/admin/create/user/{{.DN}}">+utilisateur</a>
+ <a class="ml-4 btn btn-sm btn-success" href="/admin/create/group/{{.DN}}">+groupe</a>
+ <a class="ml-4 btn btn-sm btn-success" href="/admin/create/generic/{{.DN}}">+objet</a>
+ </div>
+ </div>
+ <hr class="mt-4" />
+{{end}}
+
{{if .Success}}
<div class="alert alert-success mt-2">Modification enregistrée.</div>
{{end}}