X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/a55d79e4c27c893841712145e38d4a4a61e04b20..3a2c054cbdd823dc9df5cd33a9cfba622a7d630c:/prawokultury/contact_forms.py diff --git a/prawokultury/contact_forms.py b/prawokultury/contact_forms.py old mode 100755 new mode 100644 index 4fbdd9c..d440902 --- a/prawokultury/contact_forms.py +++ b/prawokultury/contact_forms.py @@ -5,7 +5,15 @@ from django.utils.translation import ugettext_lazy as _ class RegistrationForm(ContactForm): form_tag = 'register' + form_title = _('Registration form') + name = forms.CharField(label=_('Name'), max_length=128) - organization = forms.CharField(label=_('Organization'), max_length=128) - summary = forms.CharField(label=_('Summary'), widget=forms.Textarea) - presentation = forms.FileField(label=_('Presentation')) + contact = forms.EmailField(label=_('E-mail'), max_length=128) + organization = forms.CharField(label=_('Organization'), + max_length=256, required=False) + title = forms.CharField(label=_('Title of presentation'), + max_length=256, required=False) + presentation = forms.FileField(label=_('Presentation'), + required=False) + summary = forms.CharField(label=_('Summary'), + widget=forms.Textarea, required=False)