guichet/templates/admin_mailing.html

36 lines
840 B
HTML
Raw Normal View History

{{define "title"}}Mailing lists |{{end}}
2023-07-24 08:36:34 +00:00
2023-07-23 15:18:29 +00:00
{{define "admenu"}}
{{end}}
2023-07-24 08:36:34 +00:00
{{define "body"}}
<div class="d-flex">
<h4>Mailing lists</h4>
2023-07-25 20:00:07 +00:00
<a class="ml-auto btn btn-success" href="/admin-create/ml/{{.MailingBaseDN}}">Nouvelle mailing list</a>
<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>
2023-07-25 20:00:07 +00:00
<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}}