This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"arbeitszeitmessung/helper"
|
||||
"arbeitszeitmessung/models"
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
@@ -26,6 +25,9 @@ templ TimePage(workDays []models.WorkDay, lastSub time.Time) {
|
||||
@inputForm()
|
||||
for _, day := range workDays {
|
||||
@dayComponent(day, day.Day.Before(lastSub))
|
||||
if (day.Day.Weekday() == time.Monday) {
|
||||
<div class="grid-sub responsive bg-neutral-300 h-2"></div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@LegendComponent()
|
||||
@@ -94,11 +96,10 @@ templ TeamPage(weeks []models.WorkWeek, userWeek models.WorkWeek) {
|
||||
@headerComponent()
|
||||
{{
|
||||
progress := (float32(userWeek.Worktime.Hours()) / userWeek.User.ArbeitszeitPerWoche) * 100
|
||||
log.Println(userWeek.CheckStatus())
|
||||
}}
|
||||
<div class="grid-main divide-y-1">
|
||||
<div class="grid-sub lg:divide-x-1 responsive @container">
|
||||
<div class="grid-cell col-span-full bg-neutral-300">
|
||||
<div class="grid-sub lg:divide-x-1 max-md:divide-y-1 responsive @container">
|
||||
<div class="grid-cell col-span-full bg-neutral-300 lg:border-0">
|
||||
<h2 class="text-2xl uppercase font-bold">Eigene Abrechnung</h2>
|
||||
</div>
|
||||
<div class="grid-cell flex flex-col max-md:border-b-1 max-md:bg-neutral-300 gap-2 ">
|
||||
@@ -187,5 +188,5 @@ templ TeamPresencePage(teamPresence map[bool][]models.User) {
|
||||
}
|
||||
|
||||
templ LogoutButton() {
|
||||
<button onclick="logoutUser()" type="button" class="">Abmelden</button>
|
||||
<button onclick="logoutUser()" type="button" class="cursor-pointer">Abmelden</button>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user