This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
package templates
|
||||
|
||||
import (
|
||||
"arbeitszeitmessung/models"
|
||||
"time"
|
||||
)
|
||||
import "arbeitszeitmessung/models"
|
||||
|
||||
templ Base() {
|
||||
<!DOCTYPE html>
|
||||
@@ -15,25 +12,6 @@ templ Base() {
|
||||
</head>
|
||||
}
|
||||
|
||||
templ TimePage(workDays []models.WorkDay, lastSub time.Time) {
|
||||
{{
|
||||
allDays := ctx.Value("days").([]models.IWorkDay)
|
||||
}}
|
||||
@Base()
|
||||
@headerComponent()
|
||||
<div class="grid-main divide-y-1">
|
||||
@inputForm()
|
||||
for _, day := range allDays {
|
||||
@defaultDayComponent(day)
|
||||
// @dayComponent(day, day.Day.Before(lastSub))
|
||||
if (day.Date().Weekday() == time.Monday) {
|
||||
<div class="grid-sub responsive bg-neutral-300 h-2"></div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@LegendComponent()
|
||||
}
|
||||
|
||||
templ LoginPage(success bool, errorMsg string) {
|
||||
@Base()
|
||||
<div class="w-full h-[100vh] flex flex-col justify-center items-center">
|
||||
|
||||
Reference in New Issue
Block a user