Added a Create a New Program link to the Program Owners's menu.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/sponsor.py Sat Jan 31 12:35:40 2009 +0000
+++ b/app/soc/views/models/sponsor.py Sat Jan 31 12:36:06 2009 +0000
@@ -80,6 +80,11 @@
roles = role_description['roles']
if roles.get('host'):
+ # add a link to create a new program
+ submenu = (redirects.getCreateRedirect(group_entity,
+ {'url_name': 'program'}),"Create a new Program", 'any_access')
+ submenus.append(submenu)
+
# add a link to the management page
submenu = (redirects.getListRolesRedirect(group_entity, params),
"Manage Program Administrators", 'any_access')