代码拉取完成,页面将自动刷新
同步操作将从 laizonghuai/Book-Management-System 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField, PasswordField
from wtforms.validators import DataRequired, EqualTo, Length
class Login(FlaskForm):
account = StringField(u'账号', validators=[DataRequired()])
password = PasswordField(u'密码', validators=[DataRequired()])
submit = SubmitField(u'登录')
class ChangePasswordForm(FlaskForm):
old_password = PasswordField(u'原密码', validators=[DataRequired()])
password = PasswordField(u'新密码', validators=[DataRequired(), EqualTo('password2', message=u'两次密码必须一致!')])
password2 = PasswordField(u'确认新密码', validators=[DataRequired()])
submit = SubmitField(u'确认修改')
class EditInfoForm(FlaskForm):
name = StringField(u'用户名', validators=[Length(1, 32)])
submit = SubmitField(u'提交')
class SearchBookForm(FlaskForm):
methods = [('book_name', '书名'), ('author', '作者'), ('class_name', '类别'), ('isbn', 'ISBN')]
method = SelectField(choices=methods, validators=[DataRequired()], coerce=str)
content = StringField(validators=[DataRequired()])
submit = SubmitField('搜索')
class SearchStudentForm(FlaskForm):
card = StringField(validators=[DataRequired()])
submit = SubmitField('搜索')
class StoreForm(FlaskForm):
barcode = StringField(validators=[DataRequired(), Length(6)])
isbn = StringField(validators=[DataRequired(), Length(13)])
location = StringField(validators=[DataRequired(), Length(1, 32)])
submit = SubmitField(u'提交')
class NewStoreForm(FlaskForm):
isbn = StringField(validators=[DataRequired(), Length(13)])
book_name = StringField(validators=[DataRequired(), Length(1, 64)])
press = StringField(validators=[DataRequired(), Length(1, 32)])
author = StringField(validators=[DataRequired(), Length(1, 64)])
class_name = StringField(validators=[DataRequired(), Length(1, 64)])
submit = SubmitField(u'提交')
class BorrowForm(FlaskForm):
card = StringField(validators=[DataRequired()])
book_name = StringField(validators=[DataRequired()])
submit = SubmitField(u'搜索')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。