diff options
author | Frederick Muriuki Muriithi | 2022-04-25 10:03:10 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-25 10:03:10 +0300 |
commit | 063a9529c49df5f21d83c973f501db09161542cd (patch) | |
tree | b0ee520655ef25d76d5aee5f4f4e015d54878177 /qc_app/templates | |
parent | b419a43c851336aeb57407c72c0a37271fbb2ebc (diff) | |
download | gn-uploader-063a9529c49df5f21d83c973f501db09161542cd.tar.gz |
Implement file upload
Diffstat (limited to 'qc_app/templates')
-rw-r--r-- | qc_app/templates/index.html | 13 |
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> |