From d50e249ba2ef030423c4d903953e352ae676bae0 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Wed, 7 Feb 2018 18:37:48 +0530 Subject: [PATCH] add static_placeholder for footer to ungleich_cms_page, help text for footer link --- ungleich_page/migrations/0018_ungleichfooter.py | 3 ++- ungleich_page/models.py | 5 ++++- ungleich_page/templates/ungleich_page/ungleich_cms_page.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ungleich_page/migrations/0018_ungleichfooter.py b/ungleich_page/migrations/0018_ungleichfooter.py index 8260768c..ea7d28ba 100644 --- a/ungleich_page/migrations/0018_ungleichfooter.py +++ b/ungleich_page/migrations/0018_ungleichfooter.py @@ -23,7 +23,8 @@ class Migration(migrations.Migration): blank=True, default='', max_length=100, help_text='Name of the company alongside the copyright year')), ('link_text', models.CharField( - blank=True, max_length=100, null=True)), + blank=True, max_length=100, null=True, + help_text='Text for the link on the right part of footer')), ('link_url', models.URLField(blank=True, help_text='Url to the link in footer', null=True)), ('twitter_url', models.URLField( diff --git a/ungleich_page/models.py b/ungleich_page/models.py index f6b87c34..e20a2c17 100644 --- a/ungleich_page/models.py +++ b/ungleich_page/models.py @@ -229,7 +229,10 @@ class UngleichFooter(CMSPlugin): max_length=100, default='', blank=True, help_text='Name of the company alongside the copyright year' ) - link_text = models.CharField(max_length=100, blank=True, null=True) + link_text = models.CharField( + max_length=100, blank=True, null=True, + help_text='Text for the link on the right part of footer' + ) link_url = models.URLField( blank=True, null=True, help_text='Url to the link in footer' diff --git a/ungleich_page/templates/ungleich_page/ungleich_cms_page.html b/ungleich_page/templates/ungleich_page/ungleich_cms_page.html index 707d0dab..a65c158c 100644 --- a/ungleich_page/templates/ungleich_page/ungleich_cms_page.html +++ b/ungleich_page/templates/ungleich_page/ungleich_cms_page.html @@ -41,7 +41,7 @@ {% placeholder 'Ungleich Page Contents' %} - {% include "ungleich_page/includes/_footer.html" %} + {% static_placeholder 'Footer' %}