From: Radek Czajka Date: Mon, 14 Jan 2013 15:20:01 +0000 (+0100) Subject: ask-a-lawyer stuff X-Git-Url: https://git.mdrn.pl/prawokultury.git/commitdiff_plain/92fd89419f48638b2181671cdc6c1f42adcbc395 ask-a-lawyer stuff --- diff --git a/prawokultury/locale/pl/LC_MESSAGES/django.mo b/prawokultury/locale/pl/LC_MESSAGES/django.mo index fc93ca5..b33fca9 100644 Binary files a/prawokultury/locale/pl/LC_MESSAGES/django.mo and b/prawokultury/locale/pl/LC_MESSAGES/django.mo differ diff --git a/prawokultury/locale/pl/LC_MESSAGES/django.po b/prawokultury/locale/pl/LC_MESSAGES/django.po index c36366b..7a2cb2f 100644 --- a/prawokultury/locale/pl/LC_MESSAGES/django.po +++ b/prawokultury/locale/pl/LC_MESSAGES/django.po @@ -7,34 +7,37 @@ msgid "" msgstr "" "Project-Id-Version: prawokultury\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-12-17 03:56+0000\n" -"PO-Revision-Date: 2012-12-11 13:33+0100\n" +"POT-Creation-Date: 2013-01-14 16:09+0100\n" +"PO-Revision-Date: 2013-01-14 16:09+0100\n" "Last-Translator: Radek Czajka \n" "Language-Team: FNP \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " -"|| n%100>=20) ? 1 : 2)\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" -#: menu_items.py:21 +#: menu_items.py:15 msgid "Publications" msgstr "Publikacje" -#: menu_items.py:23 +#: menu_items.py:17 msgid "Events" msgstr "Wydarzenia" -#: menu_items.py:27 +#: menu_items.py:23 msgid "Positions" msgstr "Stanowiska" -#: menu_items.py:32 -msgid "First aid in copyright" -msgstr "Pierwsza pomoc w prawie autorskim" +#: menu_items.py:26 +msgid "First aid" +msgstr "Pierwsza pomoc" -#: urls.py:31 +#: menu_items.py:35 +msgid "Guide" +msgstr "Przewodnik" + +#: urls.py:41 msgid "events" msgstr "wydarzenia" @@ -50,7 +53,8 @@ msgstr "publikacje" msgid "info" msgstr "info" -#: templates/404.html:5 templates/404.html.py:10 +#: templates/404.html:5 +#: templates/404.html.py:10 msgid "Page not found" msgstr "Strona nie znaleziona" @@ -58,8 +62,11 @@ msgstr "Strona nie znaleziona" msgid "The page you were looking for doesn't exist." msgstr "Strona, której szukasz, nie istnieje." -#: templates/base.html:8 templates/base.html.py:14 templates/base.html:15 -#: templates/base.html.py:26 templates/base.html:75 +#: templates/base.html:8 +#: templates/base.html.py:14 +#: templates/base.html:15 +#: templates/base.html.py:26 +#: templates/base.html:78 msgid "Right to Culture" msgstr "Prawo kultury" @@ -87,19 +94,16 @@ msgstr "Szukaj" msgid "Upcoming events" msgstr "Nadchodzące wydarzenia" -#: templates/base.html:79 +#: templates/base.html:82 msgid "Latest comments" msgstr "Ostatnie komentarze" -#: templates/base.html:107 -msgid "" -"If not explicitly stated otherwise, all texts are licensed under the Creative Commons " -"Attribution-Share Alike free license." -msgstr "" -"Jeśli nie oznaczono inaczej, wszystkie teksty są objęte wolną licencją Creative " -"Commons Uznanie autorstwa – Na tych samych warunkach." +#: templates/base.html:110 +msgid "If not explicitly stated otherwise, all texts are licensed under the Creative Commons Attribution-Share Alike free license." +msgstr "Jeśli nie oznaczono inaczej, wszystkie teksty są objęte wolną licencją Creative Commons Uznanie autorstwa – Na tych samych warunkach." + +#~ msgid "First aid in copyright" +#~ msgstr "Pierwsza pomoc w prawie autorskim" #~ msgid "Page not found." #~ msgstr "Strona nie znaleziona." @@ -125,9 +129,6 @@ msgstr "" #~ msgid "About us" #~ msgstr "O nas" -#~ msgid "First aid" -#~ msgstr "Pierwsza pomoc" - #~ msgid "Categories" #~ msgstr "Kategorie" diff --git a/prawokultury/menu_items.py b/prawokultury/menu_items.py index f780c48..8f5d806 100644 --- a/prawokultury/menu_items.py +++ b/prawokultury/menu_items.py @@ -23,7 +23,14 @@ ITEMS.append(ObjectMenuItem( title=_('Positions') )) +ITEMS.append(MenuItem(reverse_lazy('questions_form'), _('First aid'), + more_urls=( + reverse_lazy('questions'), + #reverse_lazy('questions_question'), + reverse_lazy('questions_thanks'), + ))) + ITEMS.append(ObjectMenuItem( obj_get=lambda:Entry.published_objects.get(slug_pl='pierwsza-pomoc'), - title=_('First aid in copyright') + title=_('Guide') )) diff --git a/prawokultury/static/css/forms.css b/prawokultury/static/css/forms.css index 9b3957d..4acb30f 100644 --- a/prawokultury/static/css/forms.css +++ b/prawokultury/static/css/forms.css @@ -34,3 +34,7 @@ font-size: 1.1em; } .submit-form .helptext a { color: #363A3B; } + .submit-form .required label { + font-weight: bold; } + .submit-form .required label:before { + content: '* '; } diff --git a/prawokultury/static/css/forms.scss b/prawokultury/static/css/forms.scss index 626702e..9539415 100644 --- a/prawokultury/static/css/forms.scss +++ b/prawokultury/static/css/forms.scss @@ -51,4 +51,13 @@ color: #363A3B; } } + + .required { + label { + font-weight: bold; + } + label:before { + content: '* '; + } + } } diff --git a/prawokultury/urls.py b/prawokultury/urls.py index b0a1f08..4c957e5 100644 --- a/prawokultury/urls.py +++ b/prawokultury/urls.py @@ -40,7 +40,7 @@ if 'django_cas' in settings.INSTALLED_APPS: urlpatterns += i18n_patterns('', url(string_concat(r'^', _('events'), r'/'), include('events.urls')), url(r'^comments/', include('django_comments_xtd.urls')), - url(r'^prawnik/', include('questions.urls')), + url(r'^pierwsza-pomoc/', include('questions.urls')), ) + migdal_urlpatterns if settings.DEBUG: diff --git a/questions/forms.py b/questions/forms.py index 3a80db1..02c37c5 100755 --- a/questions/forms.py +++ b/questions/forms.py @@ -2,6 +2,8 @@ from django.forms import ModelForm from .models import Question class QuestionForm(ModelForm): + required_css_class = 'required' + class Meta: model = Question fields = ['email', 'question'] diff --git a/questions/locale/pl/LC_MESSAGES/django.mo b/questions/locale/pl/LC_MESSAGES/django.mo new file mode 100644 index 0000000..43ab53d Binary files /dev/null and b/questions/locale/pl/LC_MESSAGES/django.mo differ diff --git a/questions/locale/pl/LC_MESSAGES/django.po b/questions/locale/pl/LC_MESSAGES/django.po new file mode 100644 index 0000000..ff4c09c --- /dev/null +++ b/questions/locale/pl/LC_MESSAGES/django.po @@ -0,0 +1,84 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-01-14 15:57+0100\n" +"PO-Revision-Date: 2013-01-14 15:59+0100\n" +"Last-Translator: Radek Czajka \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" + +#: models.py:11 +msgid "contact e-mail" +msgstr "e-mail kontaktowy" + +#: models.py:12 +#: models.py:29 +msgid "question" +msgstr "pytanie" + +#: models.py:13 +msgid "created at" +msgstr "utworzone" + +#: models.py:14 +msgid "changed at" +msgstr "zmienione" + +#: models.py:15 +msgid "approved" +msgstr "potwierdzone" + +#: models.py:16 +msgid "edited question" +msgstr "zmienione pytanie" + +#: models.py:17 +msgid "Leave empty if question doesn't need editing." +msgstr "Zostaw puste, jeśli pytanie nie wymaga zmian." + +#: models.py:18 +msgid "answer" +msgstr "odpowiedź" + +#: models.py:19 +msgid "Use Textile syntax." +msgstr "" + +#: models.py:20 +msgid "answered" +msgstr "udzielono odpowiedzi" + +#: models.py:21 +msgid "Check to send the answer to user." +msgstr "Zaznacz, by wysłać odpowiedź użytkownikowi." + +#: models.py:22 +msgid "answered at" +msgstr "udzielono odpowiedzi" + +#: models.py:23 +msgid "published" +msgstr "opublikowane" + +#: models.py:24 +msgid "Check to display answered question on site." +msgstr "Zaznaczy, by odpowiedź ukazała się na stronie." + +#: models.py:25 +msgid "published at" +msgstr "opublikowane" + +#: models.py:30 +msgid "questions" +msgstr "pytania" + diff --git a/questions/models.py b/questions/models.py index 94c6e1d..bc7d960 100644 --- a/questions/models.py +++ b/questions/models.py @@ -26,6 +26,8 @@ class Question(models.Model): class Meta: ordering = ['-created_at'] + verbose_name = _('question') + verbose_name_plural = _('questions') def __unicode__(self): return self.edited_question or self.question diff --git a/questions/templates/questions/answered_mail.html b/questions/templates/questions/answered_mail.html new file mode 100755 index 0000000..fa3f57a --- /dev/null +++ b/questions/templates/questions/answered_mail.html @@ -0,0 +1,21 @@ +{% load i18n %}{% language 'pl' %} +

