Updated Verbatim paragraph add form: increase the 'quote' textarea size to 200px dev-dc
authorDamien Correia
Fri, 12 Oct 2018 14:33:03 +0200
branchdev-dc
changeset 1079 a5e56749ca3d
parent 1078 e608aecc2e60
child 1081 a7a2eeb833b7
child 1086 3d259e1718ef
Updated Verbatim paragraph add form: increase the 'quote' textarea size to 200px
src/pyams_content/component/paragraph/zmi/verbatim.py
--- a/src/pyams_content/component/paragraph/zmi/verbatim.py	Fri Oct 12 14:30:34 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/verbatim.py	Fri Oct 12 14:33:03 2018 +0200
@@ -73,6 +73,11 @@
     fields = field.Fields(IVerbatimParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS)
     edit_permission = MANAGE_CONTENT_PERMISSION
 
+    def updateWidgets(self, prefix=None):
+        super().updateWidgets(prefix)
+        if 'quote' in self.widgets:
+            self.widgets['quote'].widget_css_class = 'input height-200'
+
     def create(self, data):
         return VerbatimParagraph()