# HG changeset patch # User Thierry Florac # Date 1543942129 -3600 # Node ID f62181d7974802ccac9d070ae33505f307df5118 # Parent 725409a83bafa0288b3f515237890a1bfe64533e Updated widget style diff -r 725409a83baf -r f62181d79748 src/pyams_content/shared/site/zmi/link.py --- a/src/pyams_content/shared/site/zmi/link.py Tue Dec 04 16:12:46 2018 +0100 +++ b/src/pyams_content/shared/site/zmi/link.py Tue Dec 04 17:48:49 2018 +0100 @@ -95,6 +95,8 @@ super(ContentLinkAddForm, self).updateWidgets(prefix) if 'parent' in self.widgets: self.widgets['parent'].permission = CREATE_CONTENT_PERMISSION + if 'navigation_header' in self.widgets: + self.widgets['navigation_header'].widget_css_class = 'input height-100' def create(self, data): return ContentLink() @@ -149,6 +151,11 @@ fields = field.Fields(IContentLink).select('reference', 'navigation_title', 'navigation_header') edit_permission = MANAGE_CONTENT_PERMISSION + def updateWidgets(self, prefix=None): + super(ContentLinkPropertiesEditForm, self).updateWidgets(prefix) + if 'navigation_header' in self.widgets: + self.widgets['navigation_header'].widget_css_class = 'input height-100' + def get_ajax_output(self, changes): output = super(self.__class__, self).get_ajax_output(changes) intids = get_utility(IIntIds) @@ -210,6 +217,8 @@ super(ExternalContentLinkAddForm, self).updateWidgets(prefix) if 'parent' in self.widgets: self.widgets['parent'].permission = CREATE_CONTENT_PERMISSION + if 'navigation_header' in self.widgets: + self.widgets['navigation_header'].widget_css_class = 'input height-100' def create(self, data): return ExternalContentLink() @@ -264,6 +273,11 @@ fields = field.Fields(IExternalContentLink).select('url', 'navigation_title', 'navigation_header') edit_permission = MANAGE_CONTENT_PERMISSION + def updateWidgets(self, prefix=None): + super(ExternalContentLinkPropertiesEditForm, self).updateWidgets(prefix) + if 'navigation_header' in self.widgets: + self.widgets['navigation_header'].widget_css_class = 'input height-100' + def get_ajax_output(self, changes): output = super(self.__class__, self).get_ajax_output(changes) intids = get_utility(IIntIds)