class EditRoomForm(CreateAddressForm): building = static(TextField("Wohnheim")) level = static(IntegerField("Etage")) number = TextField("Nummer") vo_suchname = TextField("VO Nummer", validators=[Optional()], filters=[empty_to_none]) inhabitable = BooleanField("Bewohnbar", validators=[Optional()]) _order = ('building', 'level', 'number', 'vo_suchname', 'inhabitable', *iter_prefixed_field_names(CreateAddressForm, 'address_'))
class PatchPortForm(SelectRoomForm): name = TextField(label="Name", validators=[DataRequired()], filters=[to_uppercase]) switch_room = static(TextField(label="Switchraum")) _order = ("name", "switch_room")
class BankAccountActivityReadForm(Form): bank_account_name = static(StringField(u"Bankkonto")) amount = disabled(MoneyField(u"Wert")) reference = static(StringField(u"Verwendungszweck")) other_account_number = static(StringField(u"Kontonummer")) other_routing_number = static(StringField(u"Bankleitzahl (BLZ)")) other_name = static(StringField(u"Name")) valid_on = static(DateField(u"Valutadatum")) posted_on = static(DateField(u"Buchungsdatum"))