mirror of
https://github.com/ferdzo/serviceCRM.git
synced 2026-04-04 21:06:24 +00:00
Edited forms.py to change the Text Area
This commit is contained in:
@@ -4,6 +4,7 @@ from .models import Insert
|
||||
class DateInput(forms.DateInput):
|
||||
input_type = 'date'
|
||||
|
||||
|
||||
class InputForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Insert
|
||||
@@ -11,8 +12,9 @@ class InputForm(forms.ModelForm):
|
||||
labels = {'name': "Name", 'phone': "Phone", 'date': "Date", 'description': "Description",'done':"Done"}
|
||||
widgets = {
|
||||
'date': DateInput(),
|
||||
'description':forms.Textarea
|
||||
}
|
||||
field_order =["name", "phone", "description", "date","done"]
|
||||
field_order =["name", "phone", "date","description","done"]
|
||||
|
||||
# name = forms.CharField(label="Name", max_length=30)
|
||||
# phone = forms.CharField(label="Phone", max_length=30)
|
||||
|
||||
Reference in New Issue
Block a user