func HandleInventoryUpdate(w http.ResponseWriter, r *http.Request, ctx *parser.Context) { ctx.Title = "Ingress Inventory" ctx.AddJavascript("/js/update-inventory.js") if err := parser.Render(w, ctx, "update-inventory.html"); err != nil { log.Println(err) } }
func HandleInventoryAdd(w http.ResponseWriter, r *http.Request, ctx *parser.Context) { ctx.Title = "Ingress Inventory" if err := parser.Render(w, ctx, "update-inventory.html"); err != nil { log.Println(err) } }