Renamed views
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 10:14:38 +0100
changeset 449 3b5cf400af18
parent 448 1629885a2e95
child 450 9a6afbc6ab4f
Renamed views
src/pyams_content/component/paragraph/zmi/frame.py
--- a/src/pyams_content/component/paragraph/zmi/frame.py	Wed Mar 07 09:59:02 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/frame.py	Wed Mar 07 10:14:38 2018 +0100
@@ -76,18 +76,18 @@
 # Framed text paragraph
 #
 
-@viewlet_config(name='add-text-paragraph.menu', context=IParagraphContainerTarget, view=IParagraphContainerView,
+@viewlet_config(name='add-frame-paragraph.menu', context=IParagraphContainerTarget, view=IParagraphContainerView,
                 layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=580)
 class FrameParagraphAddMenu(BaseParagraphAddMenu):
     """Framed text paragraph add menu"""
 
     label = _("Framed text...")
     label_css_class = 'fa fa-fw fa-list-alt'
-    url = 'add-text-paragraph.html'
+    url = 'add-frame-paragraph.html'
     paragraph_type = FRAME_PARAGRAPH_TYPE
 
 
-@pagelet_config(name='add-text-paragraph.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,
+@pagelet_config(name='add-frame-paragraph.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,
                 permission=MANAGE_CONTENT_PERMISSION)
 @implementer(IFrameParagraphForm)
 class FrameParagraphAddForm(AdminDialogAddForm):
@@ -100,7 +100,7 @@
     input_css_class = 'col-md-10'
 
     fields = field.Fields(IFrameParagraph).omit('__parent__', '__name__', 'visible')
-    ajax_handler = 'add-text-paragraph.json'
+    ajax_handler = 'add-frame-paragraph.json'
     edit_permission = MANAGE_CONTENT_PERMISSION
 
     def updateWidgets(self, prefix=None):
@@ -115,7 +115,7 @@
         IParagraphContainer(self.context).append(object)
 
 
-@view_config(name='add-text-paragraph.json', context=IParagraphContainerTarget, request_type=IPyAMSLayer,
+@view_config(name='add-frame-paragraph.json', context=IParagraphContainerTarget, request_type=IPyAMSLayer,
              permission=MANAGE_CONTENT_PERMISSION, renderer='json', xhr=True)
 class FrameParagraphAJAXAddForm(BaseParagraphAJAXAddForm, FrameParagraphAddForm):
     """Framed text paragraph add form, JSON renderer"""