From: Frédéric Péters Date: Sun, 21 Feb 2016 12:27:28 +0000 (+0100) Subject: declare combo templates in a central place X-Git-Tag: v2021~51 X-Git-Url: https://git.0d.be/?p=django-panik-combo.git;a=commitdiff_plain;h=2825ca5e26c85e78a1a6dfedb08995eed72cae57 declare combo templates in a central place --- diff --git a/panikombo/misc.py b/panikombo/misc.py new file mode 100644 index 0000000..0fb9f9a --- /dev/null +++ b/panikombo/misc.py @@ -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', + }, + } + }, +})