diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-09 23:13:33 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-09 23:13:33 +0100 |
commit | 54eb5d623979c2fe4765d20c5683eb853fd29285 (patch) | |
tree | 244ce1ba928b76369f76d3ac325cd575928aecc2 /templates | |
parent | a85ffdfc8095f205226cd991d4754feb3a632a3e (diff) | |
download | guichet-54eb5d623979c2fe4765d20c5683eb853fd29285.tar.gz guichet-54eb5d623979c2fe4765d20c5683eb853fd29285.zip |
Add breadcrumbs; stuff
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin_create.html | 13 | ||||
-rw-r--r-- | templates/admin_ldap.html | 19 |
2 files changed, 24 insertions, 8 deletions
diff --git a/templates/admin_create.html b/templates/admin_create.html index 94dee5b..3e636a5 100644 --- a/templates/admin_create.html +++ b/templates/admin_create.html @@ -6,6 +6,17 @@ <a class="ml-auto btn btn-info" href="/">Retour</a> </div> +<div class="mt-4"> + <nav aria-label="breadcrumb"> + <ol class="breadcrumb"> + {{range .Path}} + <li class="breadcrumb-item"><a href="/admin/ldap/{{.DN}}">{{.Identifier}}</a></li> + {{end}} + <li class="breadcrumb-item active" aria-current="page">Nouvel objet</li> + </ol> + </nav> +</div> + {{if .Error}} <div class="alert alert-danger mt-4">Impossible de créer l'objet. <div style="font-size: 0.8em">{{ .Error }}</div> @@ -13,10 +24,12 @@ {{end}} <form method="POST" class="mt-4"> + <!-- <div class="form-group"> <label>Parent:</label> <input type="text" disabled="true" class="form-control" value="{{ .SuperDN }}" /> </div> + --> <div class="form-group"> <label for="idvalue">Identifiant:</label> <input type="text" id="idvalue" name="idvalue" class="form-control" value="{{ .IdValue }}" /> 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}} |