]> wagnertech.de Git - SVBaL.git/blob - python/eh_util/eh_app/forms.py
pydev-s6git
[SVBaL.git] / python / eh_util / eh_app / forms.py
1 from django import forms
2 '''
3 class UploadFileForm(forms.Form):
4     file1 = forms.FileField(label='S-Verein-Export')
5     
6 class DocumentForm(forms.Form):
7     docfile = forms.FileField(
8         label='Select a file',
9         help_text='max. 42 megabytes'
10     )
11
12 class TextInputForm(forms.Form):
13     text = forms.CharField(
14         label = "Text für das Anschreiben",
15         empty_value = "Bitte Text eingeben ...",
16         widget=forms.Textarea,
17     )
18 '''
19 from django.db.models.fields import BooleanField
20 '''
21 - Doku zu Forms:
22 https://docs.djangoproject.com/en/2.2/topics/forms/
23 - Doku zu Fields:
24 https://docs.djangoproject.com/en/2.2/ref/forms/fields/
25 '''
26 class KassenbriefForm(forms.Form):
27     briefpapier   = forms.FileField(label='Briefpapier ändern:', required=False)
28     basisbeitrag  = forms.IntegerField()
29     zusatzbeitrag = forms.IntegerField(label="Beitrag für Zusatzgrundstück")
30
31 class EhmeldungForm(forms.Form):
32     VorZuname = forms.CharField(
33         label = "Vor- und Zuname",)
34     VorZunamePartner = forms.CharField(
35         label = "Vor- und Zuname Partner",
36         required=False)
37     Wohnanschrift = forms.CharField(label = "Wohnanschrift (Str, PLZ, Ort)")
38     Telefon = forms.CharField(
39         label = "Telefon",
40         required=False)
41     Email = forms.CharField(
42         label = "E-Mail",
43         required=False)
44     Geburtsdatum = forms.CharField(
45         label = "Geburtsdatum",
46         required=False)
47     VersichertesObjekt = forms.CharField(
48         label = "Versichertes Objekt",
49         required=False)
50     AnzahlWohnungen = forms.IntegerField(initial=1, label="Anzahl Wonungen")
51     Selbstgenutzt = forms.BooleanField(label="Selbstgenutzt", required=False)
52     Eigentumswohnung = forms.BooleanField(label="Eigentumswohnung", required=False)
53     Gewerblich = forms.BooleanField(label="(teilw.) gewerblich genutzt", required=False)
54