feat(templates): Added selfservice qr

This commit is contained in:
Nicolai Ort 2025-04-17 21:44:58 +02:00
parent afc5b1f0c6
commit 8031143967
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 42 additions and 7 deletions

View File

@ -87,13 +87,30 @@
<td>Gesamt</td> <td>Gesamt</td>
<td>{{ formatUnit "euro" $.Locale .TotalPerDistance }} {{ $.CurrencySymbol }}</td> <td>{{ formatUnit "euro" $.Locale .TotalPerDistance }} {{ $.CurrencySymbol }}</td>
<td>{{ formatUnit "euro" $.Locale .TotalDonations }} {{ $.CurrencySymbol }}</td> <td>{{ formatUnit "euro" $.Locale .TotalDonations }} {{ $.CurrencySymbol }}</td>
</tfoot> </table>
</table> </main>
</main> <footer class="certificate-footer">
<footer class="certificate-footer"> <table style="border-collapse: collapse; border: none; width: 17cm;">
<p> <thead>
{{ $.Footer }} <tr>
</p> <th style="border: none; width: 50%; text-align: center;">Link zu deinen Rundenzeiten</th>
<!-- <th style="border: none; width: 50%; text-align: center;">Spende überweisen</th> -->
</tr>
</thead>
<tbody>
<tr>
<td style="border: none; text-align: center;">
<img src="data:image/png;base64,{{ barcode .SelfServiceLink "qr" "" }}" style="height: 2.5cm; padding: 0.2cm">
</td>
<td style="border: none; text-align: center;">
<!-- <img src="data:image/png;base64,{{ barcode ".SelfServiceLink" "qr" "" }}" style="height: 2.5cm; padding: 0.2cm"> -->
</td>
</tr>
</tbody>
</table>
<p style="text-align: center;">
{{ $.Footer }}
</p>
</footer> </footer>
</article> </article>
{{ end }} {{ end }}

View File

@ -91,6 +91,24 @@
</table> </table>
</main> </main>
<footer class="certificate-footer"> <footer class="certificate-footer">
<table style="border-collapse: collapse; border: none; width: 17cm;">
<thead>
<tr>
<th style="border: none; width: 50%; text-align: center;">Link to your lap times</th>
<!-- <th style="border: none; width: 50%; text-align: center;">Transfer donation</th> -->
</tr>
</thead>
<tbody>
<tr>
<td style="border: none; text-align: center;">
<img src="data:image/png;base64,{{ barcode .SelfServiceLink "qr" "" }}" style="height: 2.5cm; padding: 0.2cm">
</td>
<td style="border: none; text-align: center;">
<!-- <img src="data:image/png;base64,{{ barcode ".SelfServiceLink" "qr" "" }}" style="height: 2.5cm; padding: 0.2cm"> -->
</td>
</tr>
</tbody>
</table>
<p> <p>
{{ $.Footer }} {{ $.Footer }}
</p> </p>