Added template strings

ref #36
This commit is contained in:
Nicolai Ort 2021-03-31 15:13:08 +02:00
parent 3ca2237953
commit 6767c3b2d1

View File

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