src/pyams_security/zmi/plugin/social.py
changeset 76 f63c594fe40c
parent 75 aeb3456af183
child 117 bab0e0098c8e
--- 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)