app/soc/views/models/club.py
changeset 1005 46b3e946a3e1
parent 1004 bfc8e9582c47
child 1006 6abf12b9e646
equal deleted inserted replaced
1004:bfc8e9582c47 1005:46b3e946a3e1
   227       submenu = (redirects.getListRolesRedirect(group_entity, params), 
   227       submenu = (redirects.getListRolesRedirect(group_entity, params), 
   228           "Manage Admins and Members", 'any_access')
   228           "Manage Admins and Members", 'any_access')
   229       submenus.append(submenu)
   229       submenus.append(submenu)
   230 
   230 
   231       # add a link to invite an admin
   231       # add a link to invite an admin
   232       submenu = (redirects.getInviteRedirect(group_entity, 'club_admin'), 
   232       submenu = (redirects.getInviteRedirectForRole(group_entity, 'club_admin'), 
   233           "Invite an Admin", 'any_access')
   233           "Invite an Admin", 'any_access')
   234       submenus.append(submenu)
   234       submenus.append(submenu)
   235 
   235 
   236       # add a link to invite a member
   236       # add a link to invite a member
   237       submenu = (redirects.getInviteRedirect(group_entity, 'club_member'), 
   237       submenu = (redirects.getInviteRedirectForRole(group_entity, 'club_member'), 
   238           "Invite a Member", 'any_access')
   238           "Invite a Member", 'any_access')
   239       submenus.append(submenu)
   239       submenus.append(submenu)
   240 
   240 
   241       # add a link to the request page
   241       # add a link to the request page
   242       submenu = (redirects.getListRequestsRedirect(group_entity, params), 
   242       submenu = (redirects.getListRequestsRedirect(group_entity, params), 
   243           "List Requests and Invites", 'any_access')
   243           "List Requests and Invites", 'any_access')
       
   244       submenus.append(submenu)
       
   245 
       
   246       # add a link to the edit page
       
   247       submenu = (redirects.getEditRedirect(group_entity, params), 
       
   248           "Edit Club Profile", 'any_access')
   244       submenus.append(submenu)
   249       submenus.append(submenu)
   245 
   250 
   246       # TODO(ljvderijk) add more usefull links, like resign as admin/member
   251       # TODO(ljvderijk) add more usefull links, like resign as admin/member
   247 
   252 
   248     return submenus
   253     return submenus