From 159af6e8b5afd7c3a407c3354d2400d4264b3841 Mon Sep 17 00:00:00 2001
From: Radek Czajka
Date: Fri, 28 Jun 2013 11:45:22 +0200
Subject: [PATCH] Some old changes
---
prawokultury/contact_forms.py | 18 +++++-----
prawokultury/locale/pl/LC_MESSAGES/django.mo | Bin 3662 -> 3564 bytes
prawokultury/locale/pl/LC_MESSAGES/django.po | 6 ++--
prawokultury/static/css/base.css | 3 +-
prawokultury/static/css/base.scss | 1 +
.../templates/contact/register/form.html | 34 +++++++++++++-----
6 files changed, 40 insertions(+), 22 deletions(-)
mode change 100755 => 100644 prawokultury/templates/contact/register/form.html
diff --git a/prawokultury/contact_forms.py b/prawokultury/contact_forms.py
index e57983d..12d2c48 100644
--- a/prawokultury/contact_forms.py
+++ b/prawokultury/contact_forms.py
@@ -15,12 +15,12 @@ class RegistrationForm(ContactForm):
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.')
@@ -33,6 +33,6 @@ class RegistrationForm(ContactForm):
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
diff --git a/prawokultury/locale/pl/LC_MESSAGES/django.mo b/prawokultury/locale/pl/LC_MESSAGES/django.mo
index b64ebaabe7054a845f78faa8c4203a689d117b9a..c58a18ae4624181fac9da195261c283cf2f83380 100644
GIT binary patch
delta 410
zcmXZWy-Pw-9LDkI-h8{hC6W!AK@d%;Q)N(aiNHljT3SPbmYUkT(O8RU4UG;_4btEe
z4nd1s;Sl`;IW$ycYeRkydf=ST@4Rq+&&$kbrZ(>tBssPe!c{!O4GiEj-r+00c!K8s
z66vWX=I|C{_=Xki;|eZuxPXV4#0%WS8zi@aOfx2#)23)Ntu4!L46IUn-|hz5yUw?7
E2*k864gdfE
delta 508
zcmXZYyNeT17{=juax3|gTy(D!K+$%_9Y#_gAiLY@Ff8q-cS>WRp=^EZ8
z?Gc<5M-n~FXe0-{!_)WykKraJ^FNquoIWUBL>GB{% blocktrans %}Conference registration limit has been reached.
-We are now accepting speaker submissions only.{% endblocktrans %}
-{% endif %}
+{% block "body" %}
+
+ {% block contact_form_title %}{{ form.form_title }}{% endblock %}
+
+
+ {% block contact_form_description %}
+ {% chunk "contact_form__"|add:form.form_tag %}
+ {% endblock %}
+
+
+ {% if form.limit_reached %}
+
+ {% chunk "contact_form__"|add:form.form_tag|add:"__full" %}
+
+ {% else %}
+
+ {% endif %}
{% endblock %}
--
2.20.1