This commit is contained in:
@@ -98,9 +98,7 @@ templ defaultDayComponent(day models.IWorkDay) {
|
||||
@timeGaugeComponent(day.GetDayProgress(user), day.Date().Equal(time.Now().Truncate(24*time.Hour)))
|
||||
<div>
|
||||
<p>
|
||||
<span class="font-bold uppercase hidden md:inline">{ day.Date().Format("Mon") }:</span> { day.Date().Format(
|
||||
|
||||
"02.01.2006") }
|
||||
<span class="font-bold uppercase hidden md:inline">{ day.Date().Format("Mon") }:</span> { day.Date().Format("02.01.2006") }
|
||||
</p>
|
||||
if day.IsWorkDay() {
|
||||
{{
|
||||
@@ -129,7 +127,7 @@ templ defaultDayComponent(day models.IWorkDay) {
|
||||
</div>
|
||||
<div class="all-booking-component grid-cell flex flex-row md:col-span-3 gap-2 w-full">
|
||||
@lineComponent()
|
||||
<form id={ "time-" + day.Date().Format("2006-01-02") } class={ "flex flex-col gap-2 group w-full ", justify } method="post">
|
||||
<form id={ "time-" + day.Date().Format("2006-01-02") } class={ "flex flex-col gap-2 group w-full", justify } method="post">
|
||||
@newAbsenceComponent()
|
||||
if day.IsWorkDay() {
|
||||
{{
|
||||
@@ -138,20 +136,18 @@ templ defaultDayComponent(day models.IWorkDay) {
|
||||
if len(workDay.Bookings) < 1 {
|
||||
<p class="text group-[.edit]:hidden">Keine Buchung gefunden. Bitte Arbeitsstunden oder Grund der Abwesenheit eingeben!</p>
|
||||
}
|
||||
if workDay.IsKurzArbeit() {
|
||||
@absenceComponent(workDay.GetKurzArbeit(), true)
|
||||
}
|
||||
for _, booking := range workDay.Bookings {
|
||||
@bookingComponent(booking)
|
||||
}
|
||||
@newBookingComponent(workDay)
|
||||
if workDay.IsKurzArbeit() {
|
||||
@absentInput(workDay.GetKurzArbeit())
|
||||
<p>Kurzarbeit</p>
|
||||
}
|
||||
} else {
|
||||
{{
|
||||
absentDay, _ := day.(*models.Absence)
|
||||
}}
|
||||
@absentInput(*absentDay)
|
||||
<p>{ absentDay.AbwesenheitTyp.Name } <span class="text-neutral-700">bis { absentDay.DateTo.Format("02.01.2006") }</span></p>
|
||||
@absenceComponent(absentDay, false)
|
||||
}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user