Use custom method to render empty paragraphs table
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Jun 2018 15:35:36 +0200
changeset 645 2e4d8741e2b5
parent 644 e8af44ddd0ae
child 667 9832d24a17c6
child 669 43f6de0d1543
Use custom method to render empty paragraphs table
src/pyams_content/component/paragraph/zmi/container.py
--- a/src/pyams_content/component/paragraph/zmi/container.py	Wed Jun 13 14:43:13 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/container.py	Wed Jun 13 15:35:36 2018 +0200
@@ -132,7 +132,7 @@
                     message = '{0}<br />{1}'.format(message,
                                                     translate(_("Check allowed paragraph types to be able to create "
                                                                 "new paragraphs.")))
-            return message
+            return self.renderEmptyTable(message)
         return super(ParagraphContainerBaseTable, self).render()