|
@ -1,5 +1,5 @@ |
|
|
from django.db import models |
|
|
from django.db import models |
|
|
from django.forms import ModelForm, DateField, ChoiceField, RadioSelect |
|
|
|
|
|
|
|
|
from django.forms import ModelForm, DateField, ChoiceField, RadioSelect, BooleanField |
|
|
from django.contrib.admin.widgets import AdminDateWidget |
|
|
from django.contrib.admin.widgets import AdminDateWidget |
|
|
|
|
|
|
|
|
from .models import Project, Volunteer, IFG, Library, TYPE_CHOICES |
|
|
from .models import Project, Volunteer, IFG, Library, TYPE_CHOICES |
|
@ -18,6 +18,8 @@ class VolunteerForm(ModelForm): |
|
|
choice = ChoiceField(choices=TYPE_CHOICES, widget=RadioSelect, |
|
|
choice = ChoiceField(choices=TYPE_CHOICES, widget=RadioSelect, |
|
|
label='Was möchtest Du beantragen?') |
|
|
label='Was möchtest Du beantragen?') |
|
|
|
|
|
|
|
|
|
|
|
check = BooleanField(required=True, label='Ich stimme den Datenschutzbestimmungen und den Förderrichtlinen zu') |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
model = Volunteer |
|
|
model = Volunteer |
|
|
exclude = ('granted',) |
|
|
exclude = ('granted',) |
|
|