diff --git a/initializers/initializers.go b/initializers/initializers.go index 606860d..0c6f526 100644 --- a/initializers/initializers.go +++ b/initializers/initializers.go @@ -13,6 +13,7 @@ func initializePages() { Pages["product"] = Page{"/product", "templates/product.html", map[string]interface{}{}, ProductView} Pages["cart"] = Page{"/cart", "templates/cart.html", map[string]interface{}{}, CartView} Pages["addToCart"] = Page{"/addToCart", "templates/addToCart.html", map[string]interface{}{}, AddToCartView} + Pages["removeFromCart"] = Page{"/removeFromCart", "templates/removeFromCart.html", map[string]interface{}{}, RemoveFromCartView} } func initializeData() { diff --git a/static/css/style.css b/static/css/style.css index 0463904..713a9af 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -160,7 +160,7 @@ input[type="button"] { } .cartItemColumn { - width: 25%; + width: 20%; margin: auto; } @@ -173,3 +173,8 @@ input[type="button"] { background-repeat: no-repeat; margin: auto; } + +.productUnavailable { + color: red; + font-size: 20px; +} diff --git a/templates/cart.html b/templates/cart.html index 9b01919..99f772d 100644 --- a/templates/cart.html +++ b/templates/cart.html @@ -1,10 +1,16 @@ {{define "content"}} +