switch from ownCloud to minIO

buttons in table are buttons and do edit and delete properly
This commit is contained in:
2025-07-29 18:51:09 +03:00
parent 4603953458
commit c1183c22ea
40 changed files with 1263 additions and 241 deletions
+13 -2
View File
@@ -1,4 +1,4 @@
from django.forms import ModelForm, TextInput
from django.forms import ModelForm, TextInput, CharField, Form
from containers.models import Container
@@ -51,4 +51,15 @@ class ContainerExpeditionForm(ContainerBaseForm):
readonly_fields = ['number', 'position', 'line', 'container_type', 'damages', 'heavy_damaged']
for field in readonly_fields:
self.fields[field].widget.attrs['readonly'] = True
# self.fields[field].disabled = True
# self.fields[field].disabled = True
class ContainerSearchForm(Form):
container_number = CharField(
max_length=11,
required=True,
widget=TextInput(attrs={
'class': 'form-control',
'placeholder': 'Enter container number'
})
)