aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMrArmonius <mrarmonius@gmail.com>2021-07-12 17:08:56 +0200
committerGitea <gitea@fake.local>2021-07-22 10:41:06 +0200
commit3d7b4a9f68f5b5c06bc6c039c90ee8406a56e500 (patch)
tree7e3f9f48b0213bf04413f387826b7ea173cca337 /templates
parent353f9600f3f1ce59c6faa825203f50b48017e44f (diff)
downloadguichet-3d7b4a9f68f5b5c06bc6c039c90ee8406a56e500.tar.gz
guichet-3d7b4a9f68f5b5c06bc6c039c90ee8406a56e500.zip
Add Datalist to help search users or group in LDAP admin page
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_ldap.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html
index 7b274dc..d1aab29 100644
--- a/templates/admin_ldap.html
+++ b/templates/admin_ldap.html
@@ -146,7 +146,12 @@
<div class="col-md-3"><strong>Ajouter au groupe :</strong>
</div>
<div class="col-md-5">
- <input class="form-control" type="text" name="values" placeholder="Utilisateur..." />
+ <input class="form-control" type="text" list="users" name="values" placeholder="Utilisateur..." />
+ <datalist id="users">
+ {{ range $key, $value := .ListMemGro}}
+ <option value={{$key}}>{{$value}}</option>
+ {{end}}
+ </datalist>
</div>
<div class="col-md-2">
<input type="submit" value="Ajouter" class="form-control btn btn-success btn-sm" />
@@ -182,7 +187,12 @@
<div class="col-md-3"><strong>Nouveau groupe :</strong>
</div>
<div class="col-md-5">
- <input class="form-control" type="text" name="group" placeholder="Groupe..." />
+ <input class="form-control" list="groups" type="text" name="group" placeholder="Groupe..." />
+ <datalist id="groups">
+ {{ range $key, $value := .ListMemGro}}
+ <option value={{$key}}>{{$value}}</option>
+ {{end}}
+ </datalist>
</div>
<div class="col-md-2">
<input type="submit" value="Ajouter" class="form-control btn btn-success btn-sm" />