testweise Status mit SelectOne widget

This commit is contained in:
David Kilias 2020-03-26 08:51:14 +01:00
parent 51e2319781
commit cfa7479781

View file

@ -7,7 +7,7 @@ class membership_data_model():
def add_edit_fields(self, parent_form): def add_edit_fields(self, parent_form):
mem = self.membership_data_dict mem = self.membership_data_dict
self.forms['status'] = parent_form.add(npyscreen.TitleText, name="Status: ", value=mem['status']) self.forms['status'] = parent_form.add(npyscreen.TitleSelectOne, name="Status: ", values=['V', 'E', 'F'], value=0, max_height=2, scroll_exit=True)
self.forms['von'] = parent_form.add(npyscreen.TitleText, name="Von: ", value=mem['von']) self.forms['von'] = parent_form.add(npyscreen.TitleText, name="Von: ", value=mem['von'])
self.forms['bis'] = parent_form.add(npyscreen.TitleText, name="Bis: ", value=mem['bis']) self.forms['bis'] = parent_form.add(npyscreen.TitleText, name="Bis: ", value=mem['bis'])
self.forms['mitgliedsbeitrag'] = parent_form.add(npyscreen.TitleText, name="Mitgliedsbeitrag: ", self.forms['mitgliedsbeitrag'] = parent_form.add(npyscreen.TitleText, name="Mitgliedsbeitrag: ",