added interface for workday and absence + multiday absences closes #38, #39

This commit is contained in:
2025-09-23 12:30:02 +02:00
parent 55b0332600
commit db6fc10c28
19 changed files with 1396 additions and 1034 deletions

View File

@@ -40,11 +40,11 @@ templ PDFReportEmploye(e models.User, workDays []models.WorkDay, tsStart time.Ti
<p>{ day.Bookings[bookingI+1].Timestamp.Format("15:04") }</p>
<p>{ day.Bookings[bookingI].BookingType.Name } </p>
}
if (day.Absence != models.Absence{}) {
<p class="col-span-full">{ day.Absence.AbwesenheitTyp.Name }</p>
}
// if (day.Absence != models.Absence{}) {
// <p class="col-span-full">{ day.Absence.AbwesenheitTyp.Name }</p>
// }
</div>
{{ work, pause, overtime := day.GetAllWorkTimes(e) }}
{{ work, pause, overtime := day.GetAllWorkTimesReal(e) }}
@ColorDuration(work, noBorder)
@ColorDuration(pause, noBorder)
@ColorDuration(overtime, noBorder+" border-r-0")