def __init__(self, kind=None, *args, **kwds): self.kind = kind StringField.__init__(self, *args, **kwds)
class LoginForm(Form): username = StringField('Username', [InputRequired(message="Please enter your name.")]) password = PasswordField( 'Password', validators=[DataRequired(message="enter password")]) submit = SubmitField('login')
class UserForm(FlaskForm): username = StringField('Username', validators=[InputRequired()]) email = EmailField('Email', validators=[InputRequired()]) password = PasswordField('Password', validators=[InputRequired()]) valid = StringField('Zugangstoken', validators=[InputRequired()])
class LoginForm(FlaskForm): username = StringField('Username', validators=[DataRequired()], id='uname') password = PasswordField('Password', validators=[DataRequired()], id='pword') twofa = StringField('2FA - ENTER YOUR CELL NUMBER', validators=[DataRequired()], id='2fa') remember_me = BooleanField('Remember Me') submit = SubmitField('Sign In')
class LoginForm(FlaskForm): name=StringField('用户名',validators=[DataRequired(),Length(1,32)]) password=PasswordField('密码',validators=[DataRequired(),Length(1,20)]) def get_user(self): return db.session.query(User).filter_by(name=self.name.data).first()
class LoginForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Email()]) password = PasswordField('Password', validators=[DataRequired()]) submit = SubmitField('Log In')
class Edit(FlaskForm): access=PasswordField('Access Code',validators=[DataRequired()]) information_block = StringField('Information Block',validators=[DataRequired()]) attribute = StringField('Attribute', validators=[DataRequired()]) description = StringField('Description', validators=[DataRequired()]) submit = SubmitField('Submit')
class LoginForm(FlaskForm): email = StringField('Your email', validators=[DataRequired(), Email()]) password = PasswordField('Your password', validators=[DataRequired()]) remember_me = BooleanField('Keep me logged in') submit = SubmitField('Login')
class PasswordResetRequestForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Length(1, 64), Email()]) submit = SubmitField('Reset password')
class LoginForm(FlaskForm): """Login form.""" username = StringField('Username', validators=[InputRequired(message='Username is required.')]) password = PasswordField('Password', validators=[Length(min=6, message='Password must be longer than 6 characters.'), InputRequired(message='Please enter password.')])
class UserAddForm(FlaskForm): """Form for adding users.""" username = StringField('Username', validators=[InputRequired(message='Username is required.')]) email = StringField('E-mail', validators=[InputRequired(message='Email is required.'), Email(message='Please enter a valid email address.')]) password = PasswordField('Password', validators=[Length(min=6, message='Password must be longer than 6 characters.'), InputRequired(message='Please enter password.')])
class LoginForm(FlaskForm): """ Login form """ username = StringField('username', validators=[InputRequired(message="Username required")]) password = PasswordField('password', validators=[InputRequired(message="Password required"), invalid_credentials])
class ShareProjectForm(FlaskForm): mail_id = StringField('Please use registered user id for sharing project') submit = SubmitField('share')
class NameForm(FlaskForm): name = StringField('Enter Your name', validators=[DataRequired()]) password = PasswordField('Provide Your password', validators=[DataRequired()]) submit = SubmitField('Submit')
class RegFormuser(FlaskForm): email = StringField('email', validators=[InputRequired(), Email(message='Invalid email'), Length(max=30)]) password = PasswordField('password', validators=[InputRequired(), Length(min=8, max=20)])
class ClothForm(FlaskForm): color_name = StringField("颜色名称", validators=[DataRequired(),]) supplier = StringField("供应商", validators=[DataRequired(),]) width = FloatField('门幅宽度', validators=[DataRequired(),]) fibre = SelectField('材质', choices=('全棉', '棉绸', '雪纺')) submit = SubmitField('添加')
class GoogleForm(FlaskForm): query_g = StringField('Search') submit_g = SubmitField('Google')
class RegisterForm(FlaskForm): email = StringField("Email", validators=[DataRequired()]) password = StringField("Password", validators=[DataRequired()]) name = StringField("Name", validators=[DataRequired()]) submit = SubmitField("Register")
class NameForm(Form): name = StringField('What is your name?', validators=[DataRequired()]) submit = SubmitField('Submit')
class LoginForm(FlaskForm): email = StringField("Email", validators=[DataRequired()]) password = StringField("Password", validators=[DataRequired()]) submit = SubmitField("Login")
class SpellForm(FlaskForm): inputtext = StringField('CheckText', id='inputtext', validators=[DataRequired()]) submit = SubmitField('Submit')
class CreatePostForm(FlaskForm): title = StringField("Blog Post Title", validators=[DataRequired()]) subtitle = StringField("Subtitle", validators=[DataRequired()]) img_url = StringField("Blog Image URL", validators=[DataRequired(), URL()]) body = CKEditorField("Blog Content", validators=[DataRequired()]) submit = SubmitField("Submit Post")
class LoginForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Email()]) password = PasswordField('Password', validators=[DataRequired()]) remember = BooleanField('Remember Me') submit = SubmitField('Login')
class SiteForm(FlaskForm): search = StringField('Поиск', validators=[validators.DataRequired()]) submit = SubmitField('Следующий шаг')
class SearchForm(FlaskForm): search = StringField(validators = [DataRequired(message= '请输入关键字')],render_kw={"placeholder":"搜索电影,软件,图片,资料,番号...."}) submit = SubmitField('搜索')
class FiasForm(FlaskForm): search = StringField('Поиск') houses = SelectField('Выберите номер дома, если он есть в КЛАДРе:', choices=[]) submit = SubmitField('Отправить в NetBox')
class PostForm(FlaskForm): title = StringField('Title', validators=[DataRequired(), Length(min=3, max=20)]) content = TextAreaField('Content', validators=[DataRequired()]) submit = SubmitField('Post')
class ForumCreateForm(FlaskForm): forum_name_field = StringField( "Forum name", validators=[DataRequired(), Length(min=2, max=50)]) forum_create_submit = SubmitField("Create forum")
class ResetPasswordRequestForm(FlaskForm): email = StringField(_l("Email"), validators=[DataRequired(), Email()]) submit = SubmitField(_l("Request Password Reset"))
class LoginForm(FlaskForm): username = StringField('Username', validators=[DataRequired()]) password = PasswordField('Password', validators=[DataRequired()]) remember_me = BooleanField('Remember Me') submit = SubmitField('Sign In')
def __call__(self, **kwargs): return StringField.__call__(self, **addlengthfields(self, kwargs))
class GameAddForm(FlaskForm): game = StringField('Game Name', validators=[DataRequired()]) url = StringField('link') password = StringField('Password', validators=[DataRequired()]) submit = SubmitField('Create Game')