Added new table templates for showing Suryves on the Project manage page.
Note that a system for showing SurveyRecords still needs to be committed.
--- /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 @@
+<tr align="left">
+ <th>Title</th>
+ <th>Taken by</th>
+ <th>Taken on</th>
+ <th>View</th>
+ <th>(Re)Take</th>
+</tr>
--- /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 @@
+<tr class="off" onmouseover="this.className='on'; do_redirect=true" onmouseout="this.className='off'"
+ onclick="if (do_redirect) document.location.href='{{ list.redirect }}'" name="name">
+ <td><div class="title">{{ list.item.title }}</div></td>
+ <td><div class="taken_by">{{ list.info.taken_by }}</div></td>
+ <td><div class="taken_on">{{ list.info.taken_on }}</div></td>
+ <td><div class="view_record">
+ {% if list.info.record %}
+ Record Available (TBD: Record Showing)
+ {% else %}
+ No Record Available
+ {% endif %}
+ </div></td>
+ <td><div class="take_survey"><a href={{ list.info.take_url}}>Click Here<a/></div></td>
+</tr>
--- /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 @@
+<tr align="left">
+ <th>Title</th>
+ <th>Taken by</th>
+ <th>Taken on</th>
+ <th>View</th>
+</tr>
--- /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 @@
+<tr class="off" onmouseover="this.className='on'; do_redirect=true" onmouseout="this.className='off'"
+ onclick="if (do_redirect) document.location.href='{{ list.redirect }}'" name="name">
+ <td><div class="title">{{ list.item.title }}</div></td>
+ <td><div class="taken_by">{{ list.info.taken_by }}</div></td>
+ <td><div class="taken_on">{{ list.info.taken_on }}</div></td>
+ <td><div class="links">
+ {% if list.info.record %}
+ Record Available (TBD: Record Showing)
+ {% else %}
+ No Record Available
+ {% endif %}
+ </div></td>
+</tr>
--- 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)
--- 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)