Compare commits
No commits in common. "6d2e0241c9eab6903096cc6ce95e96e4062c9dc3" and "b58bf700df79dadadde1f2d9a212839b1731c0db" have entirely different histories.
6d2e0241c9
...
b58bf700df
@ -15,7 +15,6 @@ type RunnerWithDonations struct {
|
|||||||
DistanceDonations []DistanceDonation `json:"distance_donations" validate:"optional"`
|
DistanceDonations []DistanceDonation `json:"distance_donations" validate:"optional"`
|
||||||
TotalPerDistance int `json:"total_per_distance" validate:"optional"`
|
TotalPerDistance int `json:"total_per_distance" validate:"optional"`
|
||||||
TotalDonations int `json:"total_donations" validate:"optional"`
|
TotalDonations int `json:"total_donations" validate:"optional"`
|
||||||
SelfServiceLink string `json:"self_service_link" validate:"required"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type DistanceDonation struct {
|
type DistanceDonation struct {
|
||||||
|
@ -69,11 +69,7 @@ func (b *DefaultBarcodeService) GenerateBarcode(format string, content string, w
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
case "qr":
|
case "qr":
|
||||||
// Always use qr.Auto encoding to support all characters in the content
|
generatedCode, err = qr.Encode(content, qr.M, qr.AlphaNumeric)
|
||||||
encoding := qr.Auto
|
|
||||||
|
|
||||||
// QR code generation with error correction level M and auto encoding
|
|
||||||
generatedCode, err = qr.Encode(content, qr.M, encoding)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return bytes.Buffer{}, err
|
return bytes.Buffer{}, err
|
||||||
}
|
}
|
||||||
|
@ -87,30 +87,13 @@
|
|||||||
<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>
|
||||||
</table>
|
</tfoot>
|
||||||
</main>
|
</table>
|
||||||
<footer class="certificate-footer">
|
</main>
|
||||||
<table style="border-collapse: collapse; border: none; width: 17cm;">
|
<footer class="certificate-footer">
|
||||||
<thead>
|
<p>
|
||||||
<tr>
|
{{ $.Footer }}
|
||||||
<th style="border: none; width: 50%; text-align: center;">Link zu deinen Rundenzeiten</th>
|
</p>
|
||||||
<!-- <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 }}
|
||||||
|
@ -91,24 +91,6 @@
|
|||||||
</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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user