diff --git a/templates/base.html b/templates/base.html index fa507ce..a565f8e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -10,13 +10,9 @@
-
-
- Lista zamówień
-
-
{{.cart.ItemsTotal}}
-
- +
+
Lista zamówień
+
{{.cart.ItemsTotal}}
{{template "content" .}}
diff --git a/templates/cart.html b/templates/cart.html index e2b0771..cb553d3 100644 --- a/templates/cart.html +++ b/templates/cart.html @@ -1,7 +1,7 @@ {{define "content"}}

Koszyk

@@ -15,7 +15,7 @@ function deleteitem(id) { {{range $.cart.Products}}
- {{ .Product.Name }} + {{ .Product.Name }}
{{ .Product.Price }} zł
diff --git a/templates/category.html b/templates/category.html index 7e18a50..0ae3c82 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,7 +1,7 @@ {{define "content"}}

{{.category.Name}}

{{range $.products}} - +
{{if le .Quantity 0}}
Produkt niedostępny
diff --git a/templates/checkout.html b/templates/checkout.html index acdf3de..09534d5 100644 --- a/templates/checkout.html +++ b/templates/checkout.html @@ -34,7 +34,7 @@ function pay() { var fN = document.getElementById("fname").value; var lN = document.getElementById("lname").value; if (fN!='' && lN!='') - location.href = 'http://127.0.0.1:8000/paymentDone?fn=' + fN + '&ln=' + lN + "&pm=" + pM + "&dd=" + dD; + location.href = '/paymentDone?fn=' + fN + '&ln=' + lN + "&pm=" + pM + "&dd=" + dD; }

Podsumowanie

diff --git a/templates/index.html b/templates/index.html index 6c2cb3e..ea358de 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@
-
+
{{ .Name }}
diff --git a/templates/product.html b/templates/product.html index eed99da..d0201bc 100644 --- a/templates/product.html +++ b/templates/product.html @@ -1,7 +1,7 @@ {{define "content"}}