Ramin-RX7 / CafeMenu

Café management website with custom dashboard panel for staff
MIT License
2 stars 4 forks source link

Implement `cart` template #72

Closed Ramin-RX7 closed 1 year ago

Ramin-RX7 commented 1 year ago

Create the cart template which has to show the customer what items they have chosen to order. This templates receives a context like this:

context = {
  "cart" : {
        FOOD_OBJECT: QUANTITY
   }
}

You have to display their cart showing what items (and how many of it) they have chosen. You also need to link all the foods to their own url

All items must have a button to delete from the cart. This means you have to make form for each food that only contains a button to delete it from the cart. The action and method of the form: POST to cart_delete url This button must have the "food" as it's html tag name and food.id as the html tag value so the view can handle the deletion.

Ramin-RX7 commented 1 year ago

completed in #84