random changes

This commit is contained in:
2025-12-01 14:18:47 +00:00
parent eafc9c0033
commit 6789bc56d7
4 changed files with 446 additions and 259 deletions

View File

@@ -15,40 +15,25 @@ templ Home(plan csv.Plan) {
</head>
<body class="w-full">
@table.Table() {
@table.Caption() {
Menüplan
}
@table.Header() {
@table.Row() {
@table.Head() {
Mahlzeit
Wochentag
}
@table.Head() {
Montag
Frühstück
}
@table.Head() {
Dienstag
Mittagessen
}
@table.Head() {
Mittwoch
}
@table.Head() {
Donnerstag
}
@table.Head() {
Freitag
}
@table.Head() {
Samstag
}
@table.Head() {
Sonntag
Abendessen
}
}
}
@table.Row() {
@table.Cell() {
Frühstück
Montag
}
for _, menu := range plan.Menus[0] {
@table.Cell() {
@@ -58,7 +43,7 @@ templ Home(plan csv.Plan) {
}
@table.Row() {
@table.Cell() {
Mittagessen
Dienstag
}
for _, menu := range plan.Menus[1] {
@table.Cell() {
@@ -68,7 +53,7 @@ templ Home(plan csv.Plan) {
}
@table.Row() {
@table.Cell() {
Abendessen
Mittwoch
}
for _, menu := range plan.Menus[2] {
@table.Cell() {
@@ -76,6 +61,46 @@ templ Home(plan csv.Plan) {
}
}
}
@table.Row() {
@table.Cell() {
Donnerstag
}
for _, menu := range plan.Menus[3] {
@table.Cell() {
{menu}
}
}
}
@table.Row() {
@table.Cell() {
Freitag
}
for _, menu := range plan.Menus[4] {
@table.Cell() {
{menu}
}
}
}
@table.Row() {
@table.Cell() {
Samstag
}
for _, menu := range plan.Menus[5] {
@table.Cell() {
{menu}
}
}
}
@table.Row() {
@table.Cell() {
Sonntag
}
for _, menu := range plan.Menus[6] {
@table.Cell() {
{menu}
}
}
}
}
</body>
</html>