From ff1c29baaeb5ad1105cfc46ca881b7c8be3db863 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Wed, 31 Dec 2025 23:11:11 +0300 Subject: [PATCH] refactor(inventory): redesign inventory home layout with compact cards - Replace large operation cards with smaller, uniform inventory-card components - Update icon sizes and text styles for better visual hierarchy - Group operations into a cleaner 4x3 grid layout using Bootstrap columns - Simplify card hover effects with subtler shadows and background gradients - Remove unused purple utility classes and old card-body styles - Add focus outline support for accessibility on inventory cards fix(customers): show total debt only when applicable and add external links - Display total debt row only if debt is greater than zero in customer detail - Remove redundant conditional inside debt display cell - Add target="_blank" and rel attributes to order detail links to open in new tab --- .../templates/customers/customer_detail.html | 12 +- .../inventory/templates/inventory/home.html | 322 +++++++----------- 2 files changed, 130 insertions(+), 204 deletions(-) diff --git a/myproject/customers/templates/customers/customer_detail.html b/myproject/customers/templates/customers/customer_detail.html index 9ce2626..ee89402 100644 --- a/myproject/customers/templates/customers/customer_detail.html +++ b/myproject/customers/templates/customers/customer_detail.html @@ -138,17 +138,15 @@ {{ last_year_orders_sum|floatformat:2 }} руб. + {% if total_debt > 0 %} Общий долг: - {% if total_debt > 0 %} - {{ total_debt|floatformat:2 }} руб. - (Заказов: {{ active_orders_count }}) - {% else %} - 0.00 руб. - {% endif %} + {{ total_debt|floatformat:2 }} руб. + (Заказов: {{ active_orders_count }}) + {% endif %} @@ -305,7 +303,7 @@ {% endif %} - + diff --git a/myproject/inventory/templates/inventory/home.html b/myproject/inventory/templates/inventory/home.html index 0f8e9e5..e3bdffd 100644 --- a/myproject/inventory/templates/inventory/home.html +++ b/myproject/inventory/templates/inventory/home.html @@ -3,232 +3,160 @@ {% block title %}Склад{% endblock %} {% block content %} -
- -
-
-

Управление складом

-

Выберите операцию или справочник

-
+
+ +
+
Управление складом
+ Выберите операцию или справочник
+
- -
-
- Главные операции -
-
- - - -
-
- Операции -
-
- - - -
-
- Справочники -
-
- -
- -
-
- -
Остатки
- Текущие остатки товаров -
-
-
+ + - -
- -
-
- -
Партии
- Партии товаров -
-
-
+ + - - {% endblock %}