mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
25 lines
556 B
Python
25 lines
556 B
Python
from wtforms import StringField, SubmitField, TextAreaField
|
|
from wtforms.validators import InputRequired, Length
|
|
from app.forms import NopaqueForm
|
|
|
|
|
|
class CorpusBaseForm(NopaqueForm):
|
|
description = TextAreaField(
|
|
'Description',
|
|
validators=[InputRequired(), Length(max=255)]
|
|
)
|
|
title = StringField('Title', validators=[InputRequired(), Length(max=32)])
|
|
submit = SubmitField()
|
|
|
|
|
|
class CreateCorpusForm(CorpusBaseForm):
|
|
pass
|
|
|
|
|
|
class UpdateCorpusForm(CorpusBaseForm):
|
|
pass
|
|
|
|
|
|
class ImportCorpusForm(NopaqueForm):
|
|
pass
|