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:
3
disp.py
3
disp.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user