2020-02-09 21:06:33 +00:00
|
|
|
{{define "title"}}Liste des groupes |{{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>< <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> < <a href="/">Se connecter</a></li>
|
2023-07-23 15:18:29 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-07-24 08:36:34 +00:00
|
|
|
|
|
|
|
|
2020-02-09 21:06:33 +00:00
|
|
|
{{define "body"}}
|
|
|
|
|
|
|
|
<div class="d-flex">
|
2023-07-21 14:18:40 +00:00
|
|
|
<h2>Liste des groupes</h2>
|
2020-02-10 08:44:18 +00:00
|
|
|
<a class="ml-auto btn btn-success" href="/admin/create/group/{{.GroupBaseDN}}">Nouveau groupe</a>
|
2020-02-09 21:06:33 +00:00
|
|
|
</div>
|
|
|
|
|
2023-02-08 12:11:43 +00:00
|
|
|
<div class="alert alert-warning mt-4">
|
|
|
|
Les groupes servent uniquement à contrôler l'accès à différentes fonctionalités de Deuxfleurs.
|
|
|
|
Ce ne sont pas des <a href="/admin/mailing">mailing lists</a>.
|
|
|
|
</div>
|
|
|
|
|
2020-02-09 21:06:33 +00:00
|
|
|
<table class="table mt-4">
|
|
|
|
<thead>
|
|
|
|
<th scope="col">Identifiant</th>
|
|
|
|
<th scope="col">Nom complet</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{with $root := .}}
|
|
|
|
{{range $group := $root.Groups}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="/admin/ldap/{{$group.DN}}">
|
|
|
|
{{$group.GetAttributeValue $root.GroupNameAttr}}
|
|
|
|
</a>
|
|
|
|
</td>
|
2020-02-12 14:54:17 +00:00
|
|
|
<td>{{$group.GetAttributeValue "description"}}</td>
|
2020-02-09 21:06:33 +00:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{end}}
|