From ea1d212e173fac806eec2d455c0c0bfff4257484 Mon Sep 17 00:00:00 2001 From: Emilie Date: Fri, 23 Sep 2016 12:46:30 +0200 Subject: [PATCH] =?utf8?q?Menu=20'Vous=20=C3=AAtes'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../pages/0005_auto_20160923_1219.py | 21 +++++++++++++++++++ app/settings.py | 1 + app/templates/pages/menus/action.html | 1 + app/templates/pages/menus/vous_etes.html | 11 ++++++++++ 4 files changed, 34 insertions(+) create mode 100644 app/migrations/pages/0005_auto_20160923_1219.py create mode 100644 app/templates/pages/menus/vous_etes.html diff --git a/app/migrations/pages/0005_auto_20160923_1219.py b/app/migrations/pages/0005_auto_20160923_1219.py new file mode 100644 index 00000000..fd0fda91 --- /dev/null +++ b/app/migrations/pages/0005_auto_20160923_1219.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-09-23 10:19 +from __future__ import unicode_literals + +from django.db import migrations +import mezzanine.pages.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('pages', '0004_auto_20160804_1547'), + ] + + operations = [ + migrations.AlterField( + model_name='page', + name='in_menus', + field=mezzanine.pages.fields.MenusField(blank=True, choices=[(1, 'Action'), (2, 'Departement'), (3, 'Footer vertical'), (4, 'Footer horizontal'), (5, 'Magazine'), (6, 'Vous êtes')], max_length=100, null=True, verbose_name='Show in menus'), + ), + ] diff --git a/app/settings.py b/app/settings.py index 12f99dd5..e4d7ea58 100644 --- a/app/settings.py +++ b/app/settings.py @@ -47,6 +47,7 @@ PAGE_MENU_TEMPLATES = ( (3, _("Footer vertical"), "pages/menus/footer_vertical.html"), (4, _("Footer horizontal"), "pages/menus/footer_horizontal.html"), (5, _("Magazine"), "pages/menus/magazine.html"), + (6, _("Vous êtes"), "pages/menus/vous_etes.html"), ) diff --git a/app/templates/pages/menus/action.html b/app/templates/pages/menus/action.html index 6f02104d..edc571e8 100644 --- a/app/templates/pages/menus/action.html +++ b/app/templates/pages/menus/action.html @@ -18,6 +18,7 @@ {% endif %} {% if page.is_primary %} {% if forloop.last %} + {% page_menu "pages/menus/vous_etes.html" %} {% endif %} {% endif %} diff --git a/app/templates/pages/menus/vous_etes.html b/app/templates/pages/menus/vous_etes.html new file mode 100644 index 00000000..6551d9bf --- /dev/null +++ b/app/templates/pages/menus/vous_etes.html @@ -0,0 +1,11 @@ +{% load pages_tags i18n %} +{% if page_branch_in_menu %} + +{% endif %} -- 2.39.5