forked from pythonkc/pythonkc-com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
20 lines (16 loc) · 829 Bytes
/
forms.py
File metadata and controls
20 lines (16 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
from django import forms
class ContactForm(forms.Form):
first_name = forms.CharField(
widget=forms.TextInput(attrs={'placeholder': 'FIRST NAME',
'class': 'contact-name'}))
last_name = forms.CharField(
widget=forms.TextInput(attrs={'placeholder': 'LAST NAME',
'class': 'contact-name'}))
email = forms.EmailField(
widget=forms.TextInput(attrs={'placeholder': 'E-MAIL ADDRESS',
'class': 'contact-email'}))
message = forms.CharField(
widget=forms.Textarea(attrs={'placeholder': 'MESSAGE',
'class': 'contact-message',
'rows': '3'}))