allow passing of options into display class to remove hardcoding in html template, to support more than one select/drop-down

This commit is contained in:
2025-02-20 15:48:39 +11:00
parent e2351b83f7
commit e67bdb98cd

View File

@@ -22,11 +22,12 @@ class FP_VAR(FP):
dot-notation of fields
"""
def __init__(self, label, varname, display='', cl='col-sm-auto', datevarname=''):
def __init__(self, label, varname, display='', cl='col-sm-auto', datevarname='', opts=None ):
### Var Attributes -- note, simple class, no methods ###
self.label=label
self.varname=varname
self.display=display
self.cl=cl
self.datevarname=datevarname
self.opts=opts
return