Exemplo n.º 1
0
class RegistrationForm(Form):
    username = fields.TextField(_('Username'), validators=[REQUIRED])
    password = fields.PasswordField(_('Password'), validators=[REQUIRED])
    password_confirm = fields.PasswordField(_('Confirm the password'),
                                            validators=[REQUIRED])
    email = fields.TextField(_('E-mail'), validators=[REQUIRED])
    email_confirm = fields.TextField(_('E-mail confirmation'),
                                     validators=[REQUIRED])
Exemplo n.º 2
0
class LoginForm(Form):
    username = fields.TextField(_('Username'), validators=[REQUIRED])
    password = fields.PasswordField(_('Password'), validators=[REQUIRED])
    remember = fields.BooleanField(_('Keep me signed in'))
Exemplo n.º 3
0
class CreateJobForm(Form):
    description = fields.TextAreaField('Description', validators=[REQUIRED])
    password = fields.PasswordField('Password', validators=[REQUIRED])
    remember = fields.BooleanField('Keep me signed in')
Exemplo n.º 4
0
class RegistrationForm(Form):
    username = fields.TextField('Username', validators=[REQUIRED])
    password = fields.PasswordField('Password', validators=[REQUIRED])
    password_confirm = fields.PasswordField('Confirm the password',
                                            validators=[REQUIRED])
Exemplo n.º 5
0
class UserInfoForm(Form):
    username = fields.TextField("Username")    
    email = fields.TextField("Email")    
    password = fields.PasswordField('Password')
    password_confirm = fields.PasswordField('Confirm the password')
Exemplo n.º 6
0
class RegistrationForm(Form):
    username = fields.TextField('Username', validators=[REQUIRED])
    email = fields.TextField('Email')
    password = fields.PasswordField('Password', validators=[REQUIRED])
    password_confirm = fields.PasswordField('Confirm the password', validators=[REQUIRED])
    clients = fields.SelectField("Select the client to associate this user to<br />(None for brentwood printing staff)", choices=getClientChoices())