change form
[prawokultury.git] / prawokultury / contact_forms.py
1 # -*- coding: utf-8 -*-
2 from django import forms
3 from contact.forms import ContactForm
4 from django.utils.translation import ugettext_lazy as _
5
6
7 class RegistrationForm(ContactForm):
8     form_tag = 'register'
9     form_title = _('Take part!')
10
11     name = forms.CharField(label=_('Name'), max_length=128)
12     contact = forms.EmailField(label=_('E-mail'), max_length=128)
13     organization = forms.CharField(label=_('Organization'), 
14             max_length=256, required=False)
15     title = forms.CharField(label=_('Title of presentation'), 
16             max_length=256, required=False)
17     presentation = forms.FileField(label=_('Presentation'),
18             required=False)
19     summary = forms.CharField(label=_('Summary of presentation (max. 1800 characters)'),
20             widget=forms.Textarea, max_length=1800, required=False)
21     agree_data = forms.BooleanField(
22         label=_('Permission for data processing'),
23         help_text=_(u'I hereby grant Modern Poland Foundation (Fundacja Nowoczesna Polska, ul. MarszaƂkowska 84/92, 00-514 Warszawa) permission to process my personal data (name, e-mail address) for purposes of registration for CopyCamp conference.')
24     )
25     agree_license = forms.BooleanField(
26         label=_('Permission for publication'),
27         help_text=_('I agree to having materials recorded during the conference released under the terms of <a href="http://creativecommons.org/licenses/by-sa/3.0/deed">CC BY-SA</a> license.')
28     )