minor changes
[edumed.git] / edumed / contact_forms.py
index 7286509..9ea2c03 100644 (file)
@@ -14,6 +14,16 @@ class RegistrationForm(ContactForm):
     tresc = forms.CharField(label=u'Treść', widget=forms.Textarea, max_length=1800)
 
 
+class CooperateForm(ContactForm):
+    form_tag = 'wspolpraca'
+    form_title = u"Bądź z nami w kontakcie"
+    admin_list = ['podpis', 'contact']
+
+    contact = forms.EmailField(label=u'E-mail', max_length=128)
+    podpis = forms.CharField(label=u'Podpis', max_length=128)
+    uwagi = forms.CharField(label=u'Uwagi', widget=forms.Textarea, max_length=1800, required=False)
+
+
 class ContestForm(ContactForm):
     form_tag = 'konkurs'
     form_title = u"Zgłoś się do konkursu"
@@ -34,7 +44,8 @@ class ContestForm(ContactForm):
     nieprzydatne = forms.CharField(label=u'Co w materiałach okazało się nieprzydatne w przygotowaniu i prowadzeniu lekcji?', 
             widget=forms.Textarea, max_length=2000)
     poprawic = forms.CharField(label=u'Jak możemy poprawić serwis edukacjamedialna.edu.pl?', 
-            widget=forms.Textarea, max_length=2000)
+            widget=forms.Textarea, max_length=2000,
+            required=False)
     inne = forms.CharField(label=u'Inne uwagi i komentarze', 
             widget=forms.Textarea, max_length=2000,
             required=False)