Пример #1
0
class EventSettingsForm(PaymentEventSettingsFormBase):
    business = StringField(_('Business'), [UsedIf(lambda form, _: form.enabled.data), DataRequired(),
                                           validate_business],
                           description=_('The PayPal ID or email address associated with a PayPal account.'))
Пример #2
0
class PluginSettingsForm(PaymentPluginSettingsFormBase):
    url = URLField(_('API URL'), [DataRequired()], description=_('URL of the PayPal HTTP API.'))
    business = StringField(_('Business'), [Optional(), validate_business],
                           description=_('The default PayPal ID or email address associated with a PayPal account. '
                                         'Event managers will be able to override this.'))
Пример #3
0
class AgentForm(IndicoForm):
    name = StringField(
        _('Name'), [DataRequired()],
        description=_(
            "The name of the agent. Only used in the administration interface."
        ))
Пример #4
0
class FoodQuantityForm(FlaskForm):
    menu_item_name = StringField()
    menu_item_quantity = IntegerField('Quantity', default=0)
    menu_item_id = IntegerField()
Пример #5
0
class LoginForm(FlaskForm):
    username = StringField(label='用户名', validators=[DataRequired()])
    password = PasswordField(label='密码', validators=[DataRequired()])
    submit = SubmitField()