Ejemplo n.º 1
0
class ProblemSearchForm(Form):
    problem_id = fields.IntegerField('Problem ID',
                                     validators=[validators.Optional()])
    problem_title = fields.StringField('Problem Title',
                                       validators=[validators.Optional()])
    submit = fields.SubmitField('Search')
Ejemplo n.º 2
0
class NewItem(Form):
    item = fields.StringField(label='Item')
    starting = fields.SubmitField(label='Starting')
    ending = fields.SubmitField(label='Ending')
Ejemplo n.º 3
0
class Form_huy_don_hang(FlaskForm):
    li_do = fields.TextAreaField()
    submit = fields.SubmitField('Đồng ý')
Ejemplo n.º 4
0
class RelayForm(flask_wtf.FlaskForm):
    name = fields.StringField(_('Relayed domain name'), [validators.DataRequired()])
    smtp = fields.StringField(_('Remote host'))
    comment = fields.StringField(_('Comment'))
    submit = fields.SubmitField(_('Create'))
Ejemplo n.º 5
0
class UserPasswordForm(flask_wtf.FlaskForm):
    pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
    pw2 = fields.PasswordField(_('Password check'), [validators.DataRequired()])
    submit = fields.SubmitField(_('Update password'))
Ejemplo n.º 6
0
class AnnouncementForm(flask_wtf.FlaskForm):
    announcement_subject = fields.StringField(_('Announcement subject'),
        [validators.DataRequired()])
    announcement_body = fields.StringField(_('Announcement body'),
        [validators.DataRequired()], widget=widgets.TextArea())
    submit = fields.SubmitField(_('Send'))
Ejemplo n.º 7
0
class LoginForm(flask_wtf.FlaskForm):
    email = fields.StringField(_('E-mail'), [validators.Email()])
    pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
    submit = fields.SubmitField(_('Sign in'))
Ejemplo n.º 8
0
class ManagerForm(Form):
    manager = fields.SelectField('Manager email')
    submit = fields.SubmitField('Submit')
Ejemplo n.º 9
0
class LoginForm(Form):
    email = fields.StringField('E-mail', [validators.Email()])
    pw = fields.PasswordField('Password', [validators.DataRequired()])
    submit = fields.SubmitField('Sign in')
Ejemplo n.º 10
0
class TestForm(Form):
    title = fields.StringField('Test')
    content = AceEditorField('content')
    submit = fields.SubmitField()
Ejemplo n.º 11
0
class TextEditorContentForm(Form):
    content = fields.FormField(TextEditorFieldForm,
                               label="Content",
                               separator="_")
    submit = fields.SubmitField('save')
Ejemplo n.º 12
0
class PredictForm(Form):
    """Fields for Predict"""
    myChoices = ["one", "two", "three"]
    input_text = fields.TextAreaField('Paste Transcript Here:')

    submit = fields.SubmitField('Submit')
Ejemplo n.º 13
0
class LoginForm(FlaskForm):
    username = fields.StringField(label='管理员账号', validators=[validators.required()])
    password = fields.PasswordField(label='密码', validators=[validators.required()])

    remember_me = fields.BooleanField('记住我')
    submit = fields.SubmitField('登陆')
Ejemplo n.º 14
0
class UserSettingsForm(flask_wtf.FlaskForm):
    displayed_name = fields.StringField(_('Displayed name'))
    spam_enabled = fields.BooleanField(_('Enable spam filter'))
    spam_threshold = fields_.IntegerSliderField(_('Spam filter tolerance'))
    submit = fields.SubmitField(_('Save settings'))
Ejemplo n.º 15
0
class AdminForm(flask_wtf.FlaskForm):
    admin = fields.SelectField(_('Admin email'), choices=[])
    submit = fields.SubmitField(_('Submit'))
Ejemplo n.º 16
0
class DomainForm(Form):
    name = fields.StringField('Domain name', [validators.DataRequired()])
    max_users = fields_.IntegerField('Maximum user count', default=10)
    max_aliases = fields_.IntegerField('Maximum alias count', default=10)
    comment = fields.StringField('Comment')
    submit = fields.SubmitField('Create')
Ejemplo n.º 17
0
class ManagerForm(flask_wtf.FlaskForm):
    manager = fields.SelectField(_('Manager email'))
    submit = fields.SubmitField(_('Submit'))
Ejemplo n.º 18
0
class UserSettingsForm(Form):
    displayed_name = fields.StringField('Displayed name')
    spam_enabled = fields.BooleanField('Enable spam filter')
    spam_threshold = fields.DecimalField('Spam filter sensitivity')
    submit = fields.SubmitField('Save settings')
Ejemplo n.º 19
0
class ConfirmationForm(flask_wtf.FlaskForm):
    submit = fields.SubmitField(_('Confirm'))
Ejemplo n.º 20
0
class UserPasswordForm(Form):
    pw = fields.PasswordField('Password', [validators.DataRequired()])
    pw2 = fields.PasswordField('Password check', [validators.DataRequired()])
    submit = fields.SubmitField('Update password')
Ejemplo n.º 21
0
class AlternativeForm(flask_wtf.FlaskForm):
    name = fields.StringField(_('Alternative name'), [validators.DataRequired()])
    submit = fields.SubmitField(_('Create'))
Ejemplo n.º 22
0
class UserForwardForm(Form):
    forward_enabled = fields.BooleanField('Enable forwarding')
    forward_destination = fields.StringField(
        'Destination', [validators.Optional(), validators.Email()]
    )
    submit = fields.SubmitField('Update')
Ejemplo n.º 23
0
class UserSignupForm(flask_wtf.FlaskForm):
    localpart = fields.StringField(_('Email address'), [validators.DataRequired(), validators.Regexp("^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+$")])
    pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
    pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
    captcha = flask_wtf.RecaptchaField()
    submit = fields.SubmitField(_('Sign up'))
Ejemplo n.º 24
0
class UserReplyForm(Form):
    reply_enabled = fields.BooleanField('Enable automatic reply')
    reply_subject = fields.StringField('Reply subject')
    reply_body = fields.StringField('Reply body', widget=widgets.TextArea())
    submit = fields.SubmitField('Update')
Ejemplo n.º 25
0
class AuthForm(BaseSecureForm):
    grant = fields.SubmitField('Grant', id='submit_button')
    deny = fields.SubmitField('Deny', id='submit_button')
Ejemplo n.º 26
0
class AdminForm(Form):
    admin = fields.SelectField('Admin email', choices=[])
    submit = fields.SubmitField('Submit')
Ejemplo n.º 27
0
class Form_cap_nhat_san_pham(FlaskForm):
    ten_loai = fields.SelectField('Loại:')
    gia_ban = fields.IntegerField(widget=NumberInput())
    gia_nhap = fields.IntegerField(widget=NumberInput())
    thuoc_tinh = fields.TextField()
    submit = fields.SubmitField('Cập nhật')
Ejemplo n.º 28
0
class DisplayForm(Form):
	query_terms = fields.TextField('Query Terms:',validators=[Required()])
	query_date = fields.TextField('Earliest Article Date:')
	size = fields.TextField('Number of Articles:')
	submit = fields.SubmitField('Submit')
Ejemplo n.º 29
0
class Form_khoan_chi(FlaskForm):
    ten = fields.TextField([validators.required()])
    noi_dung = fields.TextField()
    so_tien = fields.FloatField([validators.required()])
    submit_1 = fields.SubmitField('Hoàn tất')
Ejemplo n.º 30
0
class InputForm(Form):
    url = fields.StringField('url', validators=[DataRequired()])
    submit = fields.SubmitField('Submit')