From 32bc0d2c397708bc582c6a514a050c8dfa9396c9 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Mon, 26 Jan 2026 21:00:57 +0300 Subject: [PATCH] feat(ui): add collapsible section for inventory information with toggle animation - Wrap inventory information table in Bootstrap collapse component - Add toggle button with chevron icon indicating collapse state - Implement JavaScript to animate chevron icon on collapse/expand - Set inventory information to be collapsed by default for cleaner UI This change improves the user interface by reducing clutter on the inventory detail page, allowing users to focus on the most important information first and expand additional details as needed. --- .../inventory/inventory/inventory_detail.html | 106 +++++++++++------- 1 file changed, 65 insertions(+), 41 deletions(-) diff --git a/myproject/inventory/templates/inventory/inventory/inventory_detail.html b/myproject/inventory/templates/inventory/inventory/inventory_detail.html index ab3232d..99826a3 100644 --- a/myproject/inventory/templates/inventory/inventory/inventory_detail.html +++ b/myproject/inventory/templates/inventory/inventory/inventory_detail.html @@ -19,52 +19,76 @@
+
-
Информация
- - {% if inventory.document_number %} - - - - - {% endif %} - - - - - - - - - - - - - {% if inventory.conducted_by %} - - - - - {% endif %} -
Номер документа:{{ inventory.document_number }}
Склад:{{ inventory.warehouse.name }}
Статус: - {% if inventory.status == 'draft' %} - - Черновик - - {% elif inventory.status == 'processing' %} - - В обработке - - {% else %} - - Завершена - - {% endif %} -
Дата:{{ inventory.date|date:"d.m.Y H:i" }}
Провёл:{{ inventory.conducted_by }}
+ +
+ + {% if inventory.document_number %} + + + + + {% endif %} + + + + + + + + + + + + + {% if inventory.conducted_by %} + + + + + {% endif %} +
Номер документа:{{ inventory.document_number }}
Склад:{{ inventory.warehouse.name }}
Статус: + {% if inventory.status == 'draft' %} + + Черновик + + {% elif inventory.status == 'processing' %} + + В обработке + + {% else %} + + Завершена + + {% endif %} +
Дата:{{ inventory.date|date:"d.m.Y H:i" }}
Провёл:{{ inventory.conducted_by }}
+
+ + {% if inventory.status == 'completed' %}