use ControlPanelFormWrapper for settings panel
This commit is contained in:
parent
9bf2eda4bb
commit
5ab0446622
|
@ -7,6 +7,8 @@ from plone.autoform.directives import widget
|
|||
from collective.z3cform.datagridfield import DataGridFieldFactory
|
||||
from collective.z3cform.datagridfield.registry import DictRow
|
||||
|
||||
from plone.app.registry.browser import controlpanel
|
||||
|
||||
|
||||
from . import _
|
||||
|
||||
|
@ -28,6 +30,13 @@ class ISettings(Interface):
|
|||
class BatchImporter(BrowserView):
|
||||
pass
|
||||
|
||||
class ControlPanel(BrowserView):
|
||||
pass
|
||||
|
||||
class ControlPanelEditForm(controlpanel.RegistryEditForm):
|
||||
schema = ISettings
|
||||
label = _(u'Batch Import Settings')
|
||||
description = u''
|
||||
|
||||
|
||||
class ControlPanel(controlpanel.ControlPanelFormWrapper):
|
||||
form = ControlPanelEditForm
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
name="batchimport-controlpanel"
|
||||
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
||||
class=".batchimport.ControlPanel"
|
||||
template="controlpanel.pt"
|
||||
permission="cmf.ManagePortal"
|
||||
/>
|
||||
|
||||
|
|
Reference in New Issue