member print

This commit is contained in:
Julian Krauser 2025-06-03 15:32:41 +02:00
parent fded8a663a
commit 38bfa3dd75
2 changed files with 16 additions and 1 deletions

View file

@ -152,6 +152,7 @@ export async function getMemberPrintoutById(req: Request, res: Response): Promis
let qualifications = await MemberQualificationService.getAll(memberId);
let positions = await MemberExecutivePositionService.getAll(memberId);
let communications = await CommunicationService.getAll(memberId);
let educations = await MemberEducationService.getAll(memberId);
let pdf = await PdfExport.renderFile({
title: "Mitglieder-Ausdruck",
@ -165,6 +166,7 @@ export async function getMemberPrintoutById(req: Request, res: Response): Promis
qualifications,
positions,
communications,
educations,
},
});

View file

@ -58,7 +58,7 @@
<br />
{{/each}} {{/if}} {{#if qualifications.length}}
<br />
<h2>Qualifikationen</h2>
<h2>Qualifikationen / Funktionen</h2>
{{#each qualifications}}
<div>
<h3>{{this.qualification.qualification}}: {{date this.date}}</h3>
@ -69,6 +69,19 @@
{{/if}}
</div>
<br />
{{/each}} {{/if}} {{#if educations.length}}
<br />
<h2>Aus-/Fortbildungen</h2>
{{#each educations}}
<div>
<h3>{{this.education.education}}: {{date this.start}}{{#if this.end}} bis {{date this.end}}{{/if}}</h3>
{{#if this.place}}
<p>Ausbildungsort: {{this.place}}</p>
{{/if}}{{#if this.note}}
<p>Notiz: {{this.note}}</p>
{{/if}}
</div>
<br />
{{/each}} {{/if}}
</body>
<style>