about summary refs log tree commit diff
path: root/qc_app/templates/index.html
diff options
context:
space:
mode:
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>