From web-commits at pardus.org.tr Fri Feb 19 16:53:50 2010 From: web-commits at pardus.org.tr (=?utf-8?q?Renan_=C3=87ak=C4=B1rerk?=) Date: Fri, 19 Feb 2010 16:53:50 +0200 (EET) Subject: [Web-commits] trunk/web/chiq - add: Atolye Kayit Formu Message-ID: <20100219145350.9030A49C969@ns1.pardus.org.tr> Author: renan.cakirerk Date: Fri Feb 19 16:53:50 2010 New Revision: 22720 Added: trunk/web/chiq/atolye/ trunk/web/chiq/atolye/__init__.py trunk/web/chiq/atolye/models.py trunk/web/chiq/atolye/views.py trunk/web/chiq/templates/atolye.html trunk/web/chiq/templates/atolye_tesekkurler.html Modified: trunk/web/chiq/settings.py trunk/web/chiq/urls.py Log: add: Atolye Kayit Formu --- atolye/models.py | 30 +++++++ atolye/views.py | 104 ++++++++++++++++++++++++++ settings.py | 5 - templates/atolye.html | 147 ++++++++++++++++++++++++++++++++++++++ templates/atolye_tesekkurler.html | 128 +++++++++++++++++++++++++++++++++ urls.py | 2 6 files changed, 414 insertions(+), 2 deletions(-) Modified: trunk/web/chiq/settings.py ================================================================= --- trunk/web/chiq/settings.py (original) +++ trunk/web/chiq/settings.py Fri Feb 19 16:53:50 2010 @@ -16,13 +16,13 @@ TESTING = True TEMPLATE_DEBUG = DEBUG WEB_URL = 'http://localhost/chiq' -DOCUMENT_ROOT = '/home/eren/sourcebox/chiq' +DOCUMENT_ROOT = '/home/rcakirerk/workspace/svn.pardus.org.tr/chiq' DATABASE_ENGINE = 'mysql' #DATABASE_ENGINE = "mysql" DATABASE_NAME = 'chiq' DATABASE_USER = 'root' -DATABASE_PASSWORD = '' +DATABASE_PASSWORD = '12345' DATABASE_HOST = 'localhost' DATABASE_PORT = '' @@ -84,4 +84,5 @@ 'chiq.basin', 'chiq.kurulum', 'chiq.captcha', + 'chiq.atolye', ) Modified: trunk/web/chiq/urls.py ================================================================= --- trunk/web/chiq/urls.py (original) +++ trunk/web/chiq/urls.py Fri Feb 19 16:53:50 2010 @@ -47,4 +47,6 @@ (r'^admin/(.*)', admin.site.root), (r'^media/(.*)$', 'django.views.static.serve', {'document_root': '%s/media' % DOCUMENT_ROOT, 'show_indexes': True}), (r'^banner/(.*)$', 'django.views.static.serve', {'document_root': '%s/media/banner' % DOCUMENT_ROOT, 'show_indexes': True}), + (r'^atolye/$', 'chiq.atolye.views.showForm'), + (r'^atolye/ok$', 'chiq.atolye.views.showThanks'), ) From web-commits at pardus.org.tr Sat Feb 20 13:10:40 2010 From: web-commits at pardus.org.tr (=?utf-8?q?Renan_=C3=87ak=C4=B1rerk?=) Date: Sat, 20 Feb 2010 13:10:40 +0200 (EET) Subject: [Web-commits] trunk/web/chiq/templates - correct li Message-ID: <20100220111040.C7FC249C911@ns1.pardus.org.tr> Author: renan.cakirerk Date: Sat Feb 20 13:10:40 2010 New Revision: 22721 Modified: trunk/web/chiq/templates/atolye.html Log: correct li --- atolye.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: trunk/web/chiq/templates/atolye.html ================================================================= --- trunk/web/chiq/templates/atolye.html (original) +++ trunk/web/chiq/templates/atolye.html Sat Feb 20 13:10:40 2010 @@ -46,7 +46,7 @@ list-style: none; margin-right:10px; float:left; - width:90px; + width:120px; } .form ul{ From web-commits at pardus.org.tr Sat Feb 20 13:13:00 2010 From: web-commits at pardus.org.tr (=?utf-8?q?Renan_=C3=87ak=C4=B1rerk?=) Date: Sat, 20 Feb 2010 13:13:00 +0200 (EET) Subject: [Web-commits] trunk/web/chiq/templates - correct li Message-ID: <20100220111300.6DC6A49C911@ns1.pardus.org.tr> Author: renan.cakirerk Date: Sat Feb 20 13:13:00 2010 New Revision: 22722 Modified: trunk/web/chiq/templates/atolye.html Log: correct li --- atolye.html | 1 - 1 file changed, 1 deletion(-) Modified: trunk/web/chiq/templates/atolye.html ================================================================= --- trunk/web/chiq/templates/atolye.html (original) +++ trunk/web/chiq/templates/atolye.html Sat Feb 20 13:13:00 2010 @@ -46,7 +46,6 @@ list-style: none; margin-right:10px; float:left; - width:120px; } .form ul{ From web-commits at pardus.org.tr Sat Feb 20 13:15:04 2010 From: web-commits at pardus.org.tr (=?utf-8?q?Taner_Ta=C5=9F?=) Date: Sat, 20 Feb 2010 13:15:04 +0200 (EET) Subject: [Web-commits] trunk/web/chiq/templates - Only effect input texts Message-ID: <20100220111504.56AB549C911@ns1.pardus.org.tr> Author: taner Date: Sat Feb 20 13:15:03 2010 New Revision: 22723 Modified: trunk/web/chiq/templates/atolye.html Log: Only effect input texts --- atolye.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Modified: trunk/web/chiq/templates/atolye.html ================================================================= --- trunk/web/chiq/templates/atolye.html (original) +++ trunk/web/chiq/templates/atolye.html Sat Feb 20 13:15:03 2010 @@ -36,8 +36,7 @@ vertical-align: middle; } - -input, textarea { +input[type='text'], textarea { width: 250px; border:1px solid #bbbbbb; } From web-commits at pardus.org.tr Mon Feb 22 10:28:03 2010 From: web-commits at pardus.org.tr (=?utf-8?q?Renan_=C3=87ak=C4=B1rerk?=) Date: Mon, 22 Feb 2010 10:28:03 +0200 (EET) Subject: [Web-commits] trunk/web/chiq/atolye - add date option Message-ID: <20100222082803.E625849C863@ns1.pardus.org.tr> Author: renan.cakirerk Date: Mon Feb 22 10:28:03 2010 New Revision: 22724 Modified: trunk/web/chiq/atolye/views.py Log: add date option --- views.py | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) Modified: trunk/web/chiq/atolye/views.py ================================================================= --- trunk/web/chiq/atolye/views.py (original) +++ trunk/web/chiq/atolye/views.py Mon Feb 22 10:28:03 2010 @@ -15,6 +15,9 @@ CHOICES = ( (u'Yes', u'Evet'), (u'No', u'Hayır')) +DATES = ( (u'Cumartesi', u'Cumartesi 12:00 - 13:20'), + (u'Pazar', u'Pazar 11:15 - 12:45')) + PROGRAMMING_LANGUAGES = ( (u'Python', u'Python'), (u'C', u'C'), (u'C++', u'C++'), @@ -47,6 +50,7 @@ is_using_pardus = forms.ChoiceField(CHOICES, label = "Öntanımlı işletim sisteminiz Pardus mu?") projects_done = forms.CharField(label = "Projeleriniz", widget=forms.Textarea, max_length=200, required=False) using_linux_since = forms.CharField(label = "Ne zamandır Linux kullanıyorsunuz?", max_length=50, widget = forms.TextInput, required=False) + date = forms.ChoiceField(label="Tercih ettiğiniz atölye tarihi", choices=DATES) comments = forms.CharField(label="Görüş ve Açıklamalar", max_length = 200, widget=forms.Textarea, required=False) captcha = CaptchaField(label="Doğrulama Sorusu") @@ -68,27 +72,29 @@ is_using_pardus = form.cleaned_data['is_using_pardus'] projects_done = form.cleaned_data['projects_done'] using_linux_since = form.cleaned_data['using_linux_since'] + date = form.cleaned_data['date'] comments = form.cleaned_data['comments'] recipients = ['gokcen at pardus.org.tr'] message = """ -Ad: %s -Soyad: %s -Eposta: %s -Jabber: %s -Websitesi: %s -Okul: %s -Bolum: %s -Programlama Dilleri: %s -Diger Programlama Dilleri: %s -Pardus Kullanicisi: %s -Projeler: %s -Ne zamandir Pardus kullaniyor: %s -Gorusler: %s +Ad : %s +Soyad : %s +Eposta : %s +Jabber : %s +Websitesi : %s +Okul : %s +Bolum : %s +Programlama Dilleri : %s +Diger Programlama Dilleri : %s +Pardus Kullanicisi : %s +Projeler : %s +Ne zamandir Pardus kullaniyor : %s +Tercih edilen tarihi : %s +Gorusler : %s """ - message = message % (name, surname, email, jabber, website, school, department, programming_languages_and_frameworks, other_programming_languages, is_using_pardus, projects_done, using_linux_since, comments) + message = message % (name, surname, email, jabber, website, school, department, programming_languages_and_frameworks, other_programming_languages, is_using_pardus, projects_done, using_linux_since, date, comments) from django.core.mail import send_mail send_mail("BİLMÖK ATÖLYE KAYIT: " + name + " " + surname, message, email, recipients) From web-commits at pardus.org.tr Mon Feb 22 10:42:34 2010 From: web-commits at pardus.org.tr (=?utf-8?q?Renan_=C3=87ak=C4=B1rerk?=) Date: Mon, 22 Feb 2010 10:42:34 +0200 (EET) Subject: [Web-commits] trunk/web/chiq/atolye - test if email is working Message-ID: <20100222084234.BE3EE49C863@ns1.pardus.org.tr> Author: renan.cakirerk Date: Mon Feb 22 10:42:34 2010 New Revision: 22725 Modified: trunk/web/chiq/atolye/views.py Log: test if email is working --- views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Modified: trunk/web/chiq/atolye/views.py ================================================================= --- trunk/web/chiq/atolye/views.py (original) +++ trunk/web/chiq/atolye/views.py Mon Feb 22 10:42:34 2010 @@ -51,8 +51,8 @@ projects_done = forms.CharField(label = "Projeleriniz", widget=forms.Textarea, max_length=200, required=False) using_linux_since = forms.CharField(label = "Ne zamandır Linux kullanıyorsunuz?", max_length=50, widget = forms.TextInput, required=False) date = forms.ChoiceField(label="Tercih ettiğiniz atölye tarihi", choices=DATES) - comments = forms.CharField(label="Görüş ve Açıklamalar", max_length = 200, widget=forms.Textarea, required=False) - captcha = CaptchaField(label="Doğrulama Sorusu") + comments = forms.CharField(label="Açıklamalar", max_length = 200, widget=forms.Textarea, required=False) + captcha = CaptchaField(label="Doğrulama Metni") def showForm(request): @@ -75,7 +75,7 @@ date = form.cleaned_data['date'] comments = form.cleaned_data['comments'] - recipients = ['gokcen at pardus.org.tr'] + recipients = ['gokcen at pardus.org.tr', 'renan at pardus.org.tr'] message = """ Ad : %s