diff --git a/app.py b/app.py index 4067ba5..b49a1fd 100644 --- a/app.py +++ b/app.py @@ -19,9 +19,18 @@ CWD = Path().resolve() class UploadForm(FlaskForm): metadata = FileField( - validators=[FileAllowed(["db"], "Metadata databases only"), FileRequired()] + "Metadata file", + validators=[FileAllowed(["db"], "Metadata databases only"), FileRequired()], ) title = RadioField("title", choices=[("side a", "side a"), ("side b", "side b")]) + author = RadioField("author", choices=[("side a", "side a"), ("side b", "side b")]) + tags = RadioField("tags", choices=[("side a", "side a"), ("side b", "side b")]) + comments = RadioField( + "comments", choices=[("side a", "side a"), ("side b", "side b")] + ) + timestamp = RadioField( + "timestamp", choices=[("side a", "side a"), ("side b", "side b")] + ) @app.route("/") diff --git a/templates/index.html b/templates/index.html index 36a9d56..9c7722d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,9 +9,24 @@