2023-02-08 12:11:43 +00:00
|
|
|
{{define "title"}}Mailing lists |{{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:47:30 +00:00
|
|
|
<li><a href="#">Administration</a>
|
2023-07-23 15:18:29 +00:00
|
|
|
<ul class="submenu">
|
2023-07-24 08:47:30 +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
|
|
|
|
2023-02-08 12:11:43 +00:00
|
|
|
{{define "body"}}
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
<h4>Mailing lists</h4>
|
2023-02-08 15:46:13 +00:00
|
|
|
<a class="ml-auto btn btn-success" href="/admin/create/ml/{{.MailingBaseDN}}">Nouvelle mailing list</a>
|
2023-02-08 12:11:43 +00:00
|
|
|
<a class="ml-4 btn btn-info" href="/">Menu principal</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table mt-4">
|
|
|
|
<thead>
|
|
|
|
<th scope="col">Adresse</th>
|
|
|
|
<th scope="col">Description</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{with $root := .}}
|
|
|
|
{{range $ml := $root.MailingLists}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="/admin/mailing/{{$ml.GetAttributeValue $root.MailingNameAttr}}">
|
|
|
|
{{$ml.GetAttributeValue $root.MailingNameAttr}}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{$ml.GetAttributeValue "description"}}</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{end}}
|