Remove portlet subtitle field dev-dc
authorDamien Correia
Tue, 17 Jul 2018 15:12:43 +0200
branchdev-dc
changeset 858 1afd36ed6947
parent 857 67e46871cb2a
child 859 5139e1da058e
child 931 a2f3b82f93c3
Remove portlet subtitle field
src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py
src/pyams_content/features/menu/portlet/navigation/simple.py
src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt
src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt
--- a/src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py	Tue Jul 17 15:09:38 2018 +0200
+++ b/src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py	Tue Jul 17 15:12:43 2018 +0200
@@ -32,10 +32,6 @@
                               description=_("Portlet main title"),
                               required=False)
 
-    subtitle = I18nTextLineField(title=_("Subtitle"),
-                                 description=_("Portlet subtitle"),
-                                 required=False)
-
     links = Attribute("Navigation links")
 
 
--- a/src/pyams_content/features/menu/portlet/navigation/simple.py	Tue Jul 17 15:09:38 2018 +0200
+++ b/src/pyams_content/features/menu/portlet/navigation/simple.py	Tue Jul 17 15:12:43 2018 +0200
@@ -46,7 +46,6 @@
     """Simple navigation portlet settings"""
 
     title = FieldProperty(ISimpleNavigationPortletSettings['title'])
-    subtitle = FieldProperty(ISimpleNavigationPortletSettings['subtitle'])
 
     @property
     def links(self):
--- a/src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt	Tue Jul 17 15:09:38 2018 +0200
+++ b/src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt	Tue Jul 17 15:12:43 2018 +0200
@@ -1,6 +1,5 @@
 <div tal:define="settings view.settings" i18n:domain="pyams_content">
 	<strong tal:content="i18n:settings.title">Title</strong>
-	<tal:var define="subtitle i18n:settings.subtitle" condition="subtitle" content="subtitle" />
 	<ul>
 		<li tal:repeat="menu settings.menus.get_visible_items(request)">
 			<span tal:content="i18n:menu.title">Title</span>
--- a/src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt	Tue Jul 17 15:09:38 2018 +0200
+++ b/src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt	Tue Jul 17 15:12:43 2018 +0200
@@ -1,6 +1,5 @@
 <div tal:define="settings view.settings" i18n:domain="pyams_content">
 	<strong tal:content="i18n:settings.title">Title</strong>
-	<tal:var define="subtitle i18n:settings.subtitle" condition="subtitle" content="subtitle" />
 	<ul>
 		<li tal:repeat="link settings.links.get_visible_items(request)">
 			<i class="fa fa-fw fa-eye-slash text-danger hint opaque align-base"