aboutsummaryrefslogtreecommitdiff
path: root/app/forms/app_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/forms/app_forms.py')
-rw-r--r--app/forms/app_forms.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/forms/app_forms.py b/app/forms/app_forms.py
new file mode 100644
index 0000000..92913d6
--- /dev/null
+++ b/app/forms/app_forms.py
@@ -0,0 +1,10 @@
+from flask_wtf import FlaskForm
+from wtforms import StringField, TextAreaField
+from wtforms.fields.html5 import EmailField
+from wtforms.validators import DataRequired, Email
+
+class MyForm(FlaskForm):
+ name = StringField('Name', validators=[DataRequired()])
+ email = EmailField('Email', validators=[DataRequired(), Email()])
+ subject = StringField('Subject', validators=[DataRequired()])
+ body = TextAreaField('Message', validators=[DataRequired()]) \ No newline at end of file