diff --git a/myproject/inventory/static/inventory/transformation_detail.css b/myproject/inventory/static/inventory/transformation_detail.css new file mode 100644 index 0000000..0b69aec --- /dev/null +++ b/myproject/inventory/static/inventory/transformation_detail.css @@ -0,0 +1,22 @@ +/* Стили для компонентов поиска товаров в трансформациях */ + +#transformation-input-picker .card, +#transformation-output-picker .card { + height: 380px !important; + display: flex !important; + flex-direction: column !important; +} + +#transformation-input-picker .product-picker-content, +#transformation-output-picker .product-picker-content { + max-height: 200px !important; + min-height: 200px !important; + overflow-y: auto !important; + flex-shrink: 0 !important; +} + +/* Скрываем внутренние кнопки компонента Picker */ +#transformation-input-picker .product-picker-add-selected, +#transformation-output-picker .product-picker-add-selected { + display: none !important; +} \ No newline at end of file diff --git a/myproject/inventory/templates/inventory/transformation/detail.html b/myproject/inventory/templates/inventory/transformation/detail.html index 477ec5f..ed7b171 100644 --- a/myproject/inventory/templates/inventory/transformation/detail.html +++ b/myproject/inventory/templates/inventory/transformation/detail.html @@ -7,6 +7,7 @@ {% block content %} +
@@ -98,34 +99,60 @@
- + {% if transformation.status == 'draft' %} -
-
-
Найти и добавить товар
-
-
- -
- {% include 'products/components/product_search_picker.html' with container_id='transformation-product-picker' title='Найти товар' warehouse_id=transformation.warehouse.id categories=categories tags=tags add_button_text='Выбрать товар' content_height='250px' %} +
+ +
+
+
+
Добавить входящий товар (для списания)
+
+
+ + {% include 'products/components/product_search_picker.html' with container_id='transformation-input-picker' title='Найти товар в наличии' warehouse_id=transformation.warehouse.id categories=categories tags=tags add_button_text='Добавить во входящий' content_height='200px' %} +
+ +
+
- -