feat(templater): Implement unit formats
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
{{ .MiddleName }} {{ .LastName }}
|
||||
</p>
|
||||
<p style="font-size: 1cm; margin-bottom: 0;">hat beim {{ $.EventName }}</p>
|
||||
<p style="font-size: 2cm; font-weight: bold; margin-bottom: 0;">{{unitFormat "kilometer" .Distance}}km</p>
|
||||
<p style="font-size: 2cm; font-weight: bold; margin-bottom: 0;">{{formatUnit "kilometer" .Distance}}km</p>
|
||||
<p style="font-size: 1cm;">für den guten Zweck zurückgelegt</p>
|
||||
</main>
|
||||
<footer class="certificate-footer">
|
||||
@@ -78,15 +78,15 @@
|
||||
{{ range .DistanceDonations}}
|
||||
<tr>
|
||||
<td>{{ .Donor.FirstName }} {{ .Donor.MiddleName }} {{ .Donor.LastName }}</td>
|
||||
<td>{{ unitFormat "euro" .AmountPerDistance }} {{ $.CurrencySymbol }}</td>
|
||||
<td>{{ unitFormat "euro" .Amount }} {{ $.CurrencySymbol }}</td>
|
||||
<td>{{ formatUnit "euro" .AmountPerDistance }} {{ $.CurrencySymbol }}</td>
|
||||
<td>{{ formatUnit "euro" .Amount }} {{ $.CurrencySymbol }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<td>Gesamt</td>
|
||||
<td>{{ unitFormat .TotalPerDistance }} {{ $.CurrencySymbol }}</td>
|
||||
<td>{{ unitFormat .TotalDonations }} {{ $.CurrencySymbol }}</td>
|
||||
<td>{{ formatUnit "euro" .TotalPerDistance }} {{ $.CurrencySymbol }}</td>
|
||||
<td>{{ formatUnit "euro" .TotalDonations }} {{ $.CurrencySymbol }}</td>
|
||||
</tfoot>
|
||||
</table>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user