From db88b84ecba62b6815112b75e9cd8a3884e32562 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 22 Jun 2022 01:57:58 +0100 Subject: [PATCH] Added editor home page form --- ref-test/app/forms/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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