app/soc/views/models/program.py
changeset 2495 0113c2de89d3
parent 2479 b83c9b1ea0e1
child 2509 3788c916776f
equal deleted inserted replaced
2494:c312f1b1939c 2495:0113c2de89d3
   670             "Create a New Document", 'any_access')]
   670             "Create a New Document", 'any_access')]
   671         # add link to list all Program Document
   671         # add link to list all Program Document
   672         items += [(redirects.getListDocumentsRedirect(entity, 'program'),
   672         items += [(redirects.getListDocumentsRedirect(entity, 'program'),
   673             "List Documents", 'any_access')]
   673             "List Documents", 'any_access')]
   674         # add link to create a new Program Survey
   674         # add link to create a new Program Survey
   675         items += [(redirects.getCreateSurveyRedirect(entity, 'program'),
   675         items += [(redirects.getCreateSurveyRedirect(entity, 'program',
       
   676                                                      'survey'),
   676             "Create a New Survey", 'any_access')]
   677             "Create a New Survey", 'any_access')]
   677         # add link to list all Program Surveys
   678         # add link to list all Program Surveys
   678         items += [(redirects.getListSurveysRedirect(entity, 'program'),
   679         items += [(redirects.getListSurveysRedirect(entity, 'program',
       
   680                                                     'survey'),
   679             "List Surveys", 'any_access')]
   681             "List Surveys", 'any_access')]
       
   682         # add link to create a new Project Survey
       
   683         items += [(redirects.getCreateSurveyRedirect(entity, 'program',
       
   684                                                      'project_survey'),
       
   685             "Create a New Project Survey", 'any_access')]
       
   686         # add link to list all Project Surveys
       
   687         items += [(redirects.getListSurveysRedirect(entity, 'program',
       
   688                                                     'project_survey'),
       
   689             "List Project Surveys", 'any_access')]
       
   690         # add link to create a new Grading Survey
       
   691         items += [(redirects.getCreateSurveyRedirect(entity, 'program',
       
   692                                                      'grade_survey'),
       
   693             "Create a New Grading Survey", 'any_access')]
       
   694         # add link to list all Grading Surveys
       
   695         items += [(redirects.getListSurveysRedirect(entity, 'program',
       
   696                                                     'grade_survey'),
       
   697             "List Grading Surveys", 'any_access')]
   680 
   698 
   681       except out_of_band.Error:
   699       except out_of_band.Error:
   682         pass
   700         pass
   683 
   701 
   684       items = sidebar.getSidebarMenu(id, user, items, params=params)
   702       items = sidebar.getSidebarMenu(id, user, items, params=params)