From 913763fc425def6d66d821875a84cffa2493ed35 Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Fri, 17 Jan 2025 19:22:31 +0100 Subject: [PATCH] fix: styling --- web/templates/components/cart/cart.html | 704 +++++++++--------- .../components/cart/cart_navbar.html | 5 +- 2 files changed, 367 insertions(+), 342 deletions(-) diff --git a/web/templates/components/cart/cart.html b/web/templates/components/cart/cart.html index b118897..e99ab14 100644 --- a/web/templates/components/cart/cart.html +++ b/web/templates/components/cart/cart.html @@ -1,356 +1,380 @@ {% load i18n %}
-
- {% csrf_token %} -
-

{% translate 'Carrito' %}

+ + {% csrf_token %} +
+

{% translate 'Carrito' %}

-
-
-
+
+
+
- {% for item in items %} -
-
- - {{ item.product.name }} - - + {% for item in items %} +
+
+ + {{ item.product.name }} + + - -
-
- - {{ item.quantity }}x - + +
+ + {{ item.product.name }} + + +
+ + {% csrf_token %} + + +
+
+ +
+
+ + {{ item.quantity }}x + +
+
+

+ {{ item.product.price.price_with_tax }}€ +

+
+
+
+ + +
+ {% endfor %} + + {% if items.count == 0 %} +

+ {% translate 'No hay nada en el carrito...' %} +

+

+ + {% translate 'Volver a inicio' %} + +

+ {% endif %} + +

+ {% translate 'Dirección de envío' %} +

+ +
+ +
+ {% if user.is_anonymous %} +
+ + +
+ {% else %} + + {% endif %} +
+ + + + +
+
+ + +
+
+ + +
+ +
+ + + +
+
+ + +
+ +
+
+ +

+ {% translate 'Dirección de facturación' %} +

+ +
+ +
+
+ + + + +
+
+ + +
+
+ + +
+ +
+ + + +
+
+ + +
+ +
+
+ +
+

+ {% translate 'Opciones de envío' %} +

+
+ + {% for shipping_method in shipping_methods %} +
+ + + {% if not forloop.last %} +
+
+ {% endif %} + + {% endfor %} +
+ +
-
-

{{ item.product.price.price_with_tax }} - €

-
-
- -
-
- {% csrf_token %} - -
+
-
-
- {% endfor %} - - {% if items.count == 0 %} -

- {% translate 'No hay nada en el carrito...' %} -

-

- - {% translate 'Volver a inicio' %} - -

- {% endif %} - -

- {% translate 'Dirección de envío' %} -

- -
- -
- {% if user.is_anonymous %} -
- - -
- {% else %} - - {% endif %} -
- - - - -
-
- - -
-
- - -
- -
- - - -
-
- - -
- -
-
- -

- {% translate 'Dirección de facturación' %} -

- -
- -
-
- - - - -
-
- - -
-
- - -
- -
- - - -
-
- - -
- -
-
- -
-

- {% translate 'Opciones de envío' %} -

-
- - {% for shipping_method in shipping_methods %} -
- - - {% if not forloop.last %} -
-
- {% endif %} - - {% endfor %} -
- -
-
- -
- - -
-
-

{% translate 'Resumen del pedido' %}

- -
-
-
-
{% translate 'Base imponible' %}
-
{{ base_total }} €
-
- -
-
{% translate 'Descuentos' %}
-
-{{ savings }} €
-
- -
-
{% translate 'Gastos de envío' %}
-
{{ shipping_cost }} €
-
- -
-
{% translate 'Impuestos' %}
-
{{ tax_total }} €
-
-
- -
-
{% translate 'Total' %}
-
{{ total }} €
-
- - - -
- - {# #} - {#
#} - {#
#} - {# #} - {# #} - {#
#} - {# #} - {#
#} - {#
#}
-
- -
- +
\ No newline at end of file diff --git a/web/templates/components/cart/cart_navbar.html b/web/templates/components/cart/cart_navbar.html index c7c1410..6ecd768 100644 --- a/web/templates/components/cart/cart_navbar.html +++ b/web/templates/components/cart/cart_navbar.html @@ -14,7 +14,7 @@ +
{% endfor %}