{{define "content"}} {{ if eq (index .ViewState.event.Owners 0) .Group.ID }}

Bénéficiaires désinscrits de l'évènement {{.ViewState.event.Name}}

{{if eq .ViewState.event.Startdate .ViewState.event.Enddate}} Le {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} {{else}} Du {{(timeFrom .ViewState.event.Startdate).Format "02/01/2006"}} au {{(timeFrom .ViewState.event.Enddate).Format "02/01/2006"}} {{end}}

{{range .ViewState.event.DeletedSubscription}} {{end}}
Bénéficiaire Prescripteur Désinscrit par Date de suppression Motif
 {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }}
 {{.Data.subscribed_by.user.display_name}}
{{.Data.subscribed_by.group.name}}
 {{.Data.unsubscribed_by.user.display_name}}
{{.Data.unsubscribed_by.group.name}}
{{(timeFormat .CreatedAt "02/01/2006")}}
{{.Data.motif}}
{{else}}
{{.IconSet.Icon "hero:outline/information-circle" "h-6 w-6"}}
{{end}} {{end}}