added basic form
This commit is contained in:
parent
6fe4b5fcac
commit
f870056f04
1 changed files with 7 additions and 0 deletions
7
project/common/forms.py
Normal file
7
project/common/forms.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
class ContactForm(forms.Form):
|
||||||
|
email = forms.CharField(label="Email Address", widget=forms.EmailInput(attrs={'placeholder': 'Email Address'}))
|
||||||
|
name = forms.CharField(label="Full Name", widget=forms.TextInput(attrs={'placeholder': 'Full Name'}))
|
||||||
|
message = forms.CharField(label="Message", widget=forms.Textarea(attrs={'placeholder': 'Enter your message here'}))
|
||||||
|
|
||||||
|
def send_email(self):
|
||||||
|
print("Sending email with", self.cleaned_data)
|
Reference in a new issue