class ProfileForm(FlaskForm): username = StringField('User Name', validators=[DataRequired()]) aboutme = TextAreaField('About Me', validators=[Length(min=0, max=140)]) submit = SubmitField('Submit')
class EditUserInforForm(Form): introduce = TextAreaField('个人介绍', [DataRequired()]) school = StringField('学校/公司', [DataRequired()])
class Create(Form): name_lab=StringField('Название лабараторной', validators=[DataRequired()]) description=TextAreaField('Что делать', validators=[DataRequired()]) helpp=TextAreaField('Помощь в выполнении', validators=[DataRequired()])
class EditCommentsForm(FlaskForm): comment = TextAreaField("Коментарий", validators=[DataRequired()]) is_private = BooleanField("Лично автору") submit = SubmitField('Изменить')
class PostForm(FlaskForm): post = TextAreaField('Say something', validators=[ DataRequired(), Length(min=1, max=140)]) submit = SubmitField('Submit')
class ColorForm(Form): date = DateField('date', validators=[DataRequired()]) colors = TextAreaField('colors', validators=[DataRequired()])
class UpdateForm(FlaskForm): content = TextAreaField('Add a new update for today:', validators=[DataRequired()]) submit = SubmitField('Add update')
class KeygenForm(FlaskForm): name = TextAreaField(u'输入用户属性集合字符串', validators=[DataRequired()]) submit = SubmitField('submit')
class MessageForm(FlaskForm): message = TextAreaField( _l('Message'), validators=[DataRequired(), Length(min=1, max=140)]) submit = SubmitField(_l('Submit'))
class Coursecopy(FlaskForm): Copy_type = SelectField(u'Copy Type', choices=[('0', 'Existing Courses'), ('1', 'New course')]) Orig_courseId = StringField('Origin Course ID', validators=[validators.input_required()]) Dest_courseId = TextAreaField('Destination Course IDs', validators=[validators.input_required()]) submit = SubmitField('Submit')
class Coursemerge(FlaskForm): Course_id = StringField('Course ID', validators=[validators.input_required()]) Course_name = StringField('Course Name', validators=[validators.input_required()]) Child_courses = TextAreaField('Child Course IDs', validators=[validators.input_required()]) submit = SubmitField('Submit')
class PostForm(FlaskForm): body = TextAreaField('今天写点什么吧', validators=[DataRequired()]) submit = SubmitField('发表')
class EventForm(Form): title = StringField( u'제목', [validators.data_required(u'제목을 입력하시기 바랍니다.')], description={'placeholder': u'제목을 입력하세요.'} ) title_cal = StringField( u'짧은 제목', [validators.data_required(u'짧은 제목을 입력하시기 바랍니다.')], description={'placeholder': u'짧은 제목을 입력하세요.'} ) content = TextAreaField( u'행사 설명', [validators.data_required(u'행사 설명을 입력하시기 바랍니다.')], description={'placeholder': u'행사 설명을 입력하세요.'} ) host = StringField( u'주최자(단체)', [validators.data_required(u'주최자(단체) 정보를 입력하시기 바랍니다.')], description={'placeholder': u'주최자(단체) 정보를 입력하세요.'} ) category_char = SelectField( u'이벤트 카테고리', [validators.data_required(u'이벤트 카테고리를 선택하시기 바랍니다.')], choices=[('concert', u'공연'), ('exhib', u'전시/상영'), ('comp', u'대회'), ('seminar', u'강연/세미나/워크샵'), ('recr', u'모집'), ('contest', u'공모전'), ('sell', u'판매'), ('etc', u'기타')], description={'placeholder': u'이벤트 카테고리를 선택하세요.'} ) category_host = SelectField( u'주최자(단체) 카테고리', [validators.data_required(u'주최자(단체) 카테고리를 선택하시기 바랍니다.')], choices=[('club', u'동아리'), ('student', u'자치단체'), ('uni', u'학교'), ('etc', u'기타')], description={'placeholder': u'주최자(단체) 카테고리를 선하세요.'} ) date_start = DateTimeField( u'이벤트 시작시각', [validators.data_required(u'이벤트 시작시각을 선택하시기 바랍니다.')], description={'placeholder': u'이벤트 시작시각을 선택하세요.'} ) date_end = DateTimeField( u'이벤트 마감시각', [validators.data_required(u'이벤트 마감시각을 선택하시기 바랍니다.')], description={'placeholder': u'이벤트 마감시각을 선택하세요.'} ) location = StringField( u'장소', [validators.data_required(u'장소를 입력하시기 바랍니다.')], description={'placeholder': u'장소를 입력하세요.'} ) link = StringField( u'링크', [validators.data_required(u'링크를 입력하시기 바랍니다.')], description={'placeholder': u'추가정보 링크를 입력하세요.'} ) poster = StringField( u'포스터', [validators.data_required(u'이미지 링크를 입력하시기 바랍니다.')], description={'placeholder': u'포스터 이미지 링크를 입력하세요.'} ) contact = EmailField( u'E-mail', [validators.data_required(u'메일주소를 입력하시기 바랍니다.')], description={'placeholder': u'메일주소를 입력하세요.'} ) contact_open = BooleanField( u'연락처(메) 공개/비공개', [validators.data_required(u'연락처 공개여부를 선택하시기 바랍니다.')], description={'placeholder': u'연락처 공개여부를 선택하세요.'} )
class EditProfileForm(FlaskForm): name = StringField('真实姓名', validators=[Length(0, 64)]) location = StringField('位置', validators=[Length(0, 64)]) about_me = TextAreaField('简介') submit = SubmitField('提交')
class MessageForm(FlaskForm): """Form for adding/editing messages.""" text = TextAreaField('text', validators=[DataRequired()])
class NoteForm(FlaskForm): name = StringField("Название заметки", validators=[DataRequired()]) text = TextAreaField("Содержание", validators=[DataRequired()]) is_private = BooleanField("Приватная заметка") submit = SubmitField('Сохранить')
class NewsCreateForm(FlaskForm): title = StringField('Заголовок новости', validators=[DataRequired()]) text = TextAreaField('Текст новости') submit = SubmitField('Создать новость')
class FeedbackForm(Form): email = EmailField('Email Adress', [DataRequired(), Length(3,254)]) feedback = TextAreaField('Please offer us your feedback.', [DataRequired(), Length(1, 8192)])
class GoalForm(FlaskForm): content = TextAreaField('Add a new goal:', validators=[DataRequired()]) submit = SubmitField('Add goal')
class HelloForm(Form): sayhello = TextAreaField('', [validators.DataRequired()])
class EditUpdate(FlaskForm): newContent = TextAreaField('Edit this update:', validators=[DataRequired()]) submit = SubmitField('Change')
class NoteForm(FlaskForm): title = StringField('Title', validators=[DataRequired(), Length(max=100)]) text = TextAreaField('Text') publish = SubmitField('Publish')
class CommentsForm(FlaskForm): comment = TextAreaField("Написать коментарий:", validators=[DataRequired()]) is_private = BooleanField("Лично автору") submit = SubmitField('Отправить')
class NoteForm(FlaskForm): note = TextAreaField(lazy_gettext("ADD A NOTE TO YOUR ORDER"))
class NewNoteForm(FlaskForm): body = TextAreaField('Body', validators=[DataRequired()]) submit = SubmitField('Save')
class ChatForm(FlaskForm): text = TextAreaField('', validators=[DataRequired()]) submit = SubmitField('Отправить')
class PostForm(FlaskForm): title = StringField('Title', validators=[DataRequired()]) content = TextAreaField('Content', validators=[DataRequired()]) submit = SubmitField('Post')
class TweetForm(FlaskForm): text = TextAreaField('Message', validators=[InputRequired('Type a message')])
class EditProfileForm(FlaskForm): name = StringField('Real name', validators=[Length(0, 64)]) location = StringField('Location', validators=[Length(0, 64)]) about_me = TextAreaField('About me') submit = SubmitField('Submit')
class ContactForm(FlaskForm): name = StringField('Name', validators=[DataRequired()]) email = StringField('Email', validators=[DataRequired(), Email()]) subject = StringField('Subject', validators=[DataRequired()]) Text_Area = TextAreaField('Message', validators=[DataRequired()])