568 context['page_name'] = '%s %s' % (page_name, org_entity.name) |
568 context['page_name'] = '%s %s' % (page_name, org_entity.name) |
569 |
569 |
570 list_params = params.copy() |
570 list_params = params.copy() |
571 list_params['list_heading'] = params['manage_overview_heading'] |
571 list_params['list_heading'] = params['manage_overview_heading'] |
572 list_params['list_row'] = params['manage_overview_row'] |
572 list_params['list_row'] = params['manage_overview_row'] |
573 list_params['list_info'] = ( |
|
574 list_info.getStudentProjectSurveyInfo(org_entity.scope), None) |
|
575 |
573 |
576 #list all active projects |
574 #list all active projects |
577 fields['status'] = 'accepted' |
575 fields['status'] = 'accepted' |
578 active_params = list_params.copy() |
576 active_params = list_params.copy() |
579 active_params['list_description'] = \ |
577 active_params['list_description'] = \ |
580 'List of all active %(name_plural)s' % list_params |
578 'List of all active %(name_plural)s' % list_params |
581 active_params['list_action'] = (redirects.getManageRedirect, list_params) |
579 active_params['list_action'] = (redirects.getManageRedirect, list_params) |
582 |
580 |
583 active_list = lists.getListContent( |
581 active_list = lists.getListContent( |
584 request, active_params, fields, idx=0) |
582 request, active_params, fields, idx=0) |
|
583 # set the needed info |
|
584 active_list = list_info.setStudentProjectSurveyInfo(active_list, |
|
585 org_entity.scope) |
585 |
586 |
586 # list all failed projects |
587 # list all failed projects |
587 fields['status'] = 'failed' |
588 fields['status'] = 'failed' |
588 failed_params = list_params.copy() |
589 failed_params = list_params.copy() |
589 failed_params['list_description'] = ('List of all failed %(name_plural)s, ' |
590 failed_params['list_description'] = ('List of all failed %(name_plural)s, ' |
590 'these cannot be managed.') % list_params |
591 'these cannot be managed.') % list_params |
591 failed_params['list_action'] = (redirects.getPublicRedirect, list_params) |
592 failed_params['list_action'] = (redirects.getPublicRedirect, list_params) |
592 |
593 |
593 failed_list = lists.getListContent( |
594 failed_list = lists.getListContent( |
594 request, failed_params, fields, idx=1, need_content=True) |
595 request, failed_params, fields, idx=1, need_content=True) |
|
596 # set the needed info |
|
597 failed_list = list_info.setStudentProjectSurveyInfo(failed_list, |
|
598 org_entity.scope) |
595 |
599 |
596 #list all completed projects |
600 #list all completed projects |
597 fields['status'] = 'completed' |
601 fields['status'] = 'completed' |
598 completed_params = list_params.copy() |
602 completed_params = list_params.copy() |
599 completed_params['list_description'] = ('List of %(name_plural)s that have ' |
603 completed_params['list_description'] = ('List of %(name_plural)s that have ' |
601 'these cannot be managed.' % list_params) |
605 'these cannot be managed.' % list_params) |
602 completed_params['list_action'] = (redirects.getPublicRedirect, list_params) |
606 completed_params['list_action'] = (redirects.getPublicRedirect, list_params) |
603 |
607 |
604 completed_list = lists.getListContent( |
608 completed_list = lists.getListContent( |
605 request, completed_params, fields, idx=2, need_content=True) |
609 request, completed_params, fields, idx=2, need_content=True) |
|
610 # set the needed info |
|
611 completed_list = list_info.setStudentProjectSurveyInfo(completed_list, |
|
612 org_entity.scope) |
606 |
613 |
607 # always show the list with active projects |
614 # always show the list with active projects |
608 content = [active_list] |
615 content = [active_list] |
609 |
616 |
610 if failed_list != None: |
617 if failed_list != None: |