--- 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)
--- 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 <tflorac AT ulthar.net>
-# 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)
--- 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 @@
-<fieldset i18n:domain="pyams_content">
- <legend class="inner" i18n:translate="">View result items</legend>
- <div class="alert alert-info padding-5" i18n:translate="">
- WARNING: items displayed in this preview are out of context!!
- </div>
- <tal:loop repeat="item view.items">
- <span tal:content="i18n:item.title" /><br />
- </tal:loop>
-</fieldset>