Added editor home page form

This commit is contained in:
Vivek Santayana 2022-06-22 01:57:58 +01:00
parent 13c587b7da
commit db88b84ecb

View File

@ -57,8 +57,12 @@ class CreateTest(FlaskForm):
dataset = SelectField('Question Dataset') dataset = SelectField('Question Dataset')
class UploadData(FlaskForm): class UploadData(FlaskForm):
name = StringField('Name', validators=[InputRequired()])
data_file = FileField('Data File', validators=[FileRequired(), FileAllowed(['json'])]) data_file = FileField('Data File', validators=[FileRequired(), FileAllowed(['json'])])
default = BooleanField('Make Default', render_kw={'checked': True}) default = BooleanField('Make Default', render_kw={'checked': True})
class AddTimeAdjustment(FlaskForm): class AddTimeAdjustment(FlaskForm):
time = IntegerField('Extra Time (Minutes)', validators=[InputRequired(), value(max=60)]) time = IntegerField('Extra Time (Minutes)', validators=[InputRequired(), value(max=60)])
class EditDataset(FlaskForm):
dataset = SelectField('Question Dataset')