aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/index.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-25 10:03:10 +0300
committerFrederick Muriuki Muriithi2022-04-25 10:03:10 +0300
commit063a9529c49df5f21d83c973f501db09161542cd (patch)
treeb0ee520655ef25d76d5aee5f4f4e015d54878177 /qc_app/templates/index.html
parentb419a43c851336aeb57407c72c0a37271fbb2ebc (diff)
downloadgn-uploader-063a9529c49df5f21d83c973f501db09161542cd.tar.gz
Implement file upload
Diffstat (limited to 'qc_app/templates/index.html')
-rw-r--r--qc_app/templates/index.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/qc_app/templates/index.html b/qc_app/templates/index.html
index ec45605..9a69bc5 100644
--- a/qc_app/templates/index.html
+++ b/qc_app/templates/index.html
@@ -5,7 +5,18 @@
{%block contents%}
<h1 class="heading">upload file</h1>
-<form action="#" method="POST" enctype="multipart/form-data">
+<form action="{{url_for('entry.upload_file')}}"
+ method="POST" enctype="multipart/form-data">
+ {%with messages = get_flashed_messages(with_categories=True) %}
+ {%if messages %}
+ <div class="alerts">
+ {%for category, message in messages %}
+ <span class="alert {{category}}">{{message}}</span>
+ {%endfor%}
+ </div>
+ {%endif%}
+ {%endwith%}
+
<fieldset>
<legend>file type</legend>