]> wagnertech.de Git - SVBaL.git/blobdiff - python/eh_util/eh_app/forms.py
pydev-s6git
[SVBaL.git] / python / eh_util / eh_app / forms.py
index cc438ab9e0b71e1172b7316b3f5a4bd92a52765a..0b71c693e90190669dec985f642fcf626bc09195 100644 (file)
@@ -16,6 +16,7 @@ class TextInputForm(forms.Form):
         widget=forms.Textarea,
     )
 '''
+from django.db.models.fields import BooleanField
 '''
 - Doku zu Forms:
 https://docs.djangoproject.com/en/2.2/topics/forms/
@@ -23,6 +24,36 @@ https://docs.djangoproject.com/en/2.2/topics/forms/
 https://docs.djangoproject.com/en/2.2/ref/forms/fields/
 '''
 class KassenbriefForm(forms.Form):
-    briefpapier   = forms.FileField(label='Briefpapier ändern:', required=False)
+    #briefpapier   = forms.FileField(label='Briefpapier ändern:', required=False)
+    template      = forms.ChoiceField(choices=[('AB', 'ab'),('BC','bc')])
     basisbeitrag  = forms.IntegerField()
     zusatzbeitrag = forms.IntegerField(label="Beitrag für Zusatzgrundstück")
+    def __init__(self, *args, templates=[('AB', 'ab'),('BC','bc')], **kwargs):
+        self.templates = templates
+        KassenbriefForm.template      = forms.ChoiceField(choices=templates)
+        super().__init__(*args, **kwargs)
+
+class EhmeldungForm(forms.Form):
+    VorZuname = forms.CharField(
+        label = "Vor- und Zuname",)
+    VorZunamePartner = forms.CharField(
+        label = "Vor- und Zuname Partner",
+        required=False)
+    Wohnanschrift = forms.CharField(label = "Wohnanschrift (Str, PLZ, Ort)")
+    Telefon = forms.CharField(
+        label = "Telefon",
+        required=False)
+    Email = forms.CharField(
+        label = "E-Mail",
+        required=False)
+    Geburtsdatum = forms.CharField(
+        label = "Geburtsdatum",
+        required=False)
+    VersichertesObjekt = forms.CharField(
+        label = "Versichertes Objekt",
+        required=False)
+    AnzahlWohnungen = forms.IntegerField(initial=1, label="Anzahl Wonungen")
+    Selbstgenutzt = forms.BooleanField(label="Selbstgenutzt", required=False)
+    Eigentumswohnung = forms.BooleanField(label="Eigentumswohnung", required=False)
+    Gewerblich = forms.BooleanField(label="(teilw.) gewerblich genutzt", required=False)
+    
\ No newline at end of file