aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_ldap.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-09 23:13:33 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-09 23:13:33 +0100
commit54eb5d623979c2fe4765d20c5683eb853fd29285 (patch)
tree244ce1ba928b76369f76d3ac325cd575928aecc2 /templates/admin_ldap.html
parenta85ffdfc8095f205226cd991d4754feb3a632a3e (diff)
downloadguichet-54eb5d623979c2fe4765d20c5683eb853fd29285.tar.gz
guichet-54eb5d623979c2fe4765d20c5683eb853fd29285.zip
Add breadcrumbs; stuff
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}}