From db8d044194320096af633d694a3c1f488cb06209 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 6 Oct 2024 18:52:09 +0200 Subject: [PATCH] wip --- handlers/bcp.go | 2 +- templates/barcodes.html | 2 +- templates/bcp.html | 4 ++-- templates/bundle.html | 49 ++++++++++++++++++++++++++++++++++++++++ templates/co.html | 4 ++-- templates/hbcp.html | 2 +- templates/index.html | 2 +- templates/labels.html | 2 +- templates/lcp.html | 4 ++-- templates/po.html | 4 ++-- templates/standards.html | 2 +- 11 files changed, 63 insertions(+), 14 deletions(-) create mode 100644 templates/bundle.html diff --git a/handlers/bcp.go b/handlers/bcp.go index 8ada2e4..3c935ab 100644 --- a/handlers/bcp.go +++ b/handlers/bcp.go @@ -10,7 +10,7 @@ import ( func BCPHandler(storage storage.Storager) httprouter.Handle { return func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { - t, _ := template.ParseFiles("templates/base.html", "templates/po.html") + t, _ := template.ParseFiles("templates/base.html", "templates/bcp.html") err := t.Execute(w, nil) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) diff --git a/templates/barcodes.html b/templates/barcodes.html index d344170..931d094 100644 --- a/templates/barcodes.html +++ b/templates/barcodes.html @@ -16,7 +16,7 @@