From cdaf43afbdfb342ec8e194a9b814865797577fd2 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Mon, 1 Dec 2025 11:41:44 +0300 Subject: [PATCH] Improved incoming form validation: require cost price, better error highlighting --- .../incoming/incoming_bulk_form.html | 86 +++++++++++++++---- 1 file changed, 68 insertions(+), 18 deletions(-) diff --git a/myproject/inventory/templates/inventory/incoming/incoming_bulk_form.html b/myproject/inventory/templates/inventory/incoming/incoming_bulk_form.html index 3e4fd74..2ebe81d 100644 --- a/myproject/inventory/templates/inventory/incoming/incoming_bulk_form.html +++ b/myproject/inventory/templates/inventory/incoming/incoming_bulk_form.html @@ -158,6 +158,11 @@ font-size: 0.875rem; margin-top: 0.25rem; } + + .is-invalid { + border-color: #dc3545 !important; + box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important; + }