{{ question.created_at }} zadałeś/zadałaś pytanie:

+ +
{{ question.question }}
+ +

Odpowiedź:

+ +
{{ question.answer }}
+ +{% if question.published %} +

Pytanie wraz z odpowiedzią można znaleźć na stronie: +http://{{ site.domain }}{{ question.get_absolute_url }} +

+{% endif %} + +

Dziękujemy!

+ +

-- +
{{ site }} +
{% endlanguage %} +

\ No newline at end of file diff --git a/questions/templates/questions/question_form.html b/questions/templates/questions/question_form.html index 40b5341..e6d956b 100755 --- a/questions/templates/questions/question_form.html +++ b/questions/templates/questions/question_form.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load url from future %} {% block "titleextra" %}Pierwsza pomoc w prawie autorskim: pytanie do prawnika :: {% endblock %} {% block "body" %} @@ -6,14 +7,38 @@
-
+

Jeżeli masz pytanie dotyczące prawa autorskiego, na które nie znalazłeś odpowiedzi +w naszym przewodniku, +możesz je nam zadać za pomocą poniższego formularza +lub telefonicznie pod nr [***] we wtorki w godzinach [***]. +Wybrane pytania (w razie potrzeby odpowiednio przeformułowane) oraz +odpowiedzi na te pytania będą publikowane na stronie PrawoKultury.pl. Możesz +zostawić swoje dane kontaktowe (adres e-mail), jeżeli chcesz, żebyśmy +skontaktowali się z Tobą w przypadku wątpliwości co do Twojego pytania. +Dane kontaktowe nie będą publikowane.

+ +

Możemy nie być w stanie odpowiedzieć na wszystkie pytania, a w przypadku +podobnych pytań możemy odsyłać do wcześniejszych odpowiedzi. +Odpowiedzi na pytania nie należy traktować jak porad prawnych. Jeżeli +poszukujesz porady prawnej skontaktuj się z prawnikiem.

+ +

Administratorem danych osobowych przetwarzanych w związku z +funkcjonowaniem tego serwisu jest Fundacja Nowoczesna Polska [pełne +dane]. Podanie danych osobowych jest dobrowolne. Dane są przetwarzane w +zakresie niezbędnym do prowadzenia serwisu. Osobom, których dane są +zbierane, przysługuje prawo dostępu do treści swoich danych oraz ich +poprawiania.

+ +
+ + {% csrf_token %} {{ form.as_table }}
- + {% endblock %} \ No newline at end of file