Added buttons to start tasks to GradingSurveyGroup Record view.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 00:53:42 +0200
changeset 2616 9321e100a7fb
parent 2615 08788ae10436
child 2617 274efd5c769d
Added buttons to start tasks to GradingSurveyGroup Record view. Also fixed an error in the GradingRecord row template.
app/soc/templates/soc/grading_record/list/row.html
app/soc/templates/soc/grading_survey_group/records.html
--- a/app/soc/templates/soc/grading_record/list/row.html	Sun Jul 12 22:25:43 2009 +0200
+++ b/app/soc/templates/soc/grading_record/list/row.html	Mon Jul 13 00:53:42 2009 +0200
@@ -5,7 +5,7 @@
      </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.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>
--- a/app/soc/templates/soc/grading_survey_group/records.html	Sun Jul 12 22:25:43 2009 +0200
+++ b/app/soc/templates/soc/grading_survey_group/records.html	Mon Jul 13 00:53:42 2009 +0200
@@ -20,9 +20,24 @@
   All records collected for this Grading Survey Group are shown on this page.
 </p>
 
+{{ message }}
+
+<form method="post">
+  <table>
+    <tr>
+      <td>
+        <input type="submit" name="update_records" value="Start Updating Records" style="font-weight: bold;">
+      </td>
+      <td>
+        <input type="submit" name="update_projects" value="Update Projects with collected Grades" style="font-weight: bold;">
+      </td>
+    </tr>
+  </table>
+</form>
+
 <p>
-  Collection Task last started: {{ entity.last_update_started|date:"jS F Y H:i"|default:"Never Started" }} <br />
-  Collection Task last completed: {{ entity.last_update_completed|date:"jS F Y H:i"|default:"Never Completed" }} <br />
+  Last Record Update started: {{ entity.last_update_started|date:"jS F Y H:i"|default:"Never Started" }} <br />
+  Last Record Update completed: {{ entity.last_update_complete|date:"jS F Y H:i"|default:"Never Completed" }} <br />
 </p>
 
 {% for list_number in list.lists %}