diff --git a/locale/es_ES/LC_MESSAGES/django.po b/locale/es_ES/LC_MESSAGES/django.po index aa55e4c..cba2abf 100644 --- a/locale/es_ES/LC_MESSAGES/django.po +++ b/locale/es_ES/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-11-22 21:22+0100\n" +"POT-Creation-Date: 2024-11-23 13:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,294 +21,303 @@ msgstr "" msgid "No se puede borrar el producto" msgstr "No se puede borrar el producto" -#: shop/filters.py:9 +#: shop/filters.py:10 msgid "Nombre" msgstr "Nombre" -#: shop/filters.py:11 +#: shop/filters.py:12 msgid "Etiquetas" msgstr "Etiquetas" -#: shop/models.py:11 +#: shop/models.py:12 msgid "fecha de creación" msgstr "fecha de creación" -#: shop/models.py:14 +#: shop/models.py:15 msgid "fecha de última modificación" msgstr "fecha de última modificación" -#: shop/models.py:28 +#: shop/models.py:29 msgid "etiqueta" msgstr "etiqueta" -#: shop/models.py:29 shop/models.py:65 +#: shop/models.py:30 shop/models.py:66 msgid "etiquetas" msgstr "etiquetas" -#: shop/models.py:39 +#: shop/models.py:40 msgid "código de referencia" msgstr "código de referencia" -#: shop/models.py:45 shop/models.py:185 shop/models.py:212 shop/models.py:239 +#: shop/models.py:46 shop/models.py:188 shop/models.py:215 shop/models.py:242 msgid "nombre" msgstr "nombre" -#: shop/models.py:50 +#: shop/models.py:51 msgid "descripción" msgstr "descripción" -#: shop/models.py:56 +#: shop/models.py:57 msgid "stock" msgstr "stock" -#: shop/models.py:59 +#: shop/models.py:60 msgid "es un activo digital" msgstr "es un activo digital" -#: shop/models.py:61 +#: shop/models.py:62 msgid "URL de descarga" msgstr "URL de descarga" -#: shop/models.py:63 +#: shop/models.py:64 msgid "imágenes" msgstr "imágenes" -#: shop/models.py:71 shop/models.py:243 +#: shop/models.py:72 shop/models.py:246 msgid "marca" msgstr "marca" -#: shop/models.py:73 +#: shop/models.py:75 msgid "Slug" msgstr "Slug" -#: shop/models.py:92 shop/models.py:105 shop/models.py:134 shop/models.py:259 +#: shop/models.py:95 shop/models.py:108 shop/models.py:137 shop/models.py:262 msgid "producto" msgstr "producto" -#: shop/models.py:93 +#: shop/models.py:96 msgid "productos" msgstr "productos" -#: shop/models.py:99 shop/models.py:272 +#: shop/models.py:102 shop/models.py:275 msgid "precio" msgstr "precio" -#: shop/models.py:101 +#: shop/models.py:104 msgid "fecha" msgstr "fecha" -#: shop/models.py:111 +#: shop/models.py:114 msgid "impuesto aplicable" msgstr "impuesto aplicable" -#: shop/models.py:113 +#: shop/models.py:116 msgid "es el precio actual" msgstr "es el precio actual" -#: shop/models.py:124 shop/models.py:125 +#: shop/models.py:127 shop/models.py:128 msgid "precio de producto" msgstr "precio de producto" -#: shop/models.py:131 +#: shop/models.py:134 msgid "código" msgstr "código" -#: shop/models.py:140 shop/models.py:267 +#: shop/models.py:143 shop/models.py:270 msgid "cantidad" msgstr "cantidad" -#: shop/models.py:143 +#: shop/models.py:146 msgid "fecha de caducidad / consumo preferente" msgstr "fecha de caducidad / consumo preferente" -#: shop/models.py:150 shop/models.py:233 +#: shop/models.py:153 shop/models.py:236 msgid "proveedor" msgstr "proveedor" -#: shop/models.py:157 +#: shop/models.py:160 msgid "remesa de producto" msgstr "remesa de producto" -#: shop/models.py:158 +#: shop/models.py:161 msgid "remesas de productos" msgstr "remesas de productos" -#: shop/models.py:163 +#: shop/models.py:166 msgid "código de impuesto" msgstr "código de impuesto" -#: shop/models.py:166 +#: shop/models.py:169 msgid "valor entero (porcentaje)" msgstr "valor entero (porcentaje)" -#: shop/models.py:173 +#: shop/models.py:176 msgid "impuesto" msgstr "impuesto" -#: shop/models.py:174 shop/models.py:292 +#: shop/models.py:177 shop/models.py:295 msgid "impuestos" msgstr "impuestos" -#: shop/models.py:183 shop/models.py:210 +#: shop/models.py:186 shop/models.py:213 msgid "documento de identidad" msgstr "documento de identidad" -#: shop/models.py:187 +#: shop/models.py:190 msgid "apellidos" msgstr "apellidos" -#: shop/models.py:189 +#: shop/models.py:192 msgid "e-mail" msgstr "e-mail" -#: shop/models.py:191 shop/models.py:223 shop/models.py:360 +#: shop/models.py:194 shop/models.py:226 shop/models.py:363 msgid "dirección" msgstr "dirección" -#: shop/models.py:192 shop/models.py:224 shop/models.py:363 +#: shop/models.py:195 shop/models.py:227 shop/models.py:366 msgid "ciudad" msgstr "ciudad" -#: shop/models.py:193 shop/models.py:225 shop/models.py:366 +#: shop/models.py:196 shop/models.py:228 shop/models.py:369 msgid "región" msgstr "región" -#: shop/models.py:194 shop/models.py:226 shop/models.py:369 +#: shop/models.py:197 shop/models.py:229 shop/models.py:372 msgid "país" msgstr "país" -#: shop/models.py:195 shop/models.py:227 shop/models.py:372 +#: shop/models.py:198 shop/models.py:230 shop/models.py:375 msgid "código postal" msgstr "código postal" -#: shop/models.py:201 shop/models.py:338 +#: shop/models.py:204 shop/models.py:341 msgid "cliente" msgstr "cliente" -#: shop/models.py:202 +#: shop/models.py:205 msgid "clientes" msgstr "clientes" -#: shop/models.py:214 +#: shop/models.py:217 msgid "e-mail de contacto" msgstr "e-mail de contacto" -#: shop/models.py:220 +#: shop/models.py:223 msgid "Teléfono de contacto" msgstr "Teléfono de contacto" -#: shop/models.py:234 +#: shop/models.py:237 msgid "proveedores" msgstr "proveedores" -#: shop/models.py:244 +#: shop/models.py:247 msgid "marcas" msgstr "marcas" -#: shop/models.py:252 shop/models.py:389 +#: shop/models.py:255 shop/models.py:392 msgid "pedido" msgstr "pedido" -#: shop/models.py:282 +#: shop/models.py:285 msgid "total sin impuestos" msgstr "total sin impuestos" -#: shop/models.py:287 +#: shop/models.py:290 msgid "valor de impuestos" msgstr "valor de impuestos" -#: shop/models.py:297 shop/models.py:333 +#: shop/models.py:300 shop/models.py:336 msgid "total" msgstr "total" -#: shop/models.py:304 +#: shop/models.py:307 msgid "línea de pedido" msgstr "línea de pedido" -#: shop/models.py:305 +#: shop/models.py:308 msgid "líneas de pedido" msgstr "líneas de pedido" -#: shop/models.py:310 +#: shop/models.py:313 msgid "pendiente de pago" msgstr "pendiente de pago" -#: shop/models.py:311 +#: shop/models.py:314 msgid "pagado" msgstr "pagado" -#: shop/models.py:312 +#: shop/models.py:315 msgid "preparado" msgstr "preparado" -#: shop/models.py:313 +#: shop/models.py:316 msgid "listo para ser enviado" -msgstr"listo para ser enviado" +msgstr "listo para ser enviado" -#: shop/models.py:314 +#: shop/models.py:317 msgid "enviado" msgstr "enviado" -#: shop/models.py:315 +#: shop/models.py:318 msgid "entregado" msgstr "entregado" -#: shop/models.py:316 +#: shop/models.py:319 msgid "finalizado" msgstr "finalizado" -#: shop/models.py:317 +#: shop/models.py:320 msgid "cancelado" msgstr "cancelado" -#: shop/models.py:318 +#: shop/models.py:321 msgid "devuelto" msgstr "devuelto" -#: shop/models.py:320 +#: shop/models.py:323 msgid "UUID" msgstr "UUID" -#: shop/models.py:323 +#: shop/models.py:326 msgid "estado" msgstr "estado" -#: shop/models.py:330 +#: shop/models.py:333 msgid "base imponible" msgstr "base imponible" -#: shop/models.py:343 +#: shop/models.py:346 msgid "dirección de facturación" msgstr "dirección de facturación" -#: shop/models.py:346 +#: shop/models.py:349 msgid "ciudad de facturación" msgstr "ciudad de facturación" -#: shop/models.py:349 +#: shop/models.py:352 msgid "región de facturación" msgstr "región de facturación" -#: shop/models.py:352 +#: shop/models.py:355 msgid "país de facturación" msgstr "país de facturación" -#: shop/models.py:355 +#: shop/models.py:358 msgid "código postal de facturación" msgstr "código postal de facturación" -#: shop/models.py:375 +#: shop/models.py:378 msgid "teléfono de contacto" msgstr "teléfono de contacto" -#: shop/models.py:390 +#: shop/models.py:393 msgid "pedidos" msgstr "pedidos" +#: shop/templates/components/product_card.html:85 +#: shop/templates/shop/product_detail.html:161 +msgid "Añadir al carrito" +msgstr "Añadir al carrito" + #: shop/templates/shop/index.html:28 msgid "Mostrar mas" msgstr "Mostrar mas" +#: shop/templates/shop/product_detail.html:134 +msgid "Añadir a lista de deseados" +msgstr "Añadir a lista de deseados" + #: tpv/forms.py:7 msgid "Introduce tu e-mail" msgstr "Introduce tu e-mail" diff --git a/shop/templates/components/generic/navbar.html b/shop/templates/components/generic/navbar.html new file mode 100644 index 0000000..8beb443 --- /dev/null +++ b/shop/templates/components/generic/navbar.html @@ -0,0 +1,328 @@ +{% load i18n %} + diff --git a/shop/templates/components/product_card.html b/shop/templates/components/product_card.html index d0a605b..93e6d02 100644 --- a/shop/templates/components/product_card.html +++ b/shop/templates/components/product_card.html @@ -1,4 +1,5 @@ -
+{% load i18n %} +
@@ -50,27 +51,6 @@

