# HG changeset patch # User Damien Correia # Date 1528894328 -7200 # Node ID 1ea1df064e2545fe153e585fb16dbc581f7a0c74 # Parent 78a965e4fbb7975896310041e34db782993911bd# Parent e8af44ddd0ae9ac72578858759c98308bcb245c8 merge default diff -r 78a965e4fbb7 -r 1ea1df064e25 src/pyams_content/shared/imagemap/zmi/area.py --- a/src/pyams_content/shared/imagemap/zmi/area.py Wed Jun 13 13:26:37 2018 +0200 +++ b/src/pyams_content/shared/imagemap/zmi/area.py Wed Jun 13 14:52:08 2018 +0200 @@ -63,6 +63,9 @@ legend = _("Add new image area") + label_css_class = 'control-label col-md-2' + input_css_class = 'col-md-10' + @property def dialog_class(self): image = II18n(self.context).query_attribute('image', request=self.request) @@ -101,6 +104,9 @@ legend = _("Edit image map properties") + label_css_class = 'control-label col-md-2' + input_css_class = 'col-md-10' + @property def dialog_class(self): image = II18n(self.context.__parent__).query_attribute('image', request=self.request) diff -r 78a965e4fbb7 -r 1ea1df064e25 src/pyams_content/shared/view/zmi/render.py --- a/src/pyams_content/shared/view/zmi/render.py Wed Jun 13 13:26:37 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -# -# Copyright (c) 2008-2015 Thierry Florac -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# - -__docformat__ = 'restructuredtext' - - -# import standard library - -# import interfaces -from pyams_content.features.renderer.interfaces import IContentRenderer -from pyams_content.shared.view.interfaces import IWfView -from pyams_skin.layer import IPyAMSLayer - -# import packages -from pyams_content.features.renderer.skin import BaseContentRenderer -from pyams_template.template import template_config -from pyams_utils.adapter import adapter_config - - -@adapter_config(name='view-render', context=(IWfView, IPyAMSLayer), provides=IContentRenderer) -@template_config(template='templates/render.pt', layer=IPyAMSLayer) -class ViewRenderer(BaseContentRenderer): - """Shared view renderer""" - - weight = 20 - - @property - def items(self): - return self.context.get_results(self.context) diff -r 78a965e4fbb7 -r 1ea1df064e25 src/pyams_content/shared/view/zmi/templates/render.pt --- a/src/pyams_content/shared/view/zmi/templates/render.pt Wed Jun 13 13:26:37 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -
- View result items -
- WARNING: items displayed in this preview are out of context!! -
- -
-
-