--- a/src/pyams_portal/zmi/portlet.py Wed Apr 11 11:35:07 2018 +0200
+++ b/src/pyams_portal/zmi/portlet.py Wed Apr 11 11:36:13 2018 +0200
@@ -36,6 +36,8 @@
class PortletSettingsEditor(AdminDialogEditForm):
"""Portlet settings edit form"""
+ prefix = 'portlet_properties.'
+
@property
def title(self):
translate = self.request.localizer.translate
@@ -85,7 +87,8 @@
class PortletSettingsPropertiesEditor(InnerAdminEditForm):
"""Portlet settings properties editor"""
- id = 'properties_form'
+ prefix = 'portlet_properties.'
+
tab_label = _("Main properties")
legend = None
--- a/src/pyams_portal/zmi/template.py Wed Apr 11 11:35:07 2018 +0200
+++ b/src/pyams_portal/zmi/template.py Wed Apr 11 11:36:13 2018 +0200
@@ -123,10 +123,3 @@
permission=MANAGE_TEMPLATE_PERMISSION, renderer='json', xhr=True)
class PortalTemplateAJAXAddForm(AJAXAddForm, PortalTemplateAddForm):
"""Portal template add form, AJAX handler"""
-
-
-@view_config(name='delete-element.json', context=IPortalTemplateContainer, request_type=IPyAMSLayer,
- permission=MANAGE_TEMPLATE_PERMISSION, renderer='json', xhr=True)
-def delete_portal_template(request):
- """Delete template from portal"""
- return delete_container_element(request)