From 430a91f64600f346fe88a722d1889a7a3f8e44e7 Mon Sep 17 00:00:00 2001 From: wseis Date: Mon, 29 Apr 2024 13:04:13 +0200 Subject: [PATCH] add lrv table --- tools/qmratool/static/qmratool/css/styles.css | 11 +++++++ tools/qmratool/static/qmratool/option.js | 32 ++++++++++++++++--- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/tools/qmratool/static/qmratool/css/styles.css b/tools/qmratool/static/qmratool/css/styles.css index de1f8fe..951eebb 100644 --- a/tools/qmratool/static/qmratool/css/styles.css +++ b/tools/qmratool/static/qmratool/css/styles.css @@ -171,3 +171,14 @@ footer { border-color: #8081F1; } + + /* Custom CSS for table cell content centering */ +.table th, .table td { + text-align: center; /* Center align table cell content */ + vertical-align: middle; /* Center vertically */ + } + /* Custom background color for the table header */ + .custom-header { + background-color: transparent !important; /* Green background, change as needed */ + color: black; /* White text color */ + } \ No newline at end of file diff --git a/tools/qmratool/static/qmratool/option.js b/tools/qmratool/static/qmratool/option.js index abdc173..3515a9d 100644 --- a/tools/qmratool/static/qmratool/option.js +++ b/tools/qmratool/static/qmratool/option.js @@ -78,10 +78,34 @@ document.addEventListener('DOMContentLoaded', function() { return `${titleCaseDataName}
${data.description}
Events per year [N]: ${data.events_per_year}
Volume per event [L]: ${data.volume_per_event}`; } else if (fieldName === 'treatment') { return `${titleCaseDataName}
${data.description}
- Virus removal: ${data.virus_min}-${data.virus_max}
- Bacteria removal:: ${data.bacteria_min}-${data.bacteria_max}
- Protozoa removal:: ${data.protozoa_min}-${data.protozoa_max}`; - + + + + + + + + + + + + + + + + + + + + + + + + + + +
Pathogen GroupMinimum LRVMaximum LRV
Viruses${data.virus_min}${data.virus_max}
Bacteria${data.bacteria_min}${data.bacteria_max}
Protozoa${data.protozoa_min}${data.protozoa_min}
` + } else { return `${titleCaseDataName}
${data.description}`;