# HG changeset patch # User Thierry Florac # Date 1531412295 -7200 # Node ID 7f0d72e427b1577aa3a3ac23fe537a186c3405f8 # Parent d50743e696936397511dcdf3e58e9debecf39aaf Updated text areas CSS class diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/extfile/zmi/__init__.py --- a/src/pyams_content/component/extfile/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/extfile/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -106,11 +106,6 @@ fields = field.Fields(IExtFile).select('data', 'filename', 'title', 'description', 'author', 'language') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(ExtFileAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): factory = EXTERNAL_FILES_FACTORIES.get('file') if factory is not None: @@ -142,11 +137,6 @@ fields = field.Fields(IExtFile).select('data', 'filename', 'title', 'description', 'author', 'language') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(ExtFilePropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): if ('title' in changes.get(IBaseExtFile, ())) or \ ('filename' in changes.get(IBaseExtFile, ())) or \ diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/gallery/zmi/__init__.py --- a/src/pyams_content/component/gallery/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/gallery/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -68,11 +68,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(GalleryPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): if 'title' in changes.get(IGallery, ()): return { diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/gallery/zmi/file.py --- a/src/pyams_content/component/gallery/zmi/file.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/gallery/zmi/file.py Thu Jul 12 18:18:15 2018 +0200 @@ -76,11 +76,6 @@ fields = field.Fields(IGalleryMediasAddFields) edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(GalleryMediaAddForm, self).updateWidgets(prefix) - if 'author_comments' in self.widgets: - self.widgets['author_comments'].widget_css_class = 'textarea' - def create(self, data): medias = [] medias_data = data['medias_data'] @@ -199,15 +194,9 @@ def updateWidgets(self, prefix=None): super(GalleryFilePropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - if 'author_comments' in self.widgets: - self.widgets['author_comments'].widget_css_class = 'textarea' if 'pif_number' in self.widgets: self.widgets['pif_number'].input_css_class = 'col-md-3' - if 'sound_description' in self.widgets: - self.widgets['sound_description'].widget_css_class = 'textarea' - + def updateGroups(self): self.add_group(NamedWidgetsGroup(self, 'audio_file', self.widgets, ('sound', 'sound_title', 'sound_description'), diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/gallery/zmi/paragraph.py --- a/src/pyams_content/component/gallery/zmi/paragraph.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/gallery/zmi/paragraph.py Thu Jul 12 18:18:15 2018 +0200 @@ -72,11 +72,6 @@ fields = field.Fields(IGalleryParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(GalleryAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return Gallery() @@ -101,11 +96,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(GalleryPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): updated = changes.get(IBaseGallery, ()) if 'title' in updated: diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/illustration/zmi/__init__.py --- a/src/pyams_content/component/illustration/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/illustration/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -122,11 +122,6 @@ if not IBaseParagraph.providedBy(self.context): return 'open' - def updateWidgets(self, prefix=None): - super(IllustrationPropertiesInnerEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): output = super(IllustrationPropertiesInnerEditForm, self).get_ajax_output(changes) events = output.setdefault('events', []) diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/illustration/zmi/paragraph.py --- a/src/pyams_content/component/illustration/zmi/paragraph.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/illustration/zmi/paragraph.py Thu Jul 12 18:18:15 2018 +0200 @@ -79,11 +79,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(IllustrationAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return Illustration() @@ -110,11 +105,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(IllustrationPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): output = super(self.__class__, self).get_ajax_output(changes) if 'title' in changes.get(IIllustration, ()): diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/keynumber/portlet/zmi/__init__.py --- a/src/pyams_content/component/keynumber/portlet/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/keynumber/portlet/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -55,11 +55,6 @@ class KeyNumberPortletSettingsPropertiesEditor(PortletSettingsPropertiesEditor): """Key number portlet settings properties editor""" - def updateWidgets(self, prefix=None): - super().updateWidgets(prefix) - if 'teaser' in self.widgets: - self.widgets['teaser'].widget_css_class = 'textarea' - @adapter_config(name='properties.json', context=(IKeyNumberPortletSettings, IPyAMSLayer), provides=IPagelet) class KeyNumberPortletAJAXEditor(AJAXEditForm, KeyNumberPortletEditor): diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/links/zmi/__init__.py --- a/src/pyams_content/component/links/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/links/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -94,11 +94,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(InternalLinkAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return InternalLink() @@ -131,11 +126,6 @@ edit_permission = None # defined by IFormContextPermissionChecker adapter - def updateWidgets(self, prefix=None): - super(InternalLinkPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): if ('title' in changes.get(IBaseLink, ())) or \ ('reference' in changes.get(IInternalLink, ())): @@ -193,11 +183,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(ExternalLinkAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return ExternalLink() @@ -230,11 +215,6 @@ edit_permission = None # defined by IFormContextPermissionChecker adapter - def updateWidgets(self, prefix=None): - super(ExternalLinkPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): if ('title' in changes.get(IBaseLink, ())) or \ ('url' in changes.get(IExternalLink, ())): @@ -292,11 +272,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(MailtoLinkAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return MailtoLink() @@ -328,11 +303,6 @@ edit_permission = None # defined by IFormContextPermissionChecker adapter - def updateWidgets(self, prefix=None): - super(MailtoLinkPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): if ('title' in changes.get(IBaseLink, ())) or changes.get(IMailtoLink, ()): return self.get_associations_table() diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/paragraph/zmi/audio.py --- a/src/pyams_content/component/paragraph/zmi/audio.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/audio.py Thu Jul 12 18:18:15 2018 +0200 @@ -70,11 +70,6 @@ fields = field.Fields(IAudioParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(AudioParagraphAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return AudioParagraph() @@ -99,11 +94,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(AudioParagraphPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - @adapter_config(context=(IAudioParagraph, IPyAMSLayer), provides=IParagraphInnerEditor) @ajax_config(name='inner-properties.json', context=IAudioParagraph, layer=IPyAMSLayer, diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/paragraph/zmi/contact.py --- a/src/pyams_content/component/paragraph/zmi/contact.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/contact.py Thu Jul 12 18:18:15 2018 +0200 @@ -70,11 +70,6 @@ fields = field.Fields(IContactParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(ContactParagraphAddForm, self).updateWidgets(prefix) - if 'address' in self.widgets: - self.widgets['address'].widget_css_class = 'textarea' - def create(self, data): return ContactParagraph() @@ -99,11 +94,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(ContactParagraphPropertiesEditForm, self).updateWidgets(prefix) - if 'address' in self.widgets: - self.widgets['address'].widget_css_class = 'textarea' - @adapter_config(context=(IContactParagraph, IPyAMSLayer), provides=IParagraphInnerEditor) @ajax_config(name='inner-properties.json', context=IContactParagraph, layer=IPyAMSLayer, diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/paragraph/zmi/frame.py --- a/src/pyams_content/component/paragraph/zmi/frame.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/frame.py Thu Jul 12 18:18:15 2018 +0200 @@ -104,11 +104,6 @@ fields = field.Fields(IFrameParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(FrameParagraphAddForm, self).updateWidgets(prefix) - if 'body' in self.widgets: - self.widgets['body'].widget_css_class = 'textarea' - def create(self, data): return FrameParagraph() @@ -144,7 +139,6 @@ for lang in body_widget.langs: widget = body_widget.widgets[lang] widget.id = '{id}_{name}'.format(id=widget.id, name=self.context.__name__) - body_widget.widget_css_class = 'textarea' def get_ajax_output(self, changes): output = super(self.__class__, self).get_ajax_output(changes) diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/paragraph/zmi/html.py --- a/src/pyams_content/component/paragraph/zmi/html.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/html.py Thu Jul 12 18:18:15 2018 +0200 @@ -178,11 +178,6 @@ fields = field.Fields(IHTMLParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(HTMLParagraphAddForm, self).updateWidgets(prefix) - if 'body' in self.widgets: - self.widgets['body'].widget_css_class = 'textarea' - def create(self, data): return HTMLParagraph() @@ -217,7 +212,6 @@ for lang in body_widget.langs: widget = body_widget.widgets[lang] widget.id = '{id}_{name}'.format(id=widget.id, name=self.context.__name__) - body_widget.widget_css_class = 'textarea' def get_ajax_output(self, changes): output = super(self.__class__, self).get_ajax_output(changes) diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/paragraph/zmi/verbatim.py --- a/src/pyams_content/component/paragraph/zmi/verbatim.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/verbatim.py Thu Jul 12 18:18:15 2018 +0200 @@ -72,11 +72,6 @@ fields = field.Fields(IVerbatimParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(VerbatimParagraphAddForm, self).updateWidgets(prefix) - if 'quote' in self.widgets: - self.widgets['quote'].widget_css_class = 'textarea' - def create(self, data): return VerbatimParagraph() @@ -101,11 +96,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(VerbatimParagraphPropertiesEditForm, self).updateWidgets(prefix) - if 'quote' in self.widgets: - self.widgets['quote'].widget_css_class = 'textarea' - @adapter_config(context=(IVerbatimParagraph, IPyAMSLayer), provides=IParagraphInnerEditor) @ajax_config(name='inner-properties.json', context=IVerbatimParagraph, layer=IPyAMSLayer, diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/paragraph/zmi/video.py --- a/src/pyams_content/component/paragraph/zmi/video.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/video.py Thu Jul 12 18:18:15 2018 +0200 @@ -70,11 +70,6 @@ fields = field.Fields(IVideoParagraph).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(VideoParagraphAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return VideoParagraph() @@ -100,11 +95,6 @@ edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(VideoParagraphPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - @adapter_config(context=(IVideoParagraph, IPyAMSLayer), provides=IParagraphInnerEditor) @ajax_config(name='inner-properties.json', context=IVideoParagraph, layer=IPyAMSLayer, diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/component/video/zmi/paragraph.py --- a/src/pyams_content/component/video/zmi/paragraph.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/component/video/zmi/paragraph.py Thu Jul 12 18:18:15 2018 +0200 @@ -81,8 +81,6 @@ def updateWidgets(self, prefix=None): super(ExternalVideoParagraphAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' if 'provider_name' in self.widgets: widget = self.widgets['provider_name'] widget.object_data = { @@ -142,7 +140,6 @@ def updateGroups(self): if 'integration_code' in self.widgets: # custom video provider - self.widgets['integration_code'].widget_css_class = 'textarea' self.add_group(NamedWidgetsGroup(self, 'integration_code', self.widgets, ('integration_code', ), bordered=False)) elif 'video_id' in self.widgets: @@ -206,8 +203,6 @@ def updateWidgets(self, prefix=None): super(ExternalVideoParagraphPropertiesEditForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' if 'provider_name' in self.widgets: self.widgets['provider_name'].mode = DISPLAY_MODE @@ -216,7 +211,6 @@ provider = self.context.get_provider() if provider is not None: if 'integration_code' in self.widgets: # custom video provider - self.widgets['integration_code'].widget_css_class = 'textarea' self.add_group(NamedWidgetsGroup(self, 'integration_code', self.widgets, ('integration_code',), bordered=False)) elif 'video_id' in self.widgets: diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/features/review/zmi/__init__.py --- a/src/pyams_content/features/review/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/features/review/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -111,7 +111,6 @@ def updateWidgets(self, prefix=None): super(WfSharedContentReviewForm, self).updateWidgets(prefix) if 'comment' in self.widgets: - self.widgets['comment'].widget_css_class = 'textarea' self.widgets['comment'].addClass('height-100') def updateActions(self): diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/shared/common/zmi/__init__.py --- a/src/pyams_content/shared/common/zmi/__init__.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/shared/common/zmi/__init__.py Thu Jul 12 18:18:15 2018 +0200 @@ -82,8 +82,6 @@ super(SharedContentAddForm, self).updateWidgets(prefix) if 'title' in self.widgets: self.widgets['title'].description = _("This title can be modified afterwards") - if 'notepad' in self.widgets: - self.widgets['notepad'].widget_css_class = 'textarea' def create(self, data): return self.context.shared_content_factory.content_class() @@ -290,11 +288,6 @@ edit_permission = CREATE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(WfSharedContentDuplicateForm, self).updateWidgets(prefix) - if 'comment' in self.widgets: - self.widgets['comment'].widget_css_class = 'textarea' - def updateActions(self): super(WfSharedContentDuplicateForm, self).updateActions() if 'duplicate' in self.actions: diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/shared/common/zmi/properties.py --- a/src/pyams_content/shared/common/zmi/properties.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/shared/common/zmi/properties.py Thu Jul 12 18:18:15 2018 +0200 @@ -90,10 +90,6 @@ super(SharedContentPropertiesEditForm, self).updateWidgets(prefix) if 'short_name' in self.widgets: self.widgets['short_name'].set_mode(HIDDEN_MODE) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - if 'notepad' in self.widgets: - self.widgets['notepad'].widget_css_class = 'textarea' def get_ajax_output(self, changes): updated = changes.get(IBaseContent, ()) diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/shared/form/zmi/field.py --- a/src/pyams_content/shared/form/zmi/field.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/shared/form/zmi/field.py Thu Jul 12 18:18:15 2018 +0200 @@ -243,11 +243,6 @@ fields = field.Fields(IFormField).omit('__parent__', '__name__', 'visible') edit_permission = MANAGE_CONTENT_PERMISSION - def updateWidgets(self, prefix=None): - super(FormFieldAddForm, self).updateWidgets(prefix) - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' - def create(self, data): return FormField() @@ -290,8 +285,6 @@ super(FormFieldPropertiesEditForm, self).updateWidgets(prefix) if 'name' in self.widgets: self.widgets['name'].mode = DISPLAY_MODE - if 'description' in self.widgets: - self.widgets['description'].widget_css_class = 'textarea' def get_ajax_output(self, changes): output = super(self.__class__, self).get_ajax_output(changes) diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/shared/form/zmi/properties.py --- a/src/pyams_content/shared/form/zmi/properties.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/shared/form/zmi/properties.py Thu Jul 12 18:18:15 2018 +0200 @@ -44,11 +44,6 @@ fields = field.Fields(IWfForm).select('user_title', 'header', 'handler', 'auth_only', 'use_captcha', 'submit_label') weight = 1 - def updateWidgets(self, prefix=None): - super(FormPropertiesEditForm, self).updateWidgets(prefix) - if 'header' in self.widgets: - self.widgets['header'].widget_css_class = 'textarea' - def get_ajax_output(self, changes): if 'handler' in changes.get(IWfForm, ()): return { diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/shared/form/zmi/render.py --- a/src/pyams_content/shared/form/zmi/render.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/shared/form/zmi/render.py Thu Jul 12 18:18:15 2018 +0200 @@ -55,8 +55,6 @@ field = IFormFieldContainer(self.context).get(widget.field.__name__) if field is not None: widget.placeholder = field.placeholder - if field.field_type == 'text': - widget.widget_css_class = 'textarea' @adapter_config(context=(IFormFieldContainerTarget, IPyAMSLayer, FormFieldContainerDisplayForm), diff -r d50743e69693 -r 7f0d72e427b1 src/pyams_content/shared/site/zmi/folder.py --- a/src/pyams_content/shared/site/zmi/folder.py Thu Jul 12 17:35:51 2018 +0200 +++ b/src/pyams_content/shared/site/zmi/folder.py Thu Jul 12 18:18:15 2018 +0200 @@ -102,8 +102,6 @@ super(SiteFolderAddForm, self).updateWidgets(prefix) if 'parent' in self.widgets: self.widgets['parent'].permission = MANAGE_SITE_PERMISSION - if 'notepad' in self.widgets: - self.widgets['notepad'].widget_css_class = 'textarea' def create(self, data): registry = self.request.registry @@ -192,13 +190,6 @@ fields = field.Fields(ISiteFolder).select('title', 'short_name', 'heading', 'navigation_title', 'notepad') + \ field.Fields(IBaseSharedTool).select('shared_content_workflow') - def updateWidgets(self, prefix=None): - super(SiteFolderPropertiesEditForm, self).updateWidgets(prefix) - if 'heading' in self.widgets: - self.widgets['heading'].widget_css_class = 'textarea' - if 'notepad' in self.widgets: - self.widgets['notepad'].widget_css_class = 'textarea' - @view_config(name='properties.json', context=ISiteFolder, request_type=IPyAMSLayer, permission=MANAGE_TOOL_PERMISSION, renderer='json', xhr=True)