summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/auth.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/ogcp/forms/auth.py b/ogcp/forms/auth.py
new file mode 100644
index 0000000..8c84e84
--- /dev/null
+++ b/ogcp/forms/auth.py
@@ -0,0 +1,20 @@
+from wtforms import (
+ Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField,
+ StringField, RadioField, PasswordField
+)
+from wtforms.validators import InputRequired
+from flask_wtf import FlaskForm
+from flask_babel import _
+
+class LoginForm(FlaskForm):
+ user = StringField(
+ label=_('User'),
+ validators=[InputRequired()]
+ )
+ pwd = PasswordField(
+ label=_('Password'),
+ validators=[InputRequired()]
+ )
+ submit = SubmitField(
+ label=_('Login')
+ )