src/pyams_content/component/paragraph/zmi/header.py
changeset 407 0ef5de2d5674
parent 406 5527bc086216
child 415 43f42d74cdb8
--- a/src/pyams_content/component/paragraph/zmi/header.py	Thu Feb 22 12:00:05 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/header.py	Thu Feb 22 15:58:28 2018 +0100
@@ -18,7 +18,7 @@
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
     IParagraphPreview
-from pyams_content.component.paragraph.interfaces.header import IHeaderParagraph
+from pyams_content.component.paragraph.interfaces.header import IHeaderParagraph, HEADER_PARAGRAPH_TYPE
 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons
@@ -51,7 +51,7 @@
     label = _("Add header paragraph...")
     label_css_class = 'fa fa-fw fa-header'
     url = 'add-header-paragraph.html'
-    paragraph_type = 'Header'
+    paragraph_type = HEADER_PARAGRAPH_TYPE
 
 
 @pagelet_config(name='add-header-paragraph.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,