diff --git a/sortiment/store/templates/products/_search.html b/sortiment/store/templates/products/_search.html index 3ceda8e..7c97c66 100644 --- a/sortiment/store/templates/products/_search.html +++ b/sortiment/store/templates/products/_search.html @@ -1,11 +1,11 @@ {% load icon %} {% if not product %}
- + -
- +
+
{% icon "plus" %}
@@ -15,7 +15,7 @@ {% if query %} {% for product in products %} -
+
{% include "store/_item_image.html" %}
@@ -31,7 +31,7 @@ {% else %} -
+
{% include "store/_item_image.html" %}
diff --git a/sortiment/store/templates/products/home.html b/sortiment/store/templates/products/home.html index d07a164..6894748 100644 --- a/sortiment/store/templates/products/home.html +++ b/sortiment/store/templates/products/home.html @@ -6,27 +6,27 @@ {% block setting %}

Správa sortimentu

-
- + {% endblock %} diff --git a/sortiment/store/templates/store/_button_style.html b/sortiment/store/templates/store/_button_style.html index 3e9911d..f7c018b 100644 --- a/sortiment/store/templates/store/_button_style.html +++ b/sortiment/store/templates/store/_button_style.html @@ -1,14 +1,14 @@ {% if color == "blue" %} {% if page_name == request.path %} - "btn bg-blue-500 text-gray-100 hover:bg-blue-600 hover:text-gray-200" + "btn bg-blue-500 dark:bg-blue-600 text-gray-100 hover:bg-blue-600 hover:text-gray-200" {% else %} - "btn bg-blue-100 text-gray-700 hover:bg-blue-300 hover:text-gray-900" + "btn bg-blue-100 dark:bg-blue-900 text-gray-700 dark:text-gray-300 hover:bg-blue-300 dark:hover:bg-blue-500 hover:text-gray-900" {% endif %} {% elif color == "red" %} {% if page_name == request.path %} - "btn bg-red-500 text-red-100 hover:bg-red-600 hover:text-red-200" + "btn bg-red-500 text-red-100 dark:text-red-900 hover:bg-red-600 hover:text-red-200" {% else %} - "btn bg-red-100 text-red-700 hover:bg-red-300 hover:text-red-900" + "btn bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-300 dark:hover:bg-red-500 hover:text-red-900" {% endif %} {% else %} {% if page_name == request.path %} diff --git a/sortiment/store/templates/store/_cart.html b/sortiment/store/templates/store/_cart.html index f2cfeec..83dc1d4 100644 --- a/sortiment/store/templates/store/_cart.html +++ b/sortiment/store/templates/store/_cart.html @@ -1,6 +1,6 @@ {% load icon %} - +
Môj nákup
@@ -15,7 +15,7 @@
{{ item.quantity }} × {{ item.product.price }} €
-
{{ item.total_price|floatformat:2 }} €
+
{{ item.total_price|floatformat:2 }} €
{% icon "x" class="w-6 h-6" %} @@ -24,7 +24,7 @@
-
+
{% if cart.total_price > user.credit and not user.is_guest %}
Nedostatok kreditu
{% else %} diff --git a/sortiment/store/templates/store/_item_image.html b/sortiment/store/templates/store/_item_image.html index 7ce2bdb..0fafde1 100644 --- a/sortiment/store/templates/store/_item_image.html +++ b/sortiment/store/templates/store/_item_image.html @@ -1,5 +1,5 @@ {% load icon %} -
+
{% if product.image %} {% else %} diff --git a/sortiment/store/templates/store/_products_list.html b/sortiment/store/templates/store/_products_list.html index 1fa0a67..b55c8be 100644 --- a/sortiment/store/templates/store/_products_list.html +++ b/sortiment/store/templates/store/_products_list.html @@ -4,12 +4,12 @@
{% for p in products %} {% cache 3600 "product_detail" p.product.id p.global_quantity %} - {% include "store/_item_image.html" with product=p.product %}

{{ p.product.name }}

-
+
{{ p.product.price }} €
{% if p.product.is_unlimited %} diff --git a/sortiment/store/templates/store/cart_base.html b/sortiment/store/templates/store/cart_base.html index 8df538e..0559b6b 100644 --- a/sortiment/store/templates/store/cart_base.html +++ b/sortiment/store/templates/store/cart_base.html @@ -3,9 +3,9 @@ {% block content %}
-