Updated text areas CSS class
authorThierry Florac <thierry.florac@onf.fr>
Thu, 12 Jul 2018 18:19:23 +0200
changeset 137 f71f153dc508
parent 136 f190f5f694fa
child 138 1e564afe43a4
Updated text areas CSS class
src/pyams_security/zmi/notification.py
src/pyams_security/zmi/plugin/group.py
--- a/src/pyams_security/zmi/notification.py	Mon Jul 09 13:42:56 2018 +0200
+++ b/src/pyams_security/zmi/notification.py	Thu Jul 12 18:19:23 2018 +0200
@@ -72,11 +72,6 @@
     def getContent(self):
         return query_utility(ISecurityManager)
 
-    def updateWidgets(self, prefix=None):
-        super(SecurityManagerNotificationsEditForm, self).updateWidgets(prefix)
-        if 'signature' in self.widgets:
-            self.widgets['signature'].widget_css_class = 'textarea'
-
 
 @view_config(name='notifications.json', context=ISecurityManager, request_type=IPyAMSLayer,
              permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True)
--- a/src/pyams_security/zmi/plugin/group.py	Mon Jul 09 13:42:56 2018 +0200
+++ b/src/pyams_security/zmi/plugin/group.py	Thu Jul 12 18:19:23 2018 +0200
@@ -237,11 +237,6 @@
     ajax_handler = 'add-group.json'
     edit_permission = MANAGE_SYSTEM_PERMISSION
 
-    def updateWidgets(self, prefix=None):
-        super(LocalGroupAddForm, self).updateWidgets()
-        if 'description' in self.widgets:
-            self.widgets['description'].widget_css_class = 'textarea'
-
     def create(self, data):
         return Group()
 
@@ -299,11 +294,6 @@
     ajax_handler = 'properties.json'
     edit_permission = MANAGE_SYSTEM_PERMISSION
 
-    def updateWidgets(self, prefix=None):
-        super(LocalGroupEditForm, self).updateWidgets()
-        if 'description' in self.widgets:
-            self.widgets['description'].widget_css_class = 'textarea'
-
 
 @view_config(name='properties.json', context=ILocalGroup, request_type=IPyAMSLayer,
              permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True)