Mobile menu for login not active

23 views
Skip to first unread message

Maurice Waka

unread,
Apr 25, 2020, 3:07:49 PM4/25/20
to web2py-users
Hello 
I know guys have busy schedules but please help here

On my mobile app, I have trouble logging out when using the menu option since the logout, profile, password options are inactive.
How can I activate them or the sub-menus? Only the highlighted menu is active
See attached.
Regards
Screenshot from 2020-04-25 22-03-38.png

Maurice Waka

unread,
Apr 26, 2020, 3:36:04 AM4/26/20
to web...@googlegroups.com
Hello, 
I'm still searching for help.
on desktop this works well. But on mobile, the menu seems to be disabled.

This is my code:

response.menu = [
   
(T('Home'), False, URL(request.application,'default','index'), []),
   
]
if auth.has_membership('admin'):#if auth.has_membership('Expert'):
    response
.menu = [
   
(T('Questions'), False, URL('que_forum', 'expert_homepage'), []),
   
(T('My Questions'), False, URL('que_forum', 'myquestions'), []),
   
(T('Notifications'), False, URL('que_forum', 'noti'), [])]


else:
    response
.menu = [
   
(T('Questions'), False, URL('que_forum', 'expert_homepage'), []),
   
(T('Search'), False, URL('default', 'search'), []),
   
(T('Feedback'), False, URL('default', 'feedback'), []),
   
(T('Notifications'), False, URL('que_forum', 'noti'), [])]


if auth.has_membership('user_7'):
    response
.menu.append((T('Admin Space'),False,None,[
   
(T('Manage Users'), False, URL('que_forum', 'manage'), [])]))


if auth.has_membership('Super_admin'):
    response
.menu.append((T('Admin Management'),False,None,[
   
(T('Manage Users'), False, URL('que_forum', 'manage'), []),
   
(T('Manage Groups'), False, URL('plugin_web2admin', 'plugin_web2admin'), [])]))
Reply all
Reply to author
Forward
0 new messages