Changed GradingRecord list templates to show more info.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 01:07:03 +0200
changeset 2621 4fef5b98c67b
parent 2620 f8b735c73563
child 2622 f37d7d564f88
Changed GradingRecord list templates to show more info. They now show wether or not a Mentor/Student eval has been found.
app/soc/templates/soc/grading_record/list/heading.html
app/soc/templates/soc/grading_record/list/row.html
--- a/app/soc/templates/soc/grading_record/list/heading.html	Mon Jul 13 01:00:59 2009 +0200
+++ b/app/soc/templates/soc/grading_record/list/heading.html	Mon Jul 13 01:07:03 2009 +0200
@@ -4,6 +4,8 @@
   <th>Organization</th>
   <th>Mentor</th>
   <th>Grade</th>
+  <th>Mentor Eval</th>
+  <th>Student Eval</th>
   <th>Locked</th>
   <th>Last Modified</th>
 </tr>
--- a/app/soc/templates/soc/grading_record/list/row.html	Mon Jul 13 01:00:59 2009 +0200
+++ b/app/soc/templates/soc/grading_record/list/row.html	Mon Jul 13 01:07:03 2009 +0200
@@ -4,10 +4,26 @@
          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.scope.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="name">{{ list.item.project.student.name }}</a></div></td>
+  <td><div class="name">{{ list.item.project.scope.name }}</a></div></td>
+  <td><div class="name">{{ list.item.project.mentor.name }}</a></div></td>
+  <td><div class="name">{{ list.item.grade_decision }}</a></div></td>
+  <td><div class="name">
+      {% if list.item.mentor_record %}
+        Yes
+      {% else %}
+        No
+      {% endif %}
+    </a></div>
+  </td>
+  <td><div class="name">
+      {% if list.item.student_record %}
+        Yes
+      {% else %}
+        No
+      {% endif %}
+    </a></div>
+  </td>
+  <td><div class="name">{{ list.item.locked }}</a></div></td>
   <td><div class="date">{{ list.item.modified|date:"jS F Y H:i" }}</a></div></td>
 </tr>