reworked pdf exporter to use typst
Some checks failed
Tests / Run Go Tests (push) Failing after 1m44s

This commit is contained in:
2025-10-23 16:17:49 +02:00
parent 0d7696cbc6
commit 7eda8eb538
10 changed files with 296 additions and 30 deletions

View File

@@ -45,7 +45,12 @@ templ PDFReportEmploye(e models.User, overtime, worktime time.Duration, workDays
<p>{ workDay.Bookings[bookingI].BookingType.Name } </p>
}
if workDay.IsKurzArbeit() {
<p class="col-span-full">Kurzarbeit</p>
{{
timeFrom, timeTo := workDay.GenerateKurzArbeitBookings(e)
}}
<p>{ timeFrom.Format("15:04") }</p>
<p>{ timeTo.Format("15:04") }</p>
<p>Kurzarbeit</p>
}
} else {
{{