aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_mailing.html
blob: d81545f3ab6e4f1628ba29b406c1bb742d30e1a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{{define "title"}}Mailing lists |{{end}}

{{define "body"}}

<div class="d-flex">
  <h4>Mailing lists</h4>
  <a class="ml-auto btn btn-success" href="/admin/create/group/{{.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>
            <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}}