remove the label attribute from the checkboxes

This commit is contained in:
Jakob Ketterl
2021-02-22 00:57:02 +01:00
parent 770fd749cd
commit 9beb3b9168
9 changed files with 16 additions and 27 deletions

View File

@ -139,8 +139,8 @@ class TextAreaInput(Input):
class CheckboxInput(Input):
def __init__(self, id, label, checkboxText, infotext=None, converter: Converter = None):
super().__init__(id, label, infotext=infotext, converter=converter)
def __init__(self, id, checkboxText, infotext=None, converter: Converter = None):
super().__init__(id, "", infotext=infotext, converter=converter)
self.checkboxText = checkboxText
def render_input(self, value):

View File

@ -124,7 +124,7 @@ class GainInput(Input):
class BiasTeeInput(CheckboxInput):
def __init__(self):
super().__init__(
"bias_tee", "", "Enable Bias-Tee power supply", converter=OptionalConverter(defaultFormValue=False)
"bias_tee", "Enable Bias-Tee power supply", converter=OptionalConverter(defaultFormValue=False)
)