Added template strings

ref #36
This commit is contained in:
Nicolai Ort 2021-03-31 15:13:08 +02:00
parent 3ca2237953
commit 6767c3b2d1
1 changed files with 10 additions and 9 deletions

View File

@ -40,18 +40,18 @@
</head>
<body class="A4 landscape">
{{#each runners}}
<div class="sheet">
<header class="content has-text-centered">
<h1 style="font-size: 3cm; font-weight: bold;">Urkunde</h1>
</header>
<img class="background" style="position: absolute;">
<main class="content has-text-centered" style="padding-top: 3cm;">
<p style="width: 50%; font-size: 4vw; font-weight: bold; margin-bottom: 0; display: inline;">Voasasdasdasdrname
mittelnamerqwerqwe
Nachnameasdasdasd
<p style="width: 50%; font-size: 4vw; font-weight: bold; margin-bottom: 0; display: inline;">{{this.firstname}}
{{this.middlename}} {{this.lastname}}
</p>
<p style="font-size: 1cm; margin-bottom: 0;">Hat beim Testen für Kaya!</p>
<p style="font-size: 2cm; font-weight: bold; margin-bottom: 0;">XX km</p>
<p style="font-size: 1cm; margin-bottom: 0;">Hat beim {{../eventname}}</p>
<p style="font-size: 2cm; font-weight: bold; margin-bottom: 0;">{{this.distance}}km</p>
<p style="font-size: 1cm;">für den guten Zweck zurückgelegt</p>
</main>
<footer class="certificate-footer">
@ -70,11 +70,11 @@
<td>Gesamtbetrag</td>
</thead>
<tbody>
{{#each this.runner.distanceDonations}}
{{#each this.distanceDonations}}
<tr>
<td>Sponsor:in1</td>
<td>123€</td>
<td>312€</td>
<td>{{this.dornor}}</td>
<td>{{this.amountPerDistance}}</td>
<td>{{this.amount}}]</td>
</tr>
{{/each}}
</tbody>
@ -93,6 +93,7 @@
</p>
</footer>
</div>
{{/each}}
</body>
</html>