@@ -32,6 +47,24 @@ templ Layout(title string, main templ.Component) { templ MainContent(title string, main templ.Component) {

{ title }

+ + + add + Nowe zamówienie +
{ title } — Zamówienia ciast diff --git a/server/templates/nav.templ b/server/templates/nav.templ deleted file mode 100644 index 01b8690..0000000 --- a/server/templates/nav.templ +++ /dev/null @@ -1,22 +0,0 @@ -package templates - -templ Nav() { - - add - Nowe zamówienie - - -} diff --git a/server/templates/orders.templ b/server/templates/orders.templ index f2dfb2a..6a187aa 100644 --- a/server/templates/orders.templ +++ b/server/templates/orders.templ @@ -6,8 +6,8 @@ import ( "git.bronku.xyz/bronku/cake-order-tracker/models" ) -templ OrdersPage(first, last, today, tomorrow, special string, counts models.OrderCounts, cakeCounts []models.CakeCount, orders []models.Order) { - @Layout("Panel główny", OrdersMain(counts, cakeCounts, orders, first, last, special, today, tomorrow)) +templ OrdersPage(first, last, today, tomorrow, special string, counts models.OrderCounts, cakeCounts []models.CakeCount, specialCakes []models.SpecialCakeWithOrder, orders []models.Order) { + @Layout("Panel główny", OrdersMain(counts, cakeCounts, orders, specialCakes, first, last, special, today, tomorrow)) } templ DateForm(first, last, today, tomorrow, special string) { @@ -27,7 +27,7 @@ templ DateForm(first, last, today, tomorrow, special string) {