package templates
import (
"arbeitszeitmessung/models"
"fmt"
"strconv"
"time"
)
templ lineComponent() {
}
templ changeButtonComponent(id string, workDay bool) {
}
templ timeGaugeComponent(progress int8, today bool) {
{{
var bgColor string
switch {
case (0 > progress):
bgColor = "bg-red-600"
break
case (progress > 0 && progress < 95):
bgColor = "bg-orange-500"
break
case (95 <= progress && progress <= 105):
bgColor = "bg-accent"
break
case (progress > 105):
bgColor = "bg-purple-600"
break
default:
bgColor = "bg-neutral-400"
break
}
}}
if today {
} else {
}
}
templ newAbsenceComponent() {
}
templ absenceComponent(a *models.Absence, isKurzarbeit bool) {
{{
editBox := ""
if isKurzarbeit {
editBox = "edit-box"
}
}}
{ a.AbwesenheitTyp.Name }
if a.IsMultiDay() {
bis { a.DateTo.Format("02.01.2006") }
}
if isKurzarbeit {
}
}
templ newBookingComponent(d *models.WorkDay) {
}
templ bookingComponent(booking models.Booking) {
}
templ LegendComponent() {
Arbeitszeit unter regulär
}