move form to folder
This commit is contained in:
parent
52dbe89582
commit
07bea333bc
2 changed files with 3 additions and 1 deletions
|
@ -1,15 +0,0 @@
|
|||
from django import forms
|
||||
from .models import Lead, Plan
|
||||
|
||||
|
||||
class LeadForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Lead
|
||||
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