diff --git a/engine/core/templates/admin/dashboard/_filters.html b/engine/core/templates/admin/dashboard/_filters.html index cdf24eb8..4001bedd 100644 --- a/engine/core/templates/admin/dashboard/_filters.html +++ b/engine/core/templates/admin/dashboard/_filters.html @@ -1,22 +1,14 @@ {% load i18n unfold %} -{% component "unfold/components/card.html" with class="mb-4" %} -
- {% component "unfold/components/text.html" with class="text-sm text-gray-500 dark:text-gray-400 mr-2" %} - {% trans "Timeframe" %} - {% endcomponent %} - {% with cur=tf|default:30 %} - 7d - 30d - 90d - 360d - {% endwith %} -{#
#} -{# TODO: Integrate GA/Yandex.Metrica & Ads metrics#} -{#
#} -
-{% endcomponent %} +
+ {% with cur=tf|default:30 %} + 7d + 30d + 90d + 360d + {% endwith %} +
diff --git a/engine/core/templates/admin/dashboard/_product_lists.html b/engine/core/templates/admin/dashboard/_product_lists.html index a71b0095..1c00b3cd 100644 --- a/engine/core/templates/admin/dashboard/_product_lists.html +++ b/engine/core/templates/admin/dashboard/_product_lists.html @@ -1,71 +1,69 @@ {% load i18n unfold %} -
- {% component "unfold/components/card.html" %} - {% component "unfold/components/title.html" %} - {% trans "Most wished product" %} - {% endcomponent %} - {% if most_wished_products %} - - {% elif most_wished_product %} - - {% if most_wished_product.image %} - {{ most_wished_product.name }} - {% endif %} - {{ most_wished_product.name }} - - {% else %} - {% component "unfold/components/text.html" %} - {% trans "No data yet." %} - {% endcomponent %} - {% endif %} +{% component "unfold/components/card.html" %} + {% component "unfold/components/title.html" %} + {% trans "Most wished product" %} {% endcomponent %} + {% if most_wished_products %} + + {% elif most_wished_product %} + + {% if most_wished_product.image %} + {{ most_wished_product.name }} + {% endif %} + {{ most_wished_product.name }} + + {% else %} + {% component "unfold/components/text.html" %} + {% trans "No data yet." %} + {% endcomponent %} + {% endif %} +{% endcomponent %} - {% component "unfold/components/card.html" %} - {% component "unfold/components/title.html" %} - {% trans "Most popular product" %} - {% endcomponent %} - {% if most_popular_products %} - - {% elif most_popular_product %} - - {% if most_popular_product.image %} - {{ most_popular_product.name }} - {% endif %} - {{ most_popular_product.name }} - - {% else %} - {% component "unfold/components/text.html" %} - {% trans "No data yet." %} - {% endcomponent %} - {% endif %} +{% component "unfold/components/card.html" %} + {% component "unfold/components/title.html" %} + {% trans "Most popular product" %} {% endcomponent %} -
+ {% if most_popular_products %} + + {% elif most_popular_product %} + + {% if most_popular_product.image %} + {{ most_popular_product.name }} + {% endif %} + {{ most_popular_product.name }} + + {% else %} + {% component "unfold/components/text.html" %} + {% trans "No data yet." %} + {% endcomponent %} + {% endif %} +{% endcomponent %} diff --git a/engine/core/templates/admin/index.html b/engine/core/templates/admin/index.html index 3257e12b..1a35dd74 100644 --- a/engine/core/templates/admin/index.html +++ b/engine/core/templates/admin/index.html @@ -18,17 +18,13 @@
{% component "unfold/components/title.html" %} {% trans "Dashboard" %} -
+ {% include "admin/dashboard/_filters.html" %} {% endcomponent %} - {% include "admin/dashboard/_filters.html" %} - {% include "admin/dashboard/_kpis.html" %}
-
- {% include "admin/dashboard/_daily_sales.html" %} -
+ {% include "admin/dashboard/_daily_sales.html" %}
@@ -43,11 +39,7 @@ {% endif %}
-
- {% include "admin/dashboard/_top_categories.html" %} - {% include "admin/dashboard/_quick_links.html" %} -
- + {% include "admin/dashboard/_top_categories.html" %} {% include "admin/dashboard/_product_lists.html" %} {% component "unfold/components/separator.html" %}