diff --git a/src/controller/admin/club/protocolController.ts b/src/controller/admin/club/protocolController.ts index 0a30b81..868715f 100644 --- a/src/controller/admin/club/protocolController.ts +++ b/src/controller/admin/club/protocolController.ts @@ -260,6 +260,7 @@ export async function createProtocolPrintoutById(req: Request, res: Response): P agenda, decisions, presence: presence.filter((p) => !p.absent).map((p) => p.member), + absent: presence.filter((p) => p.absent).map((p) => ({ ...p.member, excused: p.excused })), excused_absent: presence.filter((p) => p.absent && p.excused).map((p) => p.member), unexcused_absent: presence.filter((p) => p.absent && !p.excused).map((p) => p.member), votings, diff --git a/src/templates/protocol.body.template.html b/src/templates/protocol.body.template.html index c37fa75..5a263ff 100644 --- a/src/templates/protocol.body.template.html +++ b/src/templates/protocol.body.template.html @@ -14,9 +14,19 @@

Anwesenheit ({{presence.length}})

-

{{#each presence}} {{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}} {{/each}}

+

+ {{#each presence}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}}{{/each}}{{#unless + presence.length}}---{{/unless}} +

Abwesenheit ({{absent.length}})

-

{{#each absent}} {{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}} {{/each}}

+

+ entschuldigt: {{#each excused_absent}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, + {{/unless}}{{/each}}{{#unless excused_absent.length}}---{{/unless}} +

+

+ unentschuldigt: {{#each unexcused_absent}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, + {{/unless}}{{/each}}{{#unless unexcused_absent.length}}---{{/unless}} +


Agenda

{{#each agenda}}