--- /dev/null
+from django.contrib import admin
+
+from .models import CommentDocument
+
+
+class CommentDocumentAdmin(admin.ModelAdmin):
+ prepopulated_fields = {"slug": ("name",)}
+
+admin.site.register(CommentDocument, CommentDocumentAdmin)
--- /dev/null
+# 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 <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-10-18 14:07+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\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"
+
+#: templates/comment/commentdocument_list.html:7
+#, python-format
+msgid ""
+"\n"
+" Take part in the consultation by filling in <a href=\"%(form_href)s"
+"\">the form</a> or comment on specific competencies in different thematic "
+"fields\n"
+" "
+msgstr ""
+"\n"
+" Weź udział w konsultacjach wypełniając <a href=\"%(form_href)s\">ten "
+"formularz</a> lub skomentuj szczegółowo kompetencje w poszczególnych "
+"obszarach tematycznych\n"
+" "
--- /dev/null
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+ # Adding model 'CommentDocument'
+ db.create_table(u'comment_commentdocument', (
+ (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
+ ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=255)),
+ ('comment_id', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
+ ('order', self.gf('django.db.models.fields.IntegerField')()),
+ ))
+ db.send_create_signal(u'comment', ['CommentDocument'])
+
+
+ def backwards(self, orm):
+ # Deleting model 'CommentDocument'
+ db.delete_table(u'comment_commentdocument')
+
+
+ models = {
+ u'comment.commentdocument': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'CommentDocument'},
+ 'comment_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'})
+ }
+ }
+
+ complete_apps = ['comment']
\ No newline at end of file
--- /dev/null
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+ # Adding field 'CommentDocument.language_code'
+ db.add_column(u'comment_commentdocument', 'language_code',
+ self.gf('django.db.models.fields.CharField')(default='pl', max_length=2),
+ keep_default=False)
+
+
+ def backwards(self, orm):
+ # Deleting field 'CommentDocument.language_code'
+ db.delete_column(u'comment_commentdocument', 'language_code')
+
+
+ models = {
+ u'comment.commentdocument': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'CommentDocument'},
+ 'comment_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'language_code': ('django.db.models.fields.CharField', [], {'default': "'pl'", 'max_length': '2'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'})
+ }
+ }
+
+ complete_apps = ['comment']
\ No newline at end of file
--- /dev/null
+from django.db import models
+from django.core.urlresolvers import reverse
+
+
+class CommentDocument(models.Model):
+ name = models.CharField(max_length = 255, unique = True)
+ slug = models.SlugField(max_length = 255, unique = True)
+ comment_id = models.CharField(max_length = 255, unique = True)
+ order = models.IntegerField()
+ language_code = models.CharField(max_length = 2, default = 'pl')
+
+ class Meta:
+ ordering = ['order']
+
+ def __unicode__(self):
+ return self.name
+
+ def get_absolute_url(self):
+ return reverse('comment_document', kwargs = dict(slug = self.slug))
--- /dev/null
+{% extends "base_mil.html" %}
+
+{% block body %}
+
+ <h1>{{object.name}}</h1>
+
+ <iframe frameborder="0" src="{{comment_url}}/text/{{object.comment_id}}/comments_frame/?" style="height: 600px; width: 99.9%; position: relative; top: 0px;"></iframe>
+
+{% endblock %}
\ No newline at end of file
--- /dev/null
+{% extends "base_mil.html" %}
+{% load i18n %}
+
+
+{% block body %}
+
+ <p>{% blocktrans with href=form_href %}
+ Take part in the consultation by filling in <a href="{{form_href}}">the form</a> or comment on specific competencies in different thematic fields
+ {% endblocktrans %}:</p>
+
+ <ol>
+ {% for document in object_list %}
+ <li><a href="{{document.get_absolute_url}}">{{document.name}}</a></li>
+ {% endfor %}
+ </ol>
+
+{% endblock %}
\ No newline at end of file
--- /dev/null
+from django.conf.urls import patterns, include, url
+
+from .views import CommentDocumentList, CommentDocument
+
+
+urlpatterns = patterns('',
+ url('^$', CommentDocumentList.as_view(), name = 'comment_document_index'),
+ url('^(?P<slug>[^/]+)/$', CommentDocument.as_view(), name = 'comment_document')
+)
\ No newline at end of file
--- /dev/null
+from django.views.generic import ListView, DetailView
+from django.conf import settings
+from django.utils.translation import get_language
+
+from django.core.urlresolvers import reverse
+
+from .models import CommentDocument
+
+
+class CommentDocumentList(ListView):
+ model = CommentDocument
+
+ def get_queryset(self, **kwargs):
+ return super(CommentDocumentList, self).get_queryset(**kwargs).filter(language_code = get_language())
+
+ def get_context_data(self, **kwargs):
+ context = super(CommentDocumentList, self).get_context_data(**kwargs)
+ context['form_href'] = reverse('contact_form', kwargs = dict(form_tag = 'mil'))
+ return context
+
+
+class CommentDocument(DetailView):
+ model = CommentDocument
+
+ def get_context_data(self, **kwargs):
+ context = super(CommentDocument, self).get_context_data(**kwargs)
+ context['comment_url'] = settings.COMMENT_URL
+ return context
\ No newline at end of file
site = Site.objects.get_current()
dictionary = {
'form_tag': self.form_tag,
- 'site_name': site.name,
- 'site_domain': site.domain,
+ 'site_name': getattr(self, 'site_name', site.name),
+ 'site_domain': getattr(self, 'site_domain', site.domain),
'contact': contact,
}
context = RequestContext(request)
-{% extends "base.html" %}
+{% extends form.base_template|default:"base.html" %}
{% load chunks %}
{% block title %}{{ form.form_title }}{% endblock %}
-{% load pretty_print from contact_tags %}Wypełniono formularz {{ form_tag }} na stronie {{ site_name }}.
+{% load pretty_print from contact_tags %}{% load subdomainurls %}Wypełniono formularz {{ form_tag }} na stronie {{ site_name }}.
-http://{{ site_domain }}{% url 'admin:contact_contact_change' contact.pk %}
+{% url 'admin:contact_contact_change' None contact.pk %}
{% for k, v in contact.body.items %}
{{ k }}:
-{% extends "base.html" %}
+{% extends base_template|default:"base.html" %}
{% load i18n %}
{% block title %}{% trans "Thank you" %}{% endblock %}
def thanks(request, form_tag):
- if form_tag not in contact_forms:
+ try:
+ form_class = contact_forms[form_tag]
+ except KeyError:
raise Http404
return render(request,
- ['contact/%s/thanks.html' % form_tag, 'contact/thanks.html']
+ ['contact/%s/thanks.html' % form_tag, 'contact/thanks.html'],
+ dict(base_template = getattr(form_class, 'base_template', None))
)
class CompetenceAdmin(admin.ModelAdmin):
model = Competence
- list_display = ['name', 'section', 'slug', 'order']
+ list_display = ['name_pl', 'name_en', 'section', 'slug', 'order']
inlines = [CompetenceLevelInline]
class LevelAdmin(admin.ModelAdmin):
model = Level
- list_display = ['name', 'group', 'slug', 'order']
+ list_display = ['name_pl', 'name_en', 'group_pl', 'group_en', 'slug', 'order']
class SectionAdmin(admin.ModelAdmin):
model = Section
- list_display = ['name', 'slug', 'order']
+ list_display = ['name_pl', 'name_en', 'slug', 'order']
admin.site.register(Level, LevelAdmin)
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-08 13:11+0100\n"
+"POT-Creation-Date: 2013-10-18 14:01+0200\n"
"PO-Revision-Date: 2013-02-08 13:16+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"
-#: models.py:8
-#: models.py:22
-#: models.py:47
-msgid "name"
-msgstr "nazwa"
-
-#: models.py:9
-#: models.py:23
-#: models.py:48
+#: models.py:9 models.py:33 models.py:68
msgid "slug"
msgstr ""
-#: models.py:10
-#: models.py:24
-#: models.py:49
+#: models.py:10 models.py:34 models.py:69
msgid "order"
msgstr "kolejność"
msgid "sections"
msgstr "działy"
-#: models.py:28
+#: models.py:27 models.py:63 models.py:80
+msgid "name"
+msgstr "nazwa"
+
+#: models.py:38
msgid "competence"
msgstr "kompetencja"
-#: models.py:29
+#: models.py:39
msgid "competences"
msgstr "kompetencje"
-#: models.py:46
-msgid "group"
-msgstr "grupa"
-
-#: models.py:53
+#: models.py:73
msgid "educational level"
msgstr "poziom edukacyjny"
-#: models.py:54
+#: models.py:74
msgid "educational levels"
msgstr "poziomy edukacyjne"
-#: models.py:62
-msgid "description"
-msgstr "opis"
+#: models.py:81
+msgid "group"
+msgstr "grupa"
-#: models.py:66
+#: models.py:91
msgid "competence on level"
msgstr "kompetencja na poziomie"
-#: models.py:67
+#: models.py:92
msgid "competences on levels"
msgstr "kompetencje na poziomach"
-#: models.py:81
+#: models.py:101
+msgid "description"
+msgstr "opis"
+
+#: models.py:109
msgid "curriculum level"
msgstr "poziom w podstawie programowej"
-#: models.py:82
+#: models.py:110
msgid "curriculum levels"
msgstr "poziomy w podstawie programowej"
-#: models.py:93
+#: models.py:122
msgid "curriculum course"
msgstr "przedmiot w podstawie programowej"
-#: models.py:94
+#: models.py:123
msgid "curriculum courses"
msgstr "przedmioty w podstawie programowej"
-#: models.py:111
+#: models.py:141
msgid "curriculum item"
msgstr "pozycja w podstawie programowej"
-#: models.py:112
+#: models.py:142
msgid "curriculum items"
msgstr "podstawa programowa"
+#: views.py:51
+msgid "You must select at least one competency from the list."
+msgstr "Proszę wybrać kompetencje z listy."
+
+#: views.py:53
+msgid "You must select at least one education level."
+msgstr "Proszę wybrać poziom edukacyjny."
+
+#: templates/curriculum/competence_list.html:8
+msgid "Media and information literacy competencies catalogue"
+msgstr "Katalog kompetencji medialnych i informacyjnych"
+
+#: templates/curriculum/competence_list.html:15
+msgid "Browse competencies"
+msgstr "Przeglądaj kompetencje"
+
+#: templates/curriculum/competence_list.html:15
+msgid "expand"
+msgstr "rozwiń"
+
+#: templates/curriculum/competence_list.html:18
+msgid "Education level"
+msgstr "Poziom edukacyjny"
+
+#: templates/curriculum/competence_list.html:31
+msgid "Competency categories"
+msgstr "Kategories kompetencji"
+
+#: templates/curriculum/competence_list.html:49
+msgid "Show"
+msgstr "Pokaż"
+
+#: templates/curriculum/competence_list.html:55
+msgid "Selected competencies"
+msgstr "Wybrane kompetencje"
--- /dev/null
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+ # Adding field 'CompetenceLevel.description_pl'
+ db.add_column(u'curriculum_competencelevel', 'description_pl',
+ self.gf('django.db.models.fields.TextField')(null=True),
+ keep_default=False)
+
+ # Adding field 'CompetenceLevel.description_en'
+ db.add_column(u'curriculum_competencelevel', 'description_en',
+ self.gf('django.db.models.fields.TextField')(null=True),
+ keep_default=False)
+
+ # Adding field 'Section.name_pl'
+ db.add_column(u'curriculum_section', 'name_pl',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Section.name_en'
+ db.add_column(u'curriculum_section', 'name_en',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Competence.name_pl'
+ db.add_column(u'curriculum_competence', 'name_pl',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Competence.name_en'
+ db.add_column(u'curriculum_competence', 'name_en',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Level.name_pl'
+ db.add_column(u'curriculum_level', 'name_pl',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Level.name_en'
+ db.add_column(u'curriculum_level', 'name_en',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Level.group_pl'
+ db.add_column(u'curriculum_level', 'group_pl',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+ # Adding field 'Level.group_en'
+ db.add_column(u'curriculum_level', 'group_en',
+ self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
+ keep_default=False)
+
+
+ def backwards(self, orm):
+ # Deleting field 'CompetenceLevel.description_pl'
+ db.delete_column(u'curriculum_competencelevel', 'description_pl')
+
+ # Deleting field 'CompetenceLevel.description_en'
+ db.delete_column(u'curriculum_competencelevel', 'description_en')
+
+ # Deleting field 'Section.name_pl'
+ db.delete_column(u'curriculum_section', 'name_pl')
+
+ # Deleting field 'Section.name_en'
+ db.delete_column(u'curriculum_section', 'name_en')
+
+ # Deleting field 'Competence.name_pl'
+ db.delete_column(u'curriculum_competence', 'name_pl')
+
+ # Deleting field 'Competence.name_en'
+ db.delete_column(u'curriculum_competence', 'name_en')
+
+ # Deleting field 'Level.name_pl'
+ db.delete_column(u'curriculum_level', 'name_pl')
+
+ # Deleting field 'Level.name_en'
+ db.delete_column(u'curriculum_level', 'name_en')
+
+ # Deleting field 'Level.group_pl'
+ db.delete_column(u'curriculum_level', 'group_pl')
+
+ # Deleting field 'Level.group_en'
+ db.delete_column(u'curriculum_level', 'group_en')
+
+
+ models = {
+ u'curriculum.competence': {
+ 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ },
+ u'curriculum.competencelevel': {
+ 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
+ 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ 'description_en': ('django.db.models.fields.TextField', [], {'null': 'True'}),
+ 'description_pl': ('django.db.models.fields.TextField', [], {'null': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
+ },
+ u'curriculum.curriculum': {
+ 'Meta': {'object_name': 'Curriculum'},
+ 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+ },
+ u'curriculum.curriculumcourse': {
+ 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
+ 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.curriculumlevel': {
+ 'Meta': {'object_name': 'CurriculumLevel'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
+ },
+ u'curriculum.level': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
+ 'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'group_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'group_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.section': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ }
+ }
+
+ complete_apps = ['curriculum']
\ No newline at end of file
--- /dev/null
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import DataMigration
+from django.db import models
+
+class Migration(DataMigration):
+
+ def forwards(self, orm):
+ for section in orm.Section.objects.all():
+ section.name_pl = section.name_en = section.name
+ section.save()
+ for competence in orm.Competence.objects.all():
+ competence.name_pl = competence.name_en = competence.name
+ competence.save()
+ for level in orm.Level.objects.all():
+ level.name_pl = level.name_en = level.name
+ level.group_pl = level.group_en = level.group
+ level.save()
+ for competence_level in orm.CompetenceLevel.objects.all():
+ competence_level.description_pl = competence_level.description_en = competence_level.description
+ competence_level.save()
+
+ def backwards(self, orm):
+ raise RuntimeError("Cannot reverse this migration.")
+
+ models = {
+ u'curriculum.competence': {
+ 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ },
+ u'curriculum.competencelevel': {
+ 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
+ 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ 'description_en': ('django.db.models.fields.TextField', [], {'null': 'True'}),
+ 'description_pl': ('django.db.models.fields.TextField', [], {'null': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
+ },
+ u'curriculum.curriculum': {
+ 'Meta': {'object_name': 'Curriculum'},
+ 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+ },
+ u'curriculum.curriculumcourse': {
+ 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
+ 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.curriculumlevel': {
+ 'Meta': {'object_name': 'CurriculumLevel'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
+ },
+ u'curriculum.level': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
+ 'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'group_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'group_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.section': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ }
+ }
+
+ complete_apps = ['curriculum']
+ symmetrical = True
--- /dev/null
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+ # Deleting field 'CompetenceLevel.description'
+ db.delete_column(u'curriculum_competencelevel', 'description')
+
+ # Deleting field 'Section.name'
+ db.delete_column(u'curriculum_section', 'name')
+
+ # Deleting field 'Competence.name'
+ db.delete_column(u'curriculum_competence', 'name')
+
+ # Deleting field 'Level.group'
+ db.delete_column(u'curriculum_level', 'group')
+
+ # Deleting field 'Level.name'
+ db.delete_column(u'curriculum_level', 'name')
+
+
+ def backwards(self, orm):
+
+ # User chose to not deal with backwards NULL issues for 'CompetenceLevel.description'
+ raise RuntimeError("Cannot reverse this migration. 'CompetenceLevel.description' and its values cannot be restored.")
+
+ # User chose to not deal with backwards NULL issues for 'Section.name'
+ raise RuntimeError("Cannot reverse this migration. 'Section.name' and its values cannot be restored.")
+
+ # User chose to not deal with backwards NULL issues for 'Competence.name'
+ raise RuntimeError("Cannot reverse this migration. 'Competence.name' and its values cannot be restored.")
+
+ # User chose to not deal with backwards NULL issues for 'Level.group'
+ raise RuntimeError("Cannot reverse this migration. 'Level.group' and its values cannot be restored.")
+
+ # User chose to not deal with backwards NULL issues for 'Level.name'
+ raise RuntimeError("Cannot reverse this migration. 'Level.name' and its values cannot be restored.")
+
+ models = {
+ u'curriculum.competence': {
+ 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ },
+ u'curriculum.competencelevel': {
+ 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
+ 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
+ 'description_en': ('django.db.models.fields.TextField', [], {'null': 'True'}),
+ 'description_pl': ('django.db.models.fields.TextField', [], {'null': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
+ },
+ u'curriculum.curriculum': {
+ 'Meta': {'object_name': 'Curriculum'},
+ 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+ },
+ u'curriculum.curriculumcourse': {
+ 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
+ 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.curriculumlevel': {
+ 'Meta': {'object_name': 'CurriculumLevel'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
+ },
+ u'curriculum.level': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
+ 'group_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'group_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.section': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ }
+ }
+
+ complete_apps = ['curriculum']
\ No newline at end of file
--- /dev/null
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+
+ # Changing field 'CompetenceLevel.description_en'
+ db.alter_column(u'curriculum_competencelevel', 'description_en', self.gf('django.db.models.fields.TextField')())
+
+ # Changing field 'CompetenceLevel.description_pl'
+ db.alter_column(u'curriculum_competencelevel', 'description_pl', self.gf('django.db.models.fields.TextField')())
+
+ # Changing field 'Section.name_en'
+ db.alter_column(u'curriculum_section', 'name_en', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Section.name_pl'
+ db.alter_column(u'curriculum_section', 'name_pl', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Competence.name_pl'
+ db.alter_column(u'curriculum_competence', 'name_pl', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Competence.name_en'
+ db.alter_column(u'curriculum_competence', 'name_en', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Level.name_pl'
+ db.alter_column(u'curriculum_level', 'name_pl', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Level.group_pl'
+ db.alter_column(u'curriculum_level', 'group_pl', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Level.group_en'
+ db.alter_column(u'curriculum_level', 'group_en', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ # Changing field 'Level.name_en'
+ db.alter_column(u'curriculum_level', 'name_en', self.gf('django.db.models.fields.CharField')(max_length=255))
+
+ def backwards(self, orm):
+
+ # Changing field 'CompetenceLevel.description_en'
+ db.alter_column(u'curriculum_competencelevel', 'description_en', self.gf('django.db.models.fields.TextField')(null=True))
+
+ # Changing field 'CompetenceLevel.description_pl'
+ db.alter_column(u'curriculum_competencelevel', 'description_pl', self.gf('django.db.models.fields.TextField')(null=True))
+
+ # Changing field 'Section.name_en'
+ db.alter_column(u'curriculum_section', 'name_en', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Section.name_pl'
+ db.alter_column(u'curriculum_section', 'name_pl', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Competence.name_pl'
+ db.alter_column(u'curriculum_competence', 'name_pl', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Competence.name_en'
+ db.alter_column(u'curriculum_competence', 'name_en', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Level.name_pl'
+ db.alter_column(u'curriculum_level', 'name_pl', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Level.group_pl'
+ db.alter_column(u'curriculum_level', 'group_pl', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Level.group_en'
+ db.alter_column(u'curriculum_level', 'group_en', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ # Changing field 'Level.name_en'
+ db.alter_column(u'curriculum_level', 'name_en', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
+
+ models = {
+ u'curriculum.competence': {
+ 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ },
+ u'curriculum.competencelevel': {
+ 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
+ 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
+ 'description_en': ('django.db.models.fields.TextField', [], {'default': "''"}),
+ 'description_pl': ('django.db.models.fields.TextField', [], {'default': "''"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
+ },
+ u'curriculum.curriculum': {
+ 'Meta': {'object_name': 'Curriculum'},
+ 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+ },
+ u'curriculum.curriculumcourse': {
+ 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
+ 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.curriculumlevel': {
+ 'Meta': {'object_name': 'CurriculumLevel'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
+ },
+ u'curriculum.level': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
+ 'group_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'group_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ u'curriculum.section': {
+ 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name_en': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'name_pl': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}),
+ 'order': ('django.db.models.fields.IntegerField', [], {}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
+ }
+ }
+
+ complete_apps = ['curriculum']
\ No newline at end of file
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.translation import ugettext_lazy as _
+from fnpdjango.utils.models.translation import add_translatable
class Section(models.Model):
- name = models.CharField(_('name'), max_length=255)
slug = models.SlugField(_('slug'))
order = models.IntegerField(_('order'))
def url_for_level(self, level):
return "%s?s=%d&level=%s&d=1" % (reverse("curriculum"), self.pk, level.slug)
+add_translatable(Section, {
+ 'name': models.CharField(_('name'), max_length=255, default = '')
+})
+
class Competence(models.Model):
section = models.ForeignKey(Section)
- name = models.CharField(_('name'), max_length=255)
slug = models.SlugField(_('slug'))
order = models.IntegerField(_('order'))
else:
return cls.objects.get(name__iexact=parts[1].strip())
+add_translatable(Competence, {
+ 'name': models.CharField(_('name'), max_length=255, default = '')
+})
+
+
class Level(models.Model):
- group = models.CharField(_('group'), max_length=255)
- name = models.CharField(_('name'), max_length=255)
slug = models.CharField(_('slug'), max_length=255)
order = models.IntegerField(_('order'))
def __unicode__(self):
return self.name
+add_translatable(Level, {
+ 'name': models.CharField(_('name'), max_length=255, default = ''),
+ 'group': models.CharField(_('group'), max_length=255, default = '')
+})
+
+
class CompetenceLevel(models.Model):
competence = models.ForeignKey(Competence)
level = models.ForeignKey(Level)
- description = models.TextField(_('description'))
class Meta:
ordering = ['competence', 'level']
def get_absolute_url(self):
return "%s?c=%d&level=%s&d=1" % (reverse("curriculum"), self.competence.pk, self.level.slug)
+add_translatable(CompetenceLevel, {
+ 'description': models.TextField(_('description'), default = '')
+})
class CurriculumLevel(models.Model):
-{% extends "base.html" %}
+{% extends "base_mil.html" %}
{% block title %}{{ object }}{% endblock %}
-{% extends "base.html" %}
+{% extends "base_mil.html" %}
{% load chunks %}
+{% load i18n %}
-{% block title %}Katalog kompetencji medialnych i informacyjnych{% endblock %}
+{% block title %}{% trans 'Media and information literacy competencies catalogue' %}{% endblock %}
{% block body %}
-<h1>Katalog kompetencji medialnych i informacyjnych</h1>
+<h1>{% trans 'Media and information literacy competencies catalogue' %}</h1>
-{% chunk 'katalog_kompetencji' %}
+{% if request.LANGUAGE_CODE == 'pl' %}
+ {% chunk 'katalog_kompetencji' %}
+{% endif %}
<div class="curriculum-form">
-<h2><a>Przeglądaj kompetencje <span>(rozwiń)</span></a></h2>
+<h2><a>{% trans 'Browse competencies' %} <span>({% trans 'expand' %})</span></a></h2>
<form>
-<h3>Poziom edukacyjny:</h3>
+<h3>{% trans 'Education level' %}:</h3>
{% if errors.level %}<p class="error">{{ errors.level }}</p>{% endif %}
{% for lev_group, levels in levels.items %}
<strong>{{ lev_group }}</strong>
</ul>
{% endfor %}
-<h3>Kategorie kompetencji:</h3>
+<h3>{% trans 'Competency categories' %}:</h3>
{% if errors.competences %}<p class="error">{{ errors.competences }}</p>{% endif %}
<ul class="curriculum-sections">
{% for section in sections %}
<li class="curriculum-section">
<label><input type="checkbox" class="s" name="s" value="{{ section.pk }}"
{% if section.pk in sect_ids %}checked="checked"{% endif %} /> {{ section }}</label>
- <a class="curriculum-section-toggler">(rozwiń)</a>
+ <a class="curriculum-section-toggler">({% trans 'expand' %})</a>
<ul class="competences">
{% for competence in section.competence_set.all %}
<li class="competence"><label><input class="c" type="checkbox" name="c" value="{{ competence.pk }}"
</li>
{% endfor %}
</ul>
-<button>Pokaż</button>
+<button>{% trans 'Show' %}</button>
</form>
</div>
{% if chosen_competences %}
-<h2>Wybrane kompetencje – {{ level }}</h2>
+<h2>{% trans 'Selected competencies' %} – {{ level }}</h2>
{% for section, competences in chosen_competences.items %}
<h3>{{ section }}</h3>
from django.db import models
from django.views.generic import DetailView, ListView
from django.utils.datastructures import SortedDict
+from django.utils.translation import ugettext as _
+
from .models import Competence, Section, Level, CompetenceLevel
if not (comp_ids or sect_ids):
if level:
- errors["competences"] = u"Proszę wybrać kompetencje z listy."
+ errors["competences"] = _('You must select at least one competency from the list.')
elif level is None:
- errors["level"] = u"Proszę wybrać poziom edukacyjny."
+ errors["level"] = _('You must select at least one education level.')
else:
chosen_competences = SortedDict()
for competence in Competence.objects.filter(
# -*- coding: utf-8 -*-
from django import forms
from contact.forms import ContactForm
+from django.utils.translation import ugettext_lazy as _
class RegistrationForm(ContactForm):
required=False
)
+class MILForm(ContactForm):
+ form_tag = 'mil'
+ form_title = _('Share your thoughts on the "Media and information literacy competencies catalogue"')
+ submit_label = _('Submit')
+ base_template = 'base_mil.html'
+ site_name = site_domain = 'katalog.nowoczesnapolska.org.pl'
+
+ name = forms.CharField(label = _('Name and Surname'), max_length = 255)
+ contact = forms.EmailField(label = _('E-mail'), max_length = 255)
+
+ institution = forms.CharField(label =_('Institution'), widget = forms.Textarea, max_length = 8192)
+
+ question_stages = forms.CharField(
+ label = _('What do you think about the proposed educational stages classification?'),
+ widget = forms.Textarea,
+ max_length = 255,
+ required = False
+ )
+
+ question_fields = forms.CharField(
+ label = _('What do you think about the proposed thematic fields?'),
+ widget = forms.Textarea,
+ max_length = 255,
+ required = False
+ )
+
+ question_left_out = forms.CharField(
+ label = _('What important areas of media and information literacy have been left out?'),
+ widget = forms.Textarea,
+ max_length = 255,
+ required = False
+ )
+
+ other = forms.CharField(
+ label = _('Other suggestions and comments'),
+ widget = forms.Textarea,
+ max_length = 255,
+ required = False
+ )
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-09-04 13:32+0200\n"
+"POT-Creation-Date: 2013-10-18 15:07+0200\n"
"PO-Revision-Date: 2012-11-19 15:58+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"
-#: templates/404.html:4
-#: templates/404.html.py:8
+#: contact_forms.py:133
+msgid ""
+"Share your thoughts on the \"Media and information literacy competencies "
+"catalogue\""
+msgstr ""
+" Podziel się uwagami na temat Katalogu Kompetencji "
+
+#: contact_forms.py:134
+msgid "Submit"
+msgstr "Zgłoś"
+
+#: contact_forms.py:138
+msgid "Name and Surname"
+msgstr "Imię i nazwisko"
+
+#: contact_forms.py:139
+msgid "E-mail"
+msgstr "Adres e-mail"
+
+#: contact_forms.py:141
+msgid "Institution"
+msgstr "Instytucja"
+
+#: contact_forms.py:144
+msgid "What do you think about the proposed educational stages classification?"
+msgstr "Co sądzisz o zaproponowanym podziale na etapy edukacyjne?"
+
+#: contact_forms.py:151
+msgid "What do you think about the proposed thematic fields?"
+msgstr "Co sądzisz o zaproponowanym podziale na obszary tematyczne?"
+
+#: contact_forms.py:158
+msgid ""
+"What important areas of media and information literacy have been left out?"
+msgstr ""
+"Jakie ważne obszary edukacji medialnej i informacyjnej zostały Twoim zdaniem "
+"niewystarczająco pogłębione lub pominięto je w ogóle?"
+
+#: contact_forms.py:165
+msgid "Other suggestions and comments"
+msgstr "Inne uwagi i sugestie"
+
+#: forms.py:11
+msgid "Signature"
+msgstr ""
+
+#: templates/404.html:4 templates/404.html.py:8 templates/404_mil.html:4
+#: templates/404_mil.html.py:8
msgid "Page not found"
msgstr "Strona nie znaleziona"
-#: templates/404.html:11
+#: templates/404.html:11 templates/404_mil.html:11
msgid "The page you were looking for doesn't exist."
msgstr "Strona której szukasz nie została znaleziona."
msgid "Forum search"
msgstr "Szukaj na forum"
+#: templates/base_mil.html:8
+msgid "Consultations"
+msgstr "Konsultacje"
+
+#: templates/base_mil.html:9
+msgid "Competencies"
+msgstr "Kompetencje"
+
+#: templates/base_mil.html:10
+msgid "Take Part"
+msgstr "Weź udział"
+
+#: templates/base_mil.html:14
+msgid "Contact"
+msgstr "Kontakt"
+
+#: templates/pybb/_need_to_login_message.html:2
+msgid "Login"
+msgstr ""
+
+#: templates/pybb/_need_to_login_message.html:2
+msgid "register"
+msgstr ""
+
+#: templates/pybb/_need_to_login_message.html:2
+msgid "to create to post a reply"
+msgstr ""
--- /dev/null
+from django.conf.urls import include, url, patterns
+
+from fnpdjango.utils.urls import i18n_patterns
+from .views import mil_home_view, mil_contact_view
+
+
+urlpatterns = i18n_patterns('',
+ url(r'^$', mil_home_view, name="mil_home"),
+ url(r'^kompetencje/', include('curriculum.urls')),
+ url(r'^wez-udzial/', include('comment.urls')),
+ url(r'^zglos/', include('contact.urls')),
+ url(r'^kontakt/$', mil_contact_view, name='mil_contact')
+)
+
+handler404 = 'edumed.views.mil_404_view'
+
+from django.conf import settings
+if settings.DEBUG:
+ urlpatterns += patterns('',
+ url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
+ 'document_root': settings.MEDIA_ROOT,
+ }),
+ )
ROOT_URLCONF = 'edumed.urls'
+SUBDOMAIN_URLCONFS = {
+ None: 'edumed.urls',
+ 'katalog': 'edumed.milurls',
+}
+
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'edumed.wsgi.application'
'edumed',
'curriculum',
'catalogue',
+ 'comment',
'fnpdjango',
'south',
'pybb',
'django_libravatar',
'sorl.thumbnail',
+ 'subdomains',
'django.contrib.auth',
'django.contrib.contenttypes',
LANGUAGES = (
('pl', u'polski'),
-# ('en', u'English'),
+ ('en', u'English'),
)
# Local time zone for this installation. Choices can be found here:
'django.contrib.sessions.middleware.SessionMiddleware'
if "django.contrib.sessions" in INSTALLED_APPS else None,
#'django.middleware.locale.LocaleMiddleware',
+ 'subdomains.middleware.SubdomainURLRoutingMiddleware',
'fnpdjango.middleware.URLLocaleMiddleware',
'django.middleware.common.CommonMiddleware',
--- /dev/null
+{% extends "base_mil.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Page not found" %}{% endblock %}
+
+{% block body %}
+
+<h1>{% trans "Page not found" %}</h1>
+
+<p class="notice">
+ {% trans "The page you were looking for doesn't exist." %}
+</p>
+
+{% endblock %}
-<!DOCTYPE html>
-{% load i18n static %}
-{% load fnp_common fnp_share fnp_lang macros %}
-{% load compressed static %}
+{% extends "base_super.html" %}
{% load sponsor_tags %}
-{% macro title %}{% block title %}{% endblock %}{% endmacro %}
-{% macro site_name %}Edukacja medialna{% endmacro %}
-<html prefix="og: http://ogp.me/ns#">
- <head>
- <title>{% block full_title %}{% usemacro title %} :: {% usemacro site_name %}{% endblock %}</title>
- <link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}" />
- {% compressed_css 'base' %}
+{% block tagline %}Scenariusze zajęć, ćwiczenia, materiały{% endblock %}
- <meta charset="UTF-8" />
- <meta property='og:url' content='{% block "ogurl" %}{{ "/"|build_absolute_uri:request }}{% endblock %}' />
- <meta property='og:title' content='{% block og_title %}{% usemacro title %}{% endblock %}' />
- <meta property='og:site_name' content='{% usemacro site_name %}' />
- <meta property='og:description' content='{% block og_description %}{% endblock %}' />
- <meta property='og:type' content='{% block og_type %}website{% endblock %}' />
- <meta property='og:image' content='{% block og_image %}http://edukacjamedialna.edu.pl/static/img/logo.png{% endblock %}' />
- <meta property='og:locale' content='pl_PL' />
- <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script></script><![endif]-->
- </head>
- <body id="{% block body-id %}body{% endblock %}">
- <div id="header-wrapper">
- <header class="main" style="position:relative;">
- <!--img
- src="{% static "tlo.png" %}"
- style="position:absolute; opacity: 0.5; top:0; left: -83px; z-index:1000"
- -->
- {% if request.user.is_authenticated %}
- <a href="{% url 'logout' %}" style="position: absolute; top:5px; right: 10px; font-size: 12px;">Wyloguj</a>
- {% endif %}
- <div id="header-top">
- <a id="logo" href="/"><img src="{% static "img/logo.png" %}" alt="Edukacja medialna"/></a>
- <div id="organizer">
- Projekt prowadzi:<br/>
- <a href="http://nowoczesnapolska.org.pl">
- <img src="{% static "img/logo_fnp.png" %}" alt="Fundacja Nowoczesna Polska" />
- </a>
- </div>
- <nav><ul>
- <li><a class="menu-lekcje" href="{% url "catalogue_lessons" %}">Lekcje</a></li>
- <li><a class="menu-kompetencje" href="{% url "curriculum" %}">Kompetencje</a></li>
- <li><a class="menu-wspolpraca" href="{% url "info" "wspolpraca/" %}">Współpraca</a></li>
- <li><a class="menu-szkolenia" href="{% url "info" "turniej/" %}">Turniej</a></li>
- <li><a class="menu-wesprzyj" href="{% url "info" "wesprzyj/" %}">Wesprzyj nas</a></li>
- <li><a class="menu-o-nas" href="{% url "info" "o-nas/" %}">O nas</a></li>
- <li><a class="menu-kontakt" href="{% url "info" "kontakt/" %}">Kontakt</a></li>
- </ul></nav>
- </div>
+{% block top_navigation %}
+ <li><a class="menu-lekcje" href="{% url "catalogue_lessons" %}">Lekcje</a></li>
+ <li><a class="menu-wspolpraca" href="{% url "info" "wspolpraca/" %}">Współpraca</a></li>
+ <li><a class="menu-szkolenia" href="{% url "info" "turniej/" %}">Turniej</a></li>
+ <li><a class="menu-wesprzyj" href="{% url "info" "wesprzyj/" %}">Wesprzyj nas</a></li>
+ <li><a class="menu-o-nas" href="{% url "info" "o-nas/" %}">O nas</a></li>
+ <li><a class="menu-kontakt" href="{% url "info" "kontakt/" %}">Kontakt</a></li>
+{% endblock %}
- <div id="tagline">Scenariusze zajęć, ćwiczenia, materiały</div>
- <div id="search">
- <form action="{% url 'haystack_search' %}">
- <input name="q" placeholder="szukaj" /><button><span>→</span></button>
- </form>
- </div>
- <div class="clr"></div>
- </header>
- </div>
-
- <div id="content">{% block body %}{% endblock %}</div>
-
- <footer class="main">
- {# chunks? #}
- <div class="footer-item">
- <p>
- Fundacja Nowoczesna Polska<br/>
- <br/>
- ul. Marszałkowska 84/92 lok. 125<br/>
- 00-514 Warszawa<br/>
- tel/fax: +48 22 621 30 17<br/>
- e-mail: fundacja@nowoczesnapolska.org.pl
- </p>
- </div>
- <div class="footer-item">
- <p><br/><br/>
- KRS: 0000070056<br/>
- REGON: 017423865<br/>
- Nr konta: 59 1030 0019 0109 8530 0040 5685<br/>
- </p>
- </div>
- <div class="footer-item" style="margin-right:0;">
- <p>
- Webdesign Ortografika<br/>
- <br/>
- Jeśli nie oznaczono inaczej, wszystkie materiały na stronie są objęte wolną licencją
- <a href="http://creativecommons.org/licenses/by-sa/3.0/deed.pl">Creative Commons Uznanie autorstwa
- – Na tych samych warunkach 3.0</a>.
- </p>
- </div>
- {% sponsor_page "footer" %}
- <div class="clr"></div>
- <div class="footer-extra">{% block footer_extra %}{% endblock %}</div>
- </footer>
-
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
- {% compressed_js 'base' %}
- {% block extra_script %}{% endblock %}
- {{ piwik_tag|safe }}
- </body>
-</html>
+{% block sponsors %}
+ {% sponsor_page "footer" %}
+{% endblock %}
\ No newline at end of file
--- /dev/null
+{% extends "base_super.html" %}
+{% load subdomainurls %}
+{% load fnp_lang %}
+{% load sponsor_tags %}
+
+{% load i18n %}
+
+{% block top_navigation %}
+ <li><a class="menu-wspolpraca" href="{% url "mil_home" %}">{% trans 'Consultations' %}</a></li>
+ <li><a class="menu-kompetencje" href="{% url "curriculum" %}">{% trans 'Competencies' %}</a></li>
+ <li><a class="menu-wspolpraca" href="{% url "comment_document_index" %}">{% trans 'Take Part' %}</a></li>
+ {% if request.LANGUAGE_CODE == 'pl' %}
+ <li><a class="menu-lekcje" href="{% url 'home' subdomain=None %}">Materiały edukacyjne</a></li>
+ {% endif %}
+ <li><a class="menu-kontakt" href="{% url 'mil_contact' %}">{% trans 'Contact' %}</a></li>
+ <li>{% lang_switcher %}</li>
+{% endblock %}
+
+{% block sponsors %}
+ {% sponsor_page "footer_mil" %}
+{% endblock %}
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+{% load i18n static %}
+{% load fnp_common fnp_share fnp_lang macros %}
+{% load compressed static %}
+{% load subdomainurls %}
+
+{% macro title %}{% block title %}{% endblock %}{% endmacro %}
+{% macro site_name %}Edukacja medialna{% endmacro %}
+
+<html prefix="og: http://ogp.me/ns#">
+ <head>
+ <title>{% block full_title %}{% usemacro title %} :: {% usemacro site_name %}{% endblock %}</title>
+ <link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}" />
+ {% compressed_css 'base' %}
+
+ <meta charset="UTF-8" />
+ <meta property='og:url' content='{% block "ogurl" %}{{ "/"|build_absolute_uri:request }}{% endblock %}' />
+ <meta property='og:title' content='{% block og_title %}{% usemacro title %}{% endblock %}' />
+ <meta property='og:site_name' content='{% usemacro site_name %}' />
+ <meta property='og:description' content='{% block og_description %}{% endblock %}' />
+ <meta property='og:type' content='{% block og_type %}website{% endblock %}' />
+ <meta property='og:image' content='{% block og_image %}http://edukacjamedialna.edu.pl/static/img/logo.png{% endblock %}' />
+ <meta property='og:locale' content='pl_PL' />
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script></script><![endif]-->
+ </head>
+ <body id="{% block body-id %}body{% endblock %}">
+ <div id="header-wrapper">
+ <header class="main" style="position:relative;">
+ <!--img
+ src="{% static "tlo.png" %}"
+ style="position:absolute; opacity: 0.5; top:0; left: -83px; z-index:1000"
+ -->
+ {% if request.user.is_authenticated %}
+ <a href="{% url 'logout' subdomain=None %}" style="position: absolute; top:5px; right: 10px; font-size: 12px;">Wyloguj</a>
+ {% endif %}
+ <div id="header-top">
+ <a id="logo" href="/"><img src="{% static "img/logo.png" %}" alt="Edukacja medialna"/></a>
+ <div id="organizer">
+ Projekt prowadzi:<br/>
+ <a href="http://nowoczesnapolska.org.pl">
+ <img src="{% static "img/logo_fnp.png" %}" alt="Fundacja Nowoczesna Polska" />
+ </a>
+ </div>
+ <nav><ul>
+ {% block top_navigation %}
+ {% endblock %}
+ </ul></nav>
+ </div>
+
+ <div id="tagline">{% block tagline %}{% endblock %}</div>
+ <div id="search">
+ <form action="">
+ <input name="q" placeholder="szukaj" /><button><span>→</span></button>
+ </form>
+ </div>
+ <div class="clr"></div>
+ </header>
+ </div>
+
+ <div id="content">{% block body %}{% endblock %}</div>
+
+ <footer class="main">
+ {# chunks? #}
+ <div class="footer-item">
+ <p>
+ Fundacja Nowoczesna Polska<br/>
+ <br/>
+ ul. Marszałkowska 84/92 lok. 125<br/>
+ 00-514 Warszawa<br/>
+ tel/fax: +48 22 621 30 17<br/>
+ e-mail: fundacja@nowoczesnapolska.org.pl
+ </p>
+ </div>
+ <div class="footer-item">
+ <p><br/><br/>
+ KRS: 0000070056<br/>
+ REGON: 017423865<br/>
+ Nr konta: 59 1030 0019 0109 8530 0040 5685<br/>
+ </p>
+ </div>
+ <div class="footer-item" style="margin-right:0;">
+ <p>
+ Webdesign Ortografika<br/>
+ <br/>
+ Jeśli nie oznaczono inaczej, wszystkie materiały na stronie są objęte wolną licencją
+ <a href="http://creativecommons.org/licenses/by-sa/3.0/deed.pl">Creative Commons Uznanie autorstwa
+ – Na tych samych warunkach 3.0</a>.
+ </p>
+ </div>
+ {% block sponsors %}
+ {% endblock %}
+ <div class="clr"></div>
+ <div class="footer-extra">{% block footer_extra %}{% endblock %}</div>
+ </footer>
+
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+ {% compressed_js 'base' %}
+ {% block extra_script %}{% endblock %}
+ {{ piwik_tag|safe }}
+ </body>
+</html>
--- /dev/null
+{% extends "base_mil.html" %}
+{% load textile_pl from fnp_markup %}
+
+{% block title %}{{ flatpage.title }}{% endblock %}
+
+{% block body %}
+<div id="main-bar" class="flatpage">
+{{ flatpage.content|textile_pl }}
+</div>
+{% endblock %}
--- /dev/null
+{% extends "base_mil.html" %}
+
+{% block body %}
+mil
+{% endblock %}
urlpatterns = patterns('',
url(r'^$', HomeView.as_view(), name="home"),
- url(r'^kompetencje/', include('curriculum.urls')),
url(r'^lekcje/', include('catalogue.urls')),
url(r'^info/(?P<url>.*)$', 'django.contrib.flatpages.views.flatpage',
name="info"),
import os.path
from django.conf import settings
from django.views.generic import TemplateView
+from django.views.defaults import page_not_found
+from django.contrib.flatpages.views import flatpage
from pybb.views import ProfileEditView
from .forms import AvatarlessEditProfileForm
context['package_student_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE_STUDENT)
return context
+
+def mil_home_view(request):
+ return flatpage(request, url = '/' if request.LANGUAGE_CODE == 'pl' else '/en/')
+
+def mil_404_view(request):
+ return page_not_found(request, '404_mil.html')
+
+def mil_contact_view(request):
+ return flatpage(request, url = '/kontakt_mil/' if request.LANGUAGE_CODE == 'pl' else '/contact_mil/')
+
class AvatarlessProfileEditView(ProfileEditView):
form_class = AvatarlessEditProfileForm
sorl-thumbnail>=11,<12
pyyaml
+django-subdomains>=2.0.4,<2.1