mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-15 23:25:51 +00:00
Begin with model
This commit is contained in:
27
app/forms.py
Normal file
27
app/forms.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import (
|
||||
StringField,
|
||||
PasswordField,
|
||||
BooleanField,
|
||||
SubmitField,
|
||||
)
|
||||
from wtforms.validators import (
|
||||
DataRequired,
|
||||
Length,
|
||||
)
|
||||
|
||||
|
||||
class LoginForm(FlaskForm):
|
||||
username = StringField(
|
||||
"Username", validators=[DataRequired(), Length(1, 20)]
|
||||
)
|
||||
password = PasswordField(
|
||||
"Password", validators=[DataRequired(), Length(4, 150)]
|
||||
)
|
||||
remember_me = BooleanField("Remember me")
|
||||
submit = SubmitField()
|
||||
|
||||
|
||||
class BenchmarkSelect(FlaskForm):
|
||||
|
||||
submit = SubmitField("Select")
|
Reference in New Issue
Block a user