# HG changeset patch # User Lennard de Rijk # Date 1248938976 -7200 # Node ID ada26cef0b068c45759bb19d1fca19be52b0efcb # Parent 506cda0463e872b573a18651bc5191e93474f598 Added new table templates for showing Suryves on the Project manage page. Note that a system for showing SurveyRecords still needs to be committed. diff -r 506cda0463e8 -r ada26cef0b06 app/soc/templates/soc/grading_project_survey/list/heading_manage_student_project.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/grading_project_survey/list/heading_manage_student_project.html Thu Jul 30 09:29:36 2009 +0200 @@ -0,0 +1,7 @@ + + Title + Taken by + Taken on + View + (Re)Take + diff -r 506cda0463e8 -r ada26cef0b06 app/soc/templates/soc/grading_project_survey/list/row_manage_student_project.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/grading_project_survey/list/row_manage_student_project.html Thu Jul 30 09:29:36 2009 +0200 @@ -0,0 +1,14 @@ + +
{{ list.item.title }}
+
{{ list.info.taken_by }}
+
{{ list.info.taken_on }}
+
+ {% if list.info.record %} + Record Available (TBD: Record Showing) + {% else %} + No Record Available + {% endif %} +
+
Click Here
+ diff -r 506cda0463e8 -r ada26cef0b06 app/soc/templates/soc/project_survey/list/heading_manage_student_project.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/project_survey/list/heading_manage_student_project.html Thu Jul 30 09:29:36 2009 +0200 @@ -0,0 +1,6 @@ + + Title + Taken by + Taken on + View + diff -r 506cda0463e8 -r ada26cef0b06 app/soc/templates/soc/project_survey/list/row_manage_student_project.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/project_survey/list/row_manage_student_project.html Thu Jul 30 09:29:36 2009 +0200 @@ -0,0 +1,13 @@ + +
{{ list.item.title }}
+
{{ list.info.taken_by }}
+
{{ list.info.taken_on }}
+ + diff -r 506cda0463e8 -r ada26cef0b06 app/soc/views/models/grading_project_survey.py --- a/app/soc/views/models/grading_project_survey.py Tue Jul 28 11:23:11 2009 +0200 +++ b/app/soc/views/models/grading_project_survey.py Thu Jul 30 09:29:36 2009 +0200 @@ -69,6 +69,11 @@ # used for sending reminders new_params['survey_type'] = 'grading' + new_params['manage_student_project_heading'] = \ + 'soc/grading_project_survey/list/heading_manage_student_project.html' + new_params['manage_student_project_row'] = \ + 'soc/grading_project_survey/list/row_manage_student_project.html' + params = dicts.merge(params, new_params, sub_merge=True) super(View, self).__init__(params=params) diff -r 506cda0463e8 -r ada26cef0b06 app/soc/views/models/project_survey.py --- a/app/soc/views/models/project_survey.py Tue Jul 28 11:23:11 2009 +0200 +++ b/app/soc/views/models/project_survey.py Thu Jul 30 09:29:36 2009 +0200 @@ -75,6 +75,10 @@ # used for sending reminders new_params['survey_type'] = 'project' new_params['reminder_template'] = 'soc/project_survey/reminder.html' + new_params['manage_student_project_heading'] = \ + 'soc/project_survey/list/heading_manage_student_project.html' + new_params['manage_student_project_row'] = \ + 'soc/project_survey/list/row_manage_student_project.html' params = dicts.merge(params, new_params, sub_merge=True)