Feature: разделители в поле Цена, убраны стрелки в Цена и Количество

Made-with: Cursor
This commit is contained in:
2026-02-26 13:07:04 +00:00
parent 7b596a4dc2
commit a2577ed3eb
5 changed files with 57 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ class CustomerOrderItemForm(forms.ModelForm):
model = CustomerOrderItem
fields = ("product", "price", "currency", "quantity")
widgets = {
"price": forms.TextInput(attrs={"inputmode": "decimal", "class": "ws-price-input"}),
"quantity": forms.NumberInput(attrs={"size": 3, "min": 0, "max": 99, "style": "width: 4ch"}),
}
@@ -26,6 +27,7 @@ class SupplierOrderItemForm(forms.ModelForm):
model = SupplierOrderItem
fields = ("product", "price", "currency", "quantity")
widgets = {
"price": forms.TextInput(attrs={"inputmode": "decimal", "class": "ws-price-input"}),
"quantity": forms.NumberInput(attrs={"size": 3, "min": 0, "max": 99, "style": "width: 4ch"}),
}