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 of presentation (max. 1800 characters)'),
- widget=forms.Textarea, max_length=1800, 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 of presentation (max. 1800 characters)'),
+ # widget=forms.Textarea, max_length=1800, required=False)
agree_data = forms.BooleanField(
label=_('Permission for data processing'),
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.')
def __init__(self, *args, **kwargs):
super(RegistrationForm, self).__init__(*args, **kwargs)
self.limit_reached = Contact.objects.all().count() >= settings.REGISTRATION_LIMIT
- if self.limit_reached:
- for field in ('title', 'summary'):
- self.fields[field].required = True
+ # if self.limit_reached:
+ # for field in ('title', 'summary'):
+ # self.fields[field].required = True
#: templates/contact/register/form.html:8
msgid ""
-"Conference registration limit has been reached.\n"
-"We are now accepting speaker submissions only."
+"Conference registration limit has been reached."
msgstr ""
-"Limit rejestracji uczestników konferencji został osiągnięty.\n"
-"Obecnie przyjmujemy tylko zgłoszenia prezentacji."
+"Limit rejestracji uczestników konferencji został osiągnięty."
#: templates/contact/register/mail_body.txt:2
#: templates/contact/register/mail_subject.txt:1
-{% extends "contact/form.html" %}
-{% load i18n %}
+{% extends "base.html" %}
+{% load i18n chunks %}
-{% block contact_form_description %}
-{{ block.super }}
+{% block "titleextra" %}{{ form.form_title }} :: {% endblock %}
-{% if form.limit_reached %}
-<p class="warning">{% blocktrans %}Conference registration limit has been reached.
-We are now accepting speaker submissions only.{% endblocktrans %}</p>
-{% endif %}
+{% block "body" %}
+
+ <h1>{% block contact_form_title %}{{ form.form_title }}{% endblock %}</h1>
+
+ <div class="form-info">
+ {% block contact_form_description %}
+ {% chunk "contact_form__"|add:form.form_tag %}
+ {% endblock %}
+ </div>
+
+ {% if form.limit_reached %}
+ <div class="warning">
+ {% chunk "contact_form__"|add:form.form_tag|add:"__full" %}
+ </div>
+ {% else %}
+ <form method="POST" action="." enctype="multipart/form-data" class="submit-form">
+ {% csrf_token %}
+ <table>
+ {{ form.as_table }}
+ <tr><td></td><td><button>{% block contact_form_submit %}{{ form.submit_label }}{% endblock %}</button></td></tr>
+ </table>
+ </form>
+ {% endif %}
{% endblock %}