Skip to content

Commit

Permalink
Add code in forms.py
Browse files Browse the repository at this point in the history
Write code necessary for the contact form:
  - import classes
  - define contact form
    - name
	- email
	- subject
	- message
	- submit
  • Loading branch information
aalvaro committed Jun 22, 2014
1 parent 85a3bbd commit 793f0b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from flask.ext.wtf import Form, TextField, TextAreaField, SubmitField

class ContactForm(Form):
name = TextField("Name")
email = TextField("Email")
subject = TextField("Subject")
message = TextAreaField("Message")
submit = SubmitField("Send")

0 comments on commit 793f0b5

Please sign in to comment.