starting to add select2 box for batch codes
This commit is contained in:
10
src/HtmlUtils.py
Normal file
10
src/HtmlUtils.py
Normal file
@@ -0,0 +1,10 @@
|
||||
def getBatchcodes(batchCodeTable):
|
||||
return batchCodeTable['Batch'].dropna().unique()
|
||||
|
||||
|
||||
def getBatchcodeOptions(batchcodes):
|
||||
return [_getBatchcodeOption(batchcode) for batchcode in batchcodes]
|
||||
|
||||
|
||||
def _getBatchcodeOption(batchcode):
|
||||
return '<option value="{batchcode}">{batchcode}</option>'.format(batchcode=batchcode)
|
||||
Reference in New Issue
Block a user