]> git.0d.be Git - django-panik-combo.git/commitdiff
declare combo templates in a central place
authorFrédéric Péters <fpeters@0d.be>
Sun, 21 Feb 2016 12:27:28 +0000 (13:27 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sun, 21 Feb 2016 12:27:28 +0000 (13:27 +0100)
panikombo/misc.py [new file with mode: 0644]

diff --git a/panikombo/misc.py b/panikombo/misc.py
new file mode 100644 (file)
index 0000000..0fb9f9a
--- /dev/null
@@ -0,0 +1,35 @@
+# coding: utf-8
+import collections
+
+COMBO_PUBLIC_TEMPLATES = collections.OrderedDict({
+    'standard': {
+        'name': 'Section « À propos »',
+        'template': 'combo/page_template.html',
+        'placeholders': {
+            'content': {
+                'name': 'Contenu',
+            },
+        }
+    },
+    'fullwidth': {
+        'name': 'Page normale',
+        'template': 'combo/page_template_full_width.html',
+        'placeholders': {
+            'content': {
+                'name': 'Contenu',
+            },
+        }
+    },
+    'sidebar': {
+        'name': 'Page normale avec barre latérale',
+        'template': 'combo/page_template_sidebar.html',
+        'placeholders': {
+            'content': {
+                'name': 'Contenu',
+            },
+            'sidebar': {
+                'name': 'Barre latérale',
+            },
+        }
+    },
+})