From 43c9d8f3216a00dc699747d5dcec3ad2127ef333 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 31 Jul 2014 10:10:45 +0200 Subject: [PATCH] Require accepting Terms of CopyCamp upon registration --- prawokultury/contact_forms.py | 10 ++++++++++ prawokultury/locale/pl/LC_MESSAGES/django.mo | Bin 5223 -> 5370 bytes prawokultury/locale/pl/LC_MESSAGES/django.po | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/prawokultury/contact_forms.py b/prawokultury/contact_forms.py index d9d4b79..c5dea10 100644 --- a/prawokultury/contact_forms.py +++ b/prawokultury/contact_forms.py @@ -4,6 +4,8 @@ from django import forms from contact.forms import ContactForm from contact.models import Contact from django.utils.translation import ugettext_lazy as _ +from django.utils.safestring import mark_safe +from migdal.models import Entry class RegistrationForm(ContactForm): @@ -38,6 +40,14 @@ class RegistrationForm(ContactForm): super(RegistrationForm, self).__init__(*args, **kwargs) self.started = getattr(settings, 'REGISTRATION_STARTED', False) self.limit_reached = Contact.objects.filter(form_tag=self.save_as_tag).count() >= settings.REGISTRATION_LIMIT + try: + url = Entry.objects.get(slug_pl='regulamin').get_absolute_url() + self.fields['agree_toc'] = forms.BooleanField( + required = True, + label = mark_safe(_('I accept Terms and Conditions of CopyCamp') % url) + ) + except Entry.DoesNotExist: + pass tracks = ( diff --git a/prawokultury/locale/pl/LC_MESSAGES/django.mo b/prawokultury/locale/pl/LC_MESSAGES/django.mo index 3e9a1af39721c99b771584de66c969a5a502d604..a90f7e38b8774695432edffdf02bb45b58a35549 100644 GIT binary patch delta 1063 zcmY+@T}YEr9LMovTg#?tzGQFKo>rEt=6XR#%fuK(5Jp7MO;OWLTeX+mmITJKgrJ*V zAkd2-i6FuYVK;$9LAGnbn+PgMu%L^G=%y~}`+M4i{&4m=&$DOe{LlaY>~rfcU;abA z^MN6JjAll(!kGOyxr7g5%wfzj9LGwWz}xr?S7N)w1t!WYPWqd16m|U+z4#h8-~uX9C&%(&6{_SrP$vwd zp6f*=bRCO0g#$Q5y@&84e!)}pFF(tqyUv(StfMjN>9LY$QLRa%PBe_#;666u6#DTE z>bW1N1pgp=7#9t1!zR>ohmbRv3@Y)F2I@b?WSkqvaSy8o@g{D?X=E+)302CUNG0uL zEG)gFriHm)UM;E?m4jEuZrvv2jCN2AI|;SG?!Qi?X!^(EXDc)EvO`HIAtkYmp>orH z`;=g|Fw`=&MLkxib>+}MNR?5Q%Ar;_D(iBrXQJ{ed<;h+;W$$f?CXoAvsP!sIzJfe zKj3Z2c)L!<1``=8l8jp6R5BXR##70RmFnjzeKj0Oq&owVuE#~E%N_LZ-EHmK7i#Y) m%({CVfrA&dSnk5i`2P!@hz;Z}MH2Dk;u1NnQE09?>iP@VD|ZF} delta 931 zcmY+?O-NKx7{>8;oSCbQ&G<2Wm^qWPatZmFf-MA4PwGagpoK`K| z1+xgmMG%xA&L+^MRErkvTp0rint`;AB>&H)f)1SfJNI%p_dU-!KW`l+SH9E+UKlM& zZ=h#=W*K~0#)Fpgo0a1%R^TE&$5pJxaKP*`#_=k4VLgug`96gX@5>m)XIP5`tTJ1% zHw-HIu!HaM1K!8ApxGqu<5%oum3J7Ynr?kZrdoum!WhMin7|08Fphnwg0k3%3#fSo zbojr$Vn8MK7G2!M6rNxRuU(*H3oc_n4&W|!;2E}~%VZ_-2vt}Pzmw(@tmA!xzp|t) z;VR~_p8uOe`OTO>RXT)CIF2#QqaxhE8~7R(^+(hWOQ?CjQ3=M_{uCbK0*&D%z5vJ$G` zQ!JpvMREj^DdjDqJb)mg~MKQKhG& xP12Rr6}pbl24`}M_vRj3al`-6S9F8Ff}t)qoo?*B-J8i2?^KTZi(8Rl=N!dtQC|Q6 diff --git a/prawokultury/locale/pl/LC_MESSAGES/django.po b/prawokultury/locale/pl/LC_MESSAGES/django.po index 6f4a560..84cd5b6 100644 --- a/prawokultury/locale/pl/LC_MESSAGES/django.po +++ b/prawokultury/locale/pl/LC_MESSAGES/django.po @@ -71,6 +71,11 @@ msgstr "" "licencji CC BY-SA oraz rozpowszechnianie wizerunku." +#: contact_forms.py:48 +#, python-format +msgid "I accept Terms and Conditions of CopyCamp" +msgstr "Akceptuję Regulamin CopyCampu" + #: contact_forms.py:44 msgid "CopyArt" msgstr "Prawo autorskie i sztuka" -- 2.20.1