app/soc/views/models/sponsor.py
changeset 1104 02997d6661fa
parent 1097 1f7015b33a0c
child 1144 f89bbc9b20a6
equal deleted inserted replaced
1103:794162cfca92 1104:02997d6661fa
    78 
    78 
    79     group_entity = role_description['group']
    79     group_entity = role_description['group']
    80     roles = role_description['roles']
    80     roles = role_description['roles']
    81   
    81   
    82     if roles.get('host'):
    82     if roles.get('host'):
       
    83       # add a link to create a new program
       
    84       submenu = (redirects.getCreateRedirect(group_entity,
       
    85           {'url_name': 'program'}),"Create a new Program", 'any_access')
       
    86       submenus.append(submenu)
       
    87 
    83       # add a link to the management page
    88       # add a link to the management page
    84       submenu = (redirects.getListRolesRedirect(group_entity, params), 
    89       submenu = (redirects.getListRolesRedirect(group_entity, params), 
    85           "Manage Program Administrators", 'any_access')
    90           "Manage Program Administrators", 'any_access')
    86       submenus.append(submenu)
    91       submenus.append(submenu)
    87 
    92