1
Fork 0

added basic form

This commit is contained in:
Jake Howard 2016-01-14 19:24:24 +00:00
parent 6fe4b5fcac
commit f870056f04

7
project/common/forms.py Normal file
View 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)