guichet/templates/admin_activate.html

59 lines
1.7 KiB
HTML
Raw Normal View History

2023-07-21 04:51:56 +00:00
{{define "title"}}Activer des utilisateurs |{{end}}
2023-07-24 08:36:34 +00:00
2023-07-23 15:18:29 +00:00
{{define "admenu"}}
{{if .Login.CanAdmin}}
2023-07-24 08:36:34 +00:00
<li><a href="#">Administration</a>
2023-07-23 15:18:29 +00:00
<ul class="submenu">
2023-07-24 08:36:34 +00:00
<li><a href="/admin/activate">Administrer LDAP</a>
2023-07-23 15:18:29 +00:00
<li><a href="/admin/activate">Activer des Utilisateur·ices</a></li>
<li><a href="/admin/users">Utilisateur·ices</a></li>
<li><a href="/admin/groups">Groupes</a></li>
</ul>
</li>
{{end}}
{{if .Login}}
2023-07-24 08:52:50 +00:00
<li>&lt;&nbsp;<a href="#">Compte</a>
2023-07-23 15:18:29 +00:00
<ul class="submenu">
2023-07-24 08:47:30 +00:00
<a href="/logout">Se déconnecter</a>
2023-07-23 15:18:29 +00:00
<li><a href="/gpas">Mal de passe oublié</a></li>
<li><a href="/invite/new_account">S'enregistrer</a></li>
2023-07-24 08:47:30 +00:00
</ul></li>
{{else}}
2023-07-24 08:52:50 +00:00
<li> &lt;&nbsp;<a href="/">Se connecter</a></li>
2023-07-23 15:18:29 +00:00
{{end}}
{{end}}
2023-07-24 08:36:34 +00:00
2023-07-21 04:58:43 +00:00
{{define "body"}}
2023-07-21 04:51:56 +00:00
<table class="table mt-4">
<thead>
2023-07-21 05:38:12 +00:00
<th scope="col"></th>
2023-07-21 05:33:43 +00:00
<th scope="col">Login</th>
<th scope="col">Email</th>
<th scope="col">Nom d'ffichage</th>
<th scope="col">Prénom</th>
<th scope="col">Nom de famille</th>
<th scope="col">description</th>
2023-07-21 04:51:56 +00:00
</thead>
<tbody>
{{with $root := .}}
{{range $user := $root.Users}}
<tr>
<td>
2023-07-21 05:33:43 +00:00
<a href="/admin/activate/{{ $user.GetAttributeValue "cn" }}">
2023-07-21 05:38:12 +00:00
Activer
2023-07-21 04:51:56 +00:00
</a>
</td>
2023-07-21 05:38:12 +00:00
<td>
2023-07-21 14:40:28 +00:00
<a href="/admin/ldap/{{$user.DN}}">{{$user.GetAttributeValue "cn"}}</a>
2023-07-21 05:38:12 +00:00
</td>
2023-07-21 04:51:56 +00:00
<td>{{$user.GetAttributeValue "mail"}}</td>
2023-07-21 05:00:35 +00:00
<td>{{$user.GetAttributeValue "displayName"}}</td>
2023-07-21 05:33:43 +00:00
<td>{{$user.GetAttributeValue "givenName"}}</td>
2023-07-21 04:51:56 +00:00
<td>{{$user.GetAttributeValue "sn"}}</td>
<td>{{$user.GetAttributeValue "description"}}</td>
</tr>
{{end}}
{{end}}
</tbody>
2023-07-21 04:58:43 +00:00
</table>
{{end}}