diff --git a/ref-test/app/forms/admin.py b/ref-test/app/forms/admin.py index b9aea31..19db3d3 100644 --- a/ref-test/app/forms/admin.py +++ b/ref-test/app/forms/admin.py @@ -57,8 +57,12 @@ class CreateTest(FlaskForm): dataset = SelectField('Question Dataset') class UploadData(FlaskForm): + name = StringField('Name', validators=[InputRequired()]) data_file = FileField('Data File', validators=[FileRequired(), FileAllowed(['json'])]) default = BooleanField('Make Default', render_kw={'checked': True}) class AddTimeAdjustment(FlaskForm): - time = IntegerField('Extra Time (Minutes)', validators=[InputRequired(), value(max=60)]) \ No newline at end of file + time = IntegerField('Extra Time (Minutes)', validators=[InputRequired(), value(max=60)]) + +class EditDataset(FlaskForm): + dataset = SelectField('Question Dataset') \ No newline at end of file