]> wagnertech.de Git - SVBaL.git/blobdiff - python/eh_util/eh_app/forms.py
pydev-s6
[SVBaL.git] / python / eh_util / eh_app / forms.py
index a67b75f708f3630c6ae5be7839ad5f596a1d6748..b257b848307ab7609a746870d08f6f2189f47674 100644 (file)
@@ -45,6 +45,30 @@ class VorlagenVerwaltungForm(forms.Form):
 class BeitragForm(forms.Form):
     basisbeitrag  = forms.IntegerField()
     zusatzbeitrag = forms.IntegerField(label="Beitrag für Zusatzgrundstück")
+
+class MitgliederForm(forms.Form):
+    mg_auswahl = forms.ChoiceField(
+            choices = (),
+            widget=forms.RadioSelect,
+            label = ""
+        )
+    def __init__(self, *args, zul="", **kwargs):
+        #self.templates = templates
+        super().__init__(*args, **kwargs)
+        self.zulstr = zul
+        self.fields['mg_auswahl'].choices = [("alle","Alle Mitglieder"), ("zul",f"Zuletzt ausgewählte Mitglieder: {zul}")]
+
+class MitgliederAuswahlForm(forms.Form):
+    mg_auswahl = forms.MultipleChoiceField(
+        widget=forms.CheckboxSelectMultiple, 
+        choices=(),
+        label=""
+    )
+    def __init__(self, *args, mitglieder=(), **kwargs):
+        #self.templates = templates
+        super().__init__(*args, **kwargs)
+        self.fields['mg_auswahl'].choices = mitglieder
+
 class KassenbriefForm_alt(forms.Form):
     #briefpapier   = forms.FileField(label='Briefpapier ändern:', required=False)
     template      = forms.ChoiceField(choices=())