From eb6572e09eb5e91619c126477f776c64fb6a112b Mon Sep 17 00:00:00 2001 From: mkrzeminski Date: Fri, 8 Dec 2023 23:31:52 +0100 Subject: [PATCH] Better view on cart detail website --- .../products_catalogue/cart_detail.html | 68 +++++++++++-------- 1 file changed, 39 insertions(+), 29 deletions(-) diff --git a/Dshop/apps/products_catalogue/templates/products_catalogue/cart_detail.html b/Dshop/apps/products_catalogue/templates/products_catalogue/cart_detail.html index 2859a91..e67cc76 100644 --- a/Dshop/apps/products_catalogue/templates/products_catalogue/cart_detail.html +++ b/Dshop/apps/products_catalogue/templates/products_catalogue/cart_detail.html @@ -4,37 +4,47 @@ {% block content %} -
-

Twój koszyk

+
+

Twój koszyk

+ +
    +
  • Wszystkich elementów: {{ cart.count }}
  • +
  • Całkowity koszt: {{ cart.total }}
  • +
-
  • Wszystkich elementów {{ cart.count }}
  • -
  • Całkowity koszt {{ cart.total }}
  • - ----------------------------------- {% for item in cart %} -
  • Produkt: {{ item.product }}
  • -
  • Cena jednostkowa: {{ item.price }}
  • -
  • Całkowity koszt {{ item.subtotal }}
  • -
    -
    - {% csrf_token %} - -
    -
    - Liczba produktów {{ item.quantity }} -
    -
    - {% csrf_token %} - -
    -
    -
    -
    - {% csrf_token %} - -
    +
    +
    +
    Produkt: {{ item.product }}
    +

    Cena jednostkowa: {{ item.price }}

    +

    Całkowity koszt: {{ item.subtotal }}

    +
    +
    +
    + {% csrf_token %} + +
    +
    +
    + Liczba produktów: {{ item.quantity }} +
    +
    +
    + {% csrf_token %} + +
    +
    +
    +
    + {% csrf_token %} + +
    +
    - ----------------------------------------- - {% endfor %} +
    +
    + {% endfor %}
    -{% endblock %} \ No newline at end of file + +{% endblock %}