implement profile editing page

This commit is contained in:
Jakob Ketterl
2021-02-23 18:32:23 +01:00
parent ed258cc9a0
commit c5df6a1527
11 changed files with 120 additions and 16 deletions

View File

@ -313,3 +313,9 @@ class DropdownInput(Input):
class DropdownEnum(Enum):
def toOption(self):
return Option(self.name, str(self))
class ModesInput(DropdownInput):
def __init__(self, id, label):
options = [Option(m.modulation, m.name) for m in Modes.getAvailableModes()]
super().__init__(id, label, options)