class ForumThreadForm(FlaskForm): title = SlField('Thread Title', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(3) ]) body = SlTextAreaField('Thread Body', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(2) ])
class ItemUploadForm(FlaskForm): name = SlField('Item Name', [sl_validators.Required(), sl_validators.NotBlank()]) canon_name = SlField('Canon Name', [sl_validators.CanonName(), sl_validators.NotBlank()]) image = SlFileField('Image File', []) category_id = SelectField('Category', coerce=int) description = SlTextAreaField( 'Description', [sl_validators.Required(), sl_validators.NotBlank()])
class ForumCategoryForm(FlaskForm): title = SlField('Category Title', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(3) ]) canon_name = SlField('Canon Name', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(3), sl_validators.CanonName() ]) order = SlIntegerField('Sort Order')
class MiniEditForm(FlaskForm): nickname = SlField('Nickname', [ sl_validators.NotBlank(), sl_validators.Max(app.config['MAX_PET_NAME_LENGTH']) ]) description = SlTextAreaField('Custom Description', [sl_validators.Max(256)])
class PetEditForm(FlaskForm): name = SlField('Name', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Max(app.config['MAX_PET_NAME_LENGTH']) ]) description = SlTextAreaField('Description') pronouns = SlField('Pronouns', [sl_validators.Max(app.config['MAX_PET_NAME_LENGTH'])])
class ConversationForm(FlaskForm): recipient = SlField('Recipient Name', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(app.config['MIN_USERNAME_LENGTH']), sl_validators.Max(app.config['MAX_USERNAME_LENGTH']), sl_validators.Username(), recipient_check.UsernameExists ]) title = SlField('Message Title', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(2) ]) text = SlTextAreaField('Message Text', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(2) ])
class ForumBoardForm(FlaskForm): title = SlField('Board Title', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(3) ]) canon_name = SlField('Canon Name', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(3), sl_validators.CanonName() ]) description = SlTextAreaField('Board Description', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(2) ]) category_id = SelectField('Category', coerce=int) order = SlIntegerField('Sort Order') moderators_only = SlBooleanField('Restrict this board to moderators')
class BankTransferForm(FlaskForm): recipient = SlField('Recipient Name', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(app.config['MIN_USERNAME_LENGTH']), sl_validators.Max(app.config['MAX_USERNAME_LENGTH']), sl_validators.Username(), recipient_check.UsernameExists ]) cloud_coins = SlIntegerField( 'Cloud Coins', [validators.Optional(), sl_validators.NotNegative()]) star_shards = SlIntegerField( 'Star Shards', [validators.Optional(), sl_validators.NotNegative()])
class ForumPostForm(FlaskForm): body = SlTextAreaField('Post Content', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(2) ])
class ConversationReplyForm(FlaskForm): text = SlTextAreaField('Reply', [ sl_validators.Required(), sl_validators.NotBlank(), sl_validators.Min(2) ])