From e9e3b1efc33b35280464ba2f40d96fdd6560e3c1 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 14 Feb 2024 10:56:08 +0300 Subject: Extract upload progress indication code * Extract the UI elements and code for indicating upload progress into separate, reusable "modules". * Fix bugs arising from changes. --- qc_app/templates/index.html | 50 +++++++++++----------- .../rqtl2/upload-rqtl2-bundle-step-01.html | 28 +++++++++++- qc_app/templates/upload_progress_indicator.html | 16 +++++++ 3 files changed, 66 insertions(+), 28 deletions(-) create mode 100644 qc_app/templates/upload_progress_indicator.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/index.html b/qc_app/templates/index.html index b9638d2..588133a 100644 --- a/qc_app/templates/index.html +++ b/qc_app/templates/index.html @@ -1,5 +1,6 @@ {%extends "base.html"%} -{%from "flash_messages.html" import flash_all_messages%} +{%from "flash_messages.html" import flash_messages%} +{%from "upload_progress_indicator.html" import upload_progress_indicator%} {%block title%}Data Upload{%endblock%} @@ -54,17 +55,11 @@
-the-file
- -Uploading 0%
-Processing
- -the-file
+ +Uploading 0%
+Processing
+ +