aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-09 18:28:42 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-09 18:28:42 +0100
commit13222204392009e07382eecb908b7e6e01155ec4 (patch)
tree5295169a49765d9649be96d3bc599ce73c6640a0 /templates
parente9140c5a66ff9035dc973e93aad9c0ed909b6f13 (diff)
downloadguichet-13222204392009e07382eecb908b7e6e01155ec4.tar.gz
guichet-13222204392009e07382eecb908b7e6e01155ec4.zip
User list
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_users.html27
-rw-r--r--templates/passwd.html2
-rw-r--r--templates/profile.html2
3 files changed, 29 insertions, 2 deletions
diff --git a/templates/admin_users.html b/templates/admin_users.html
new file mode 100644
index 0000000..8ca80e2
--- /dev/null
+++ b/templates/admin_users.html
@@ -0,0 +1,27 @@
+{{define "title"}}Liste des utilisateurs |{{end}}
+
+{{define "body"}}
+<div class="d-flex">
+ <a class="ml-auto btn btn-info" href="/">Retour</a>
+</div>
+
+<table class="table mt-4">
+ <thead>
+ <th scope="col">{{ .UserNameAttr }}</th>
+ <th scope="col">Nom complet</th>
+ <th scope="col">Email</th>
+ </thead>
+ <tbody>
+ {{with $root := .}}
+ {{range $user := $root.Users}}
+ <tr>
+ <td>{{$user.GetAttributeValue $root.UserNameAttr}}</td>
+ <td>{{$user.GetAttributeValue "displayname"}}</td>
+ <td>{{$user.GetAttributeValue "mail"}}</td>
+ </tr>
+ {{end}}
+ {{end}}
+ </tbody>
+</table>
+
+{{end}}
diff --git a/templates/passwd.html b/templates/passwd.html
index 7dffcb8..57ae234 100644
--- a/templates/passwd.html
+++ b/templates/passwd.html
@@ -12,7 +12,7 @@
<div class="alert alert-success">
Nouveau mot de passe enregistré.
</div>
- <a class="ml-auto btn btn-info" href="/">Retour</a>
+ <a class="btn btn-info" href="/">Retour</a>
{{else}}
<form method="POST">
<div class="form-group">
diff --git a/templates/profile.html b/templates/profile.html
index d2ff632..bdab685 100644
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -12,7 +12,7 @@
<div class="alert alert-success">
Profil enregistré.
</div>
- <a class="ml-auto btn btn-info" href="/">Retour</a>
+ <a class="btn btn-info" href="/">Retour</a>
{{else}}
<form method="POST">
<div class="form-group">