introduce message field in lead form
This commit is contained in:
parent
5eb40ffc4f
commit
ddec9d1126
7 changed files with 46 additions and 5 deletions
|
@ -5,12 +5,13 @@ from .models import Lead, Plan, PlanPrice
|
|||
class LeadForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Lead
|
||||
fields = ["name", "company", "email", "phone"]
|
||||
fields = ["name", "company", "email", "phone", "message"]
|
||||
widgets = {
|
||||
"name": forms.TextInput(attrs={"class": "form-control"}),
|
||||
"company": forms.TextInput(attrs={"class": "form-control"}),
|
||||
"email": forms.EmailInput(attrs={"class": "form-control"}),
|
||||
"phone": forms.TextInput(attrs={"class": "form-control"}),
|
||||
"message": forms.Textarea(attrs={"class": "form-control", "rows": 4}),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue