feature/#40-protocol-presence-status #44
2 changed files with 13 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -14,9 +14,19 @@
|
|||
<br />
|
||||
<br />
|
||||
<h2>Anwesenheit ({{presence.length}})</h2>
|
||||
<p>{{#each presence}} {{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}} {{/each}}</p>
|
||||
<p>
|
||||
{{#each presence}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}}{{/each}}{{#unless
|
||||
presence.length}}---{{/unless}}
|
||||
</p>
|
||||
<h2>Abwesenheit ({{absent.length}})</h2>
|
||||
<p>{{#each absent}} {{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}} {{/each}}</p>
|
||||
<p>
|
||||
entschuldigt: {{#each excused_absent}}{{this.firstname}} {{this.lastname}}{{#unless @last}},
|
||||
{{/unless}}{{/each}}{{#unless excused_absent.length}}---{{/unless}}
|
||||
</p>
|
||||
<p>
|
||||
unentschuldigt: {{#each unexcused_absent}}{{this.firstname}} {{this.lastname}}{{#unless @last}},
|
||||
{{/unless}}{{/each}}{{#unless unexcused_absent.length}}---{{/unless}}
|
||||
</p>
|
||||
<br />
|
||||
<h2>Agenda</h2>
|
||||
{{#each agenda}}
|
||||
|
|
Loading…
Reference in a new issue