Updated page header back link
authorThierry Florac <thierry.florac@onf.fr>
Tue, 15 Nov 2016 14:49:33 +0100
changeset 75 aeb3456af183
parent 74 794b6bee1440
child 76 f63c594fe40c
Updated page header back link
src/pyams_security/zmi/plugin/group.py
src/pyams_security/zmi/plugin/social.py
src/pyams_security/zmi/plugin/userfolder.py
--- a/src/pyams_security/zmi/plugin/group.py	Tue Nov 15 14:14:54 2016 +0100
+++ b/src/pyams_security/zmi/plugin/group.py	Tue Nov 15 14:49:33 2016 +0100
@@ -192,6 +192,7 @@
     """Groups folder search view header adapter"""
 
     back_url = '#security-manager.html'
+    back_target = '#content'
     icon_class = 'fa fa-fw fa-users'
     title = _("Security manager")
 
--- a/src/pyams_security/zmi/plugin/social.py	Tue Nov 15 14:14:54 2016 +0100
+++ b/src/pyams_security/zmi/plugin/social.py	Tue Nov 15 14:49:33 2016 +0100
@@ -369,6 +369,7 @@
 class SecurityManagerSocialProvidersHeaderAdapter(DefaultPageHeaderAdapter):
     """Security manager social providers header adapter"""
 
+    back_url = '#security-manager.html'
     icon_class = 'fa fa-fw fa-share-alt'
     title = _("Security manager")
     subtitle = _("Social networks login providers")
--- a/src/pyams_security/zmi/plugin/userfolder.py	Tue Nov 15 14:14:54 2016 +0100
+++ b/src/pyams_security/zmi/plugin/userfolder.py	Tue Nov 15 14:49:33 2016 +0100
@@ -153,6 +153,7 @@
     """Users folder search view header adapter"""
 
     back_url = '#security-manager.html'
+    back_target = '#content'
     icon_class = 'fa fa-fw fa-user'
     title = _("Security manager")