switch from ownCloud to minIO
buttons in table are buttons and do edit and delete properly
This commit is contained in:
+13
-2
@@ -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'
|
||||
})
|
||||
)
|
||||
Reference in New Issue
Block a user