Changed GradingRecord heading/row templates to give more useful info.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 18:04:10 +0200
changeset 2633 c0343d4e2b0b
parent 2632 973e5e7ebd6e
child 2634 6e71545533b6
Changed GradingRecord heading/row templates to give more useful info.
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 12:52:54 2009 +0200
+++ b/app/soc/templates/soc/grading_record/list/heading.html	Mon Jul 13 18:04:10 2009 +0200
@@ -3,9 +3,8 @@
   <th>Student</th>
   <th>Organization</th>
   <th>Mentor</th>
-  <th>Grade</th>
-  <th>Mentor Eval</th>
+  <th>Final Grade</th>
+  <th>Mentor Grade</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 12:52:54 2009 +0200
+++ b/app/soc/templates/soc/grading_record/list/row.html	Mon Jul 13 18:04:10 2009 +0200
@@ -7,12 +7,16 @@
   <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">{{ list.item.grade_decision|capfirst }}</a></div></td>
   <td><div class="name">
       {% if list.item.mentor_record %}
-        Yes
+        {% if list.item.mentor_record.grade %}
+          Pass
+        {% else %}
+          Fail
+        {% endif %}
       {% else %}
-        No
+        Not Available
       {% endif %}
     </a></div>
   </td>
@@ -20,10 +24,9 @@
       {% if list.item.student_record %}
         Yes
       {% else %}
-        No
+        Not Available
       {% 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>