示例#1
0
class ClusterCreateForm(FlaskExtendableForm):
    name = StringField('Name', validators=[DataRequired()])
    provisioner = SelectField('Provisioner',
                              validators=[DataRequired()],
                              choices=[],
                              switch=True)
示例#2
0
class ProvisionerCreateForm(FlaskExtendableForm):
    name = StringField('Name', validators=[DataRequired()])
    engine = SelectField('Engine', choices=[], switch=True)
示例#3
0
class UserInviteForm(FlaskExtendableForm):
    auth_method = SelectField('Authentication Method', choices=[], switch=True)
示例#4
0
class UserProfileForm(FlaskExtendableForm):
    timezone = SelectField('Timezone',
                           validators=[DataRequired()],
                           choices=get_datetime_choices())
示例#5
0
class MemberChangeRoleForm(FlaskForm):
    role = SelectField('Role', choices=ROLE_CHOICES)
示例#6
0
class MemberCreateForm(FlaskExtendableForm):
    auth_method = SelectField('Authentication Method', choices=[], switch=True)
    role = SelectField('Role', choices=ROLE_CHOICES)