diff --git a/src/PdfCreator.ts b/src/PdfCreator.ts index bc03f2d..64286ad 100644 --- a/src/PdfCreator.ts +++ b/src/PdfCreator.ts @@ -132,7 +132,7 @@ export class PdfCreator { await i18next.changeLanguage(locale); const template_source = fs.readFileSync(`${this.templateDir}/runner_card.html`, 'utf8'); const template = Handlebars.compile(template_source); - const result = template({ cards }) + const result = template({ cards, eventname: "LfK! 2069" }) const pdf = await this.renderPdf(result, { format: "A4", landscape: false }); return pdf } diff --git a/src/templates/runner_card.html b/src/templates/runner_card.html index 5f00ad6..c1b0ef5 100644 --- a/src/templates/runner_card.html +++ b/src/templates/runner_card.html @@ -22,6 +22,7 @@ .runnercard { border: 1px solid; height: 5.5cm; + overflow: hidden; } @@ -31,7 +32,21 @@
Front: {{this.code}}
+{{../eventname}}
+lauf-fuer-kaya.de - am 01.01.2021
+Mit unterstützung von:
+ +{{this.runner.lastname}}, {{this.runner.firstname}} {{this.runner.middlename}}
+{{this.runner.group.name}}