--- a/src/pyams_security/zmi/plugin/group.py Tue Nov 15 14:49:33 2016 +0100
+++ b/src/pyams_security/zmi/plugin/group.py Tue Nov 22 21:06:58 2016 +0100
@@ -187,7 +187,7 @@
super(GroupsFolderSearchView, self).__init__(context, request)
-@adapter_config(context=(IGroupsFolderPlugin, IAdminLayer, GroupsFolderSearchView), provides=IPageHeader)
+@adapter_config(context=(IGroupsFolderPlugin, IPyAMSLayer, GroupsFolderSearchView), provides=IPageHeader)
class GroupsFolderSearchViewHeaderAdapter(DefaultPageHeaderAdapter):
"""Groups folder search view header adapter"""
--- a/src/pyams_security/zmi/plugin/social.py Tue Nov 15 14:49:33 2016 +0100
+++ b/src/pyams_security/zmi/plugin/social.py Tue Nov 22 21:06:58 2016 +0100
@@ -145,26 +145,26 @@
@pagelet_config(name='search.html', context=ISocialUsersFolderPlugin, layer=IPyAMSLayer,
permission=VIEW_SYSTEM_PERMISSION)
-class SocialUsersFolderSearchView(AdminView, SearchView):
+class SocialUsersFolderSearchView(SearchView):
"""Social users folder search view"""
def __init__(self, context, request):
super(SocialUsersFolderSearchView, self).__init__(context, request)
-@adapter_config(context=(ISocialUsersFolderPlugin, IAdminLayer, SocialUsersFolderSearchView), provides=IPageHeader)
+@adapter_config(context=(ISocialUsersFolderPlugin, IPyAMSLayer, SocialUsersFolderSearchView), provides=IPageHeader)
class SocialUsersFolderSearchViewHeaderAdapter(DefaultPageHeaderAdapter):
"""Social users folder search view header adapter"""
back_url = '#security-manager.html'
+ back_target = '#content'
icon_class = 'fa fa-fw fa-share-alt'
+ title = _("Security manager")
@property
- def title(self):
+ def subtitle(self):
return self.context.title
- subtitle = _("Search users")
-
@view_config(name='search-results.html', context=ISocialUsersFolderPlugin, request_type=IPyAMSLayer,
permission=VIEW_SYSTEM_PERMISSION)