Added listing templates for GradingRecords.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 12 Jul 2009 16:00:32 +0200
changeset 2611 0fe19187a3bb
parent 2610 95949d4c45d9
child 2612 216002ba6b86
Added listing templates for GradingRecords.
app/soc/templates/soc/grading_record/list/heading.html
app/soc/templates/soc/grading_record/list/row.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_record/list/heading.html	Sun Jul 12 16:00:32 2009 +0200
@@ -0,0 +1,9 @@
+<tr align="left">
+  <th class="first" align="right">Project Name</th>
+  <th>Student</th>
+  <th>Organization</th>
+  <th>Mentor</th>
+  <th>Grade</th>
+  <th>Locked</th>
+  <th>Last Modified</th>
+</tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_record/list/row.html	Sun Jul 12 16:00:32 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 align="right"><div class="name"><a class="noul" onclick="do_redirect=false"
+         href="{{ list.redirect }}">{{ list.item.project.title }}</a>
+     </div>
+  </td>
+  <td><div class="date">{{ list.item.project.student.name }}</a></div></td>
+  <td><div class="date">{{ list.item.project.organization.name }}</a></div></td>
+  <td><div class="date">{{ list.item.project.mentor.name }}</a></div></td>
+  <td><div class="date">{{ list.item.grade_decision }}</a></div></td>
+  <td><div class="date">{{ list.item.locked }}</a></div></td>
+  <td><div class="date">{{ list.item.modified|date:"jS F Y H:i" }}</a></div></td>
+</tr>