diff options
author | Alex Auvolat <alex@adnab.me> | 2023-02-08 13:11:43 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-02-08 13:11:43 +0100 |
commit | 670123df38608c98eadc482b9778ddfffe8560c7 (patch) | |
tree | 6b18562f502100a3dc80615a1b0b7d7c5203852f /templates/admin_mailing.html | |
parent | cd415325729fddea26c816291bb33171b9cc4879 (diff) | |
download | guichet-670123df38608c98eadc482b9778ddfffe8560c7.tar.gz guichet-670123df38608c98eadc482b9778ddfffe8560c7.zip |
First iteration on mailing list administration interface
Diffstat (limited to 'templates/admin_mailing.html')
-rw-r--r-- | templates/admin_mailing.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/admin_mailing.html b/templates/admin_mailing.html new file mode 100644 index 0000000..d81545f --- /dev/null +++ b/templates/admin_mailing.html @@ -0,0 +1,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}} |