Added buttons to start tasks to GradingSurveyGroup Record view.
Also fixed an error in the GradingRecord row template.
--- 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 %}