continuing to update UI
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
|
||||
<title>Safety Signals for COVID Batches</title>
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- <script async="" src="https://www.googletagmanager.com/gtag/js?id=G-ERHYDH4P64"></script>
|
||||
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-ERHYDH4P64"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-ERHYDH4P64');
|
||||
</script> -->
|
||||
</script>
|
||||
<!-- Bootstrap -->
|
||||
<link href="../gentelella/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
|
||||
@@ -13286,7 +13286,7 @@
|
||||
<div style="margin-bottom: 20px;">
|
||||
<label>Select Batch:</label>
|
||||
<select id="vaccineSelect" name="vaccine">
|
||||
<option disabled="" hidden="" selected="" value="">Select Vaccine</option>
|
||||
<option disabled="" hidden="" selected="" value="">Select Batch</option>
|
||||
<option value="001A21A">001A21A</option>
|
||||
<option value="001B21A">001B21A</option>
|
||||
<option value="001C21A">001C21A</option>
|
||||
|
||||
@@ -6,7 +6,7 @@ class PrrBySymptomTableView {
|
||||
this.#delegate = new PrrByKeyTableView(
|
||||
this.#createPrrBySymptomTable(prrBySymptomTableElement),
|
||||
downloadPrrBySymptomTableButton,
|
||||
'Vaccine',
|
||||
'Batch',
|
||||
PrrByVaccineProvider.getPrrBySymptom);
|
||||
}
|
||||
|
||||
|
||||
@@ -630,7 +630,8 @@
|
||||
"updateHtmlFile(\n",
|
||||
" symptoms = list(prrByLotAndSymptom.columns),\n",
|
||||
" vaccines = list(prrByLotAndSymptom.index),\n",
|
||||
" htmlFile = \"../docs/SymptomsCausedByCOVIDLots/index.html\")"
|
||||
" htmlFile = \"../docs/SymptomsCausedByCOVIDLots/index.html\",\n",
|
||||
" defaultSelectVaccineOptionText = 'Select Batch')"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -5,14 +5,14 @@ from SymptomsCausedByVaccines.HtmlUtils import getSymptomOptions, getVaccineOpti
|
||||
from SymptomsCausedByVaccines.OptionsSetter import OptionsSetter
|
||||
|
||||
|
||||
def updateHtmlFile(symptoms, vaccines, htmlFile):
|
||||
def updateHtmlFile(symptoms, vaccines, htmlFile, defaultSelectVaccineOptionText = 'Select Vaccine'):
|
||||
_saveOptions(
|
||||
options = getSymptomOptions(symptoms),
|
||||
htmlFile = htmlFile,
|
||||
selectElementId = 'symptomSelect')
|
||||
|
||||
_saveOptions(
|
||||
options = getVaccineOptions(vaccines),
|
||||
options = getVaccineOptions(vaccines, defaultSelectVaccineOptionText),
|
||||
htmlFile = htmlFile,
|
||||
selectElementId = 'vaccineSelect')
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
def getVaccineOptions(vaccines):
|
||||
return _getOptionsWithDefaultOption(defaultOptionText = 'Select Vaccine', values = vaccines)
|
||||
def getVaccineOptions(vaccines, defaultOptionText):
|
||||
return _getOptionsWithDefaultOption(defaultOptionText = defaultOptionText, values = vaccines)
|
||||
|
||||
|
||||
def getSymptomOptions(symptoms):
|
||||
|
||||
Reference in New Issue
Block a user