def __init__(self, kind=None, *args, **kwds):
   self.kind = kind
   StringField.__init__(self, *args, **kwds)
Пример #2
0
class LoginForm(Form):
    username = StringField('Username',
                           [InputRequired(message="Please enter your name.")])
    password = PasswordField(
        'Password', validators=[DataRequired(message="enter password")])
    submit = SubmitField('login')
Пример #3
0
class UserForm(FlaskForm):
    username = StringField('Username', validators=[InputRequired()])
    email = EmailField('Email', validators=[InputRequired()])
    password = PasswordField('Password', validators=[InputRequired()])
    valid = StringField('Zugangstoken', validators=[InputRequired()])
Пример #4
0
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')
Пример #5
0
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()
Пример #6
0
class LoginForm(FlaskForm):
    email = StringField('Email', validators=[DataRequired(), Email()])
    password = PasswordField('Password', validators=[DataRequired()])
    submit = SubmitField('Log In')
Пример #7
0
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')
Пример #8
0
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')
Пример #9
0
class PasswordResetRequestForm(FlaskForm):
    email = StringField('Email',
                        validators=[DataRequired(),
                                    Length(1, 64),
                                    Email()])
    submit = SubmitField('Reset password')
Пример #10
0
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.')])
Пример #11
0
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.')])
Пример #12
0
class LoginForm(FlaskForm):
    """ Login form """

    username = StringField('username', validators=[InputRequired(message="Username required")])
    password = PasswordField('password', validators=[InputRequired(message="Password required"), invalid_credentials])
Пример #13
0
class ShareProjectForm(FlaskForm):
    mail_id = StringField('Please use registered user id for sharing project')
    submit = SubmitField('share')
Пример #14
0
class NameForm(FlaskForm):
    name = StringField('Enter Your name', validators=[DataRequired()])
    password = PasswordField('Provide Your password',
                             validators=[DataRequired()])
    submit = SubmitField('Submit')
Пример #15
0
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)])
Пример #16
0
class ClothForm(FlaskForm):
    color_name = StringField("颜色名称", validators=[DataRequired(),])
    supplier = StringField("供应商", validators=[DataRequired(),])
    width = FloatField('门幅宽度', validators=[DataRequired(),])
    fibre = SelectField('材质', choices=('全棉', '棉绸', '雪纺'))
    submit = SubmitField('添加')
Пример #17
0
class GoogleForm(FlaskForm):
    query_g = StringField('Search')
    submit_g = SubmitField('Google')
Пример #18
0
class RegisterForm(FlaskForm):
    email =  StringField("Email", validators=[DataRequired()])
    password =  StringField("Password", validators=[DataRequired()])
    name = StringField("Name", validators=[DataRequired()])
    submit = SubmitField("Register")
Пример #19
0
class NameForm(Form):
    name = StringField('What is your name?', validators=[DataRequired()])
    submit = SubmitField('Submit')
Пример #20
0
class LoginForm(FlaskForm):
    email =  StringField("Email", validators=[DataRequired()])
    password =  StringField("Password", validators=[DataRequired()])
    submit = SubmitField("Login")
Пример #21
0
class SpellForm(FlaskForm):
    inputtext = StringField('CheckText', id='inputtext', validators=[DataRequired()])
    submit = SubmitField('Submit')
Пример #22
0
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")
Пример #23
0
class LoginForm(FlaskForm):
    email = StringField('Email',
                        validators=[DataRequired(), Email()])
    password = PasswordField('Password', validators=[DataRequired()])
    remember = BooleanField('Remember Me')
    submit = SubmitField('Login')
Пример #24
0
class SiteForm(FlaskForm):
    search = StringField('Поиск', validators=[validators.DataRequired()])
    submit = SubmitField('Следующий шаг')
Пример #25
0
class SearchForm(FlaskForm):
    search = StringField(validators = [DataRequired(message= '请输入关键字')],render_kw={"placeholder":"搜索电影,软件,图片,资料,番号...."})
    submit = SubmitField('搜索')
Пример #26
0
class FiasForm(FlaskForm):
    search = StringField('Поиск')
    houses = SelectField('Выберите номер дома, если он есть в КЛАДРе:', choices=[])
    submit = SubmitField('Отправить в NetBox')
Пример #27
0
class PostForm(FlaskForm):
    title = StringField('Title',
                        validators=[DataRequired(),
                                    Length(min=3, max=20)])
    content = TextAreaField('Content', validators=[DataRequired()])
    submit = SubmitField('Post')
Пример #28
0
class ForumCreateForm(FlaskForm):
    forum_name_field = StringField(
        "Forum name", validators=[DataRequired(),
                                  Length(min=2, max=50)])
    forum_create_submit = SubmitField("Create forum")
Пример #29
0
class ResetPasswordRequestForm(FlaskForm):
	email = StringField(_l("Email"), validators=[DataRequired(), Email()])
	submit = SubmitField(_l("Request Password Reset"))
Пример #30
0
class LoginForm(FlaskForm):
    username = StringField('Username', validators=[DataRequired()])
    password = PasswordField('Password', validators=[DataRequired()])
    remember_me = BooleanField('Remember Me')
    submit = SubmitField('Sign In')
Пример #31
0
 def __call__(self, **kwargs):
     return StringField.__call__(self, **addlengthfields(self, kwargs))
Пример #32
0
class GameAddForm(FlaskForm):
    game = StringField('Game Name', validators=[DataRequired()])
    url = StringField('link')
    password = StringField('Password', validators=[DataRequired()])
    submit = SubmitField('Create Game')