Changed menu label
authorThierry Florac <thierry.florac@onf.fr>
Fri, 02 Mar 2018 11:21:09 +0100
changeset 415 43f42d74cdb8
parent 414 d9e20a99ce01
child 416 c848b7ceefb7
Changed menu label
src/pyams_content/component/gallery/zmi/paragraph.py
src/pyams_content/component/illustration/zmi/paragraph.py
src/pyams_content/component/paragraph/zmi/contact.py
src/pyams_content/component/paragraph/zmi/header.py
src/pyams_content/component/paragraph/zmi/html.py
src/pyams_content/component/paragraph/zmi/video.py
--- a/src/pyams_content/component/gallery/zmi/paragraph.py	Fri Mar 02 11:20:47 2018 +0100
+++ b/src/pyams_content/component/gallery/zmi/paragraph.py	Fri Mar 02 11:21:09 2018 +0100
@@ -54,7 +54,7 @@
 class GalleryAddMenu(BaseParagraphAddMenu):
     """Gallery add menu"""
 
-    label = _("Add medias gallery...")
+    label = _("Medias gallery...")
     label_css_class = 'fa fa-fw fa-picture-o'
     url = 'add-gallery.html'
     paragraph_type = GALLERY_PARAGRAPH_TYPE
--- a/src/pyams_content/component/illustration/zmi/paragraph.py	Fri Mar 02 11:20:47 2018 +0100
+++ b/src/pyams_content/component/illustration/zmi/paragraph.py	Fri Mar 02 11:21:09 2018 +0100
@@ -54,7 +54,7 @@
 class IllustrationAddMenu(BaseParagraphAddMenu):
     """Illustration add menu"""
 
-    label = _("Add illustration...")
+    label = _("Illustration...")
     label_css_class = 'fa fa-fw fa-file-image-o'
     url = 'add-illustration.html'
     paragraph_type = ILLUSTRATION_PARAGRAPH_TYPE
--- a/src/pyams_content/component/paragraph/zmi/contact.py	Fri Mar 02 11:20:47 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/contact.py	Fri Mar 02 11:21:09 2018 +0100
@@ -45,11 +45,11 @@
 
 
 @viewlet_config(name='add-contact-paragraph.menu', context=IParagraphContainerTarget, view=IParagraphContainerView,
-                layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=650)
+                layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=540)
 class ContactParagraphAddMenu(BaseParagraphAddMenu):
     """Contact paragraph add menu"""
 
-    label = _("Add contact card...")
+    label = _("Contact card...")
     label_css_class = 'fa fa-fw fa-id-card-o'
     url = 'add-contact-paragraph.html'
     paragraph_type = CONTACT_PARAGRAPH_TYPE
--- a/src/pyams_content/component/paragraph/zmi/header.py	Fri Mar 02 11:20:47 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/header.py	Fri Mar 02 11:21:09 2018 +0100
@@ -48,7 +48,7 @@
 class HeaderParagraphAddMenu(BaseParagraphAddMenu):
     """Header paragraph add menu"""
 
-    label = _("Add header paragraph...")
+    label = _("Header...")
     label_css_class = 'fa fa-fw fa-header'
     url = 'add-header-paragraph.html'
     paragraph_type = HEADER_PARAGRAPH_TYPE
--- a/src/pyams_content/component/paragraph/zmi/html.py	Fri Mar 02 11:20:47 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/html.py	Fri Mar 02 11:21:09 2018 +0100
@@ -74,7 +74,7 @@
 class RawParagraphAddMenu(BaseParagraphAddMenu):
     """Raw HTML paragraph add menu"""
 
-    label = _("Add raw HTML paragraph...")
+    label = _("Raw HTML...")
     label_css_class = 'fa fa-fw fa-code'
     url = 'add-raw-paragraph.html'
     paragraph_type = RAW_PARAGRAPH_TYPE
@@ -189,7 +189,7 @@
 class HTMLParagraphAddMenu(BaseParagraphAddMenu):
     """Rich text paragraph add menu"""
 
-    label = _("Add rich text paragraph...")
+    label = _("Rich text...")
     label_css_class = 'fa fa-fw fa-html5'
     url = 'add-html-paragraph.html'
     paragraph_type = HTML_PARAGRAPH_TYPE
--- a/src/pyams_content/component/paragraph/zmi/video.py	Fri Mar 02 11:20:47 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/video.py	Fri Mar 02 11:21:09 2018 +0100
@@ -53,7 +53,7 @@
 class VideoParagraphAddMenu(BaseParagraphAddMenu):
     """Video paragraph add menu"""
 
-    label = _("Add video paragraph...")
+    label = _("Video paragraph...")
     label_css_class = 'fa fa-fw fa-film'
     url = 'add-video-paragraph.html'
     paragraph_type = VIDEO_PARAGRAPH_TYPE