introduce message field in lead form

This commit is contained in:
Tobias Brunner 2025-01-31 17:13:55 +01:00
parent 5eb40ffc4f
commit ddec9d1126
No known key found for this signature in database
7 changed files with 46 additions and 5 deletions

View file

@ -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}),
}