5.0

(455)

- -
    -
  • - -

    Fast Delivery

    -
  • - -
  • - -

    Best Price

    -
  • -
-

{{ product.price.price_with_tax }}€

@@ -82,9 +62,9 @@ - Add to cart + {% translate 'Añadir al carrito' %}
- \ No newline at end of file + \ No newline at end of file diff --git a/shop/templates/components/products/list_filters.html b/shop/templates/components/products/list_filters.html index 4692988..100b100 100644 --- a/shop/templates/components/products/list_filters.html +++ b/shop/templates/components/products/list_filters.html @@ -1,3 +1,4 @@ +{% load i18n %}
@@ -10,7 +11,7 @@ hx-swap="innerHTML" hx-push="true" > - +
diff --git a/shop/templates/shop/index.html b/shop/templates/shop/index.html index 5619c66..a58b7cc 100644 --- a/shop/templates/shop/index.html +++ b/shop/templates/shop/index.html @@ -2,6 +2,8 @@ {% load static i18n %} {% block main %} + {% include 'components/generic/navbar.html' %} + {% include 'components/theme-switch.html' %}
{% include 'components/products/list_filters.html' %}
- Add to favorites + {% translate 'Añadir a lista de deseados' %} - Add to cart + {% translate 'Añadir al carrito' %}
diff --git a/theme/static_src/tailwind.config.js b/theme/static_src/tailwind.config.js index a76e4be..d066a7b 100644 --- a/theme/static_src/tailwind.config.js +++ b/theme/static_src/tailwind.config.js @@ -43,6 +43,7 @@ module.exports = { */ // '../../**/*.py' ], + darkMode: 'class', theme: { extend: { colors: { diff --git a/theme/templates/components/theme-switch.html b/theme/templates/components/theme-switch.html new file mode 100644 index 0000000..aedc68a --- /dev/null +++ b/theme/templates/components/theme-switch.html @@ -0,0 +1,4 @@ + diff --git a/theme/templates/theme/base.html b/theme/templates/theme/base.html index 6590e27..f466bfb 100644 --- a/theme/templates/theme/base.html +++ b/theme/templates/theme/base.html @@ -10,12 +10,26 @@ + + {% tailwind_css %} {% block extra_js %} {% endblock %} -
+
{% block main %} {% endblock %}