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.'))
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.'))
class AgentForm(IndicoForm): name = StringField( _('Name'), [DataRequired()], description=_( "The name of the agent. Only used in the administration interface." ))
class FoodQuantityForm(FlaskForm): menu_item_name = StringField() menu_item_quantity = IntegerField('Quantity', default=0) menu_item_id = IntegerField()
class LoginForm(FlaskForm): username = StringField(label='用户名', validators=[DataRequired()]) password = PasswordField(label='密码', validators=[DataRequired()]) submit = SubmitField()