diff --git a/myproject/products/templates/products/configurableproduct_form.html b/myproject/products/templates/products/configurableproduct_form.html index 9083444..01335a3 100644 --- a/myproject/products/templates/products/configurableproduct_form.html +++ b/myproject/products/templates/products/configurableproduct_form.html @@ -29,6 +29,30 @@ input[name*="DELETE"] { align-items: center; min-height: 38px; } + +/* Стили для autocomplete товаров/комплектов */ +.product-kit-select-wrapper { + flex: 1; + min-width: 200px; +} + +/* Отображение типа товара в Select2 */ +.select2-results__option .item-type-badge { + font-size: 0.7rem; + padding: 0.1rem 0.4rem; + margin-left: 0.3rem; + border-radius: 3px; +} + +.item-type-kit { + background-color: #0d6efd; + color: white; +} + +.item-type-product { + background-color: #198754; + color: white; +} {% endblock %} @@ -108,12 +132,6 @@ input[name*="DELETE"] { @@ -266,16 +285,17 @@ input[name*="DELETE"] { + + +