From 7344ebefcd5e46852b442fab245edc6a7cbdf83e Mon Sep 17 00:00:00 2001 From: marcsello Date: Sat, 28 Nov 2020 03:34:15 +0100 Subject: [PATCH] added template --- src/templates/upload.html | 32 ++++++++++++++++++++------------ src/views/uploadview.py | 4 ++++ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/templates/upload.html b/src/templates/upload.html index 99fe0c4..fb5a8a2 100644 --- a/src/templates/upload.html +++ b/src/templates/upload.html @@ -1,16 +1,24 @@ {% extends 'base.html' %} {% block content %} -{% if current_user.is_authenticated %} -
-

File Upload

-
-
-

-

-
-
-{% else %} -

Log in to upload an animation.

-{% endif %} + {% if current_user.is_authenticated %} +
+

File Upload

+
+
+
+ + +
+
+ + +
+ +
+
+
+ {% else %} +

Log in to upload an animation.

+ {% endif %} {% endblock %} \ No newline at end of file diff --git a/src/views/uploadview.py b/src/views/uploadview.py index 9c22ab8..4caa130 100644 --- a/src/views/uploadview.py +++ b/src/views/uploadview.py @@ -16,3 +16,7 @@ class UploadView(FlaskView): def index(self): return render_template('upload.html') + + + def post(self): + pass \ No newline at end of file