Added template for editing GradingRecords.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 12:46:54 +0200
changeset 2629 0f25d9d27556
parent 2628 0440ac4e5f34
child 2630 99239a6d9098
Added template for editing GradingRecords.
app/soc/templates/soc/grading_record/edit.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_record/edit.html	Mon Jul 13 12:46:54 2009 +0200
@@ -0,0 +1,62 @@
+{% extends "soc/base.html" %}
+{% comment %}
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+{% load forms_helpers %}
+
+{% block body %}
+<p>
+<p>
+{% block instructions %}
+
+{% endblock %}
+</p>
+
+{% if error_message %}
+  <div class="error">{{ error_message|safe }}</div>
+{% endif %}
+
+<p>
+ <table>
+  {% readonly_field_as_table_row entity.grading_survey_group.fields.name.label entity.grading_survey_group.name %}
+  {% readonly_field_as_table_row "Student Project Title" entity.project.title %}
+  {% readonly_field_as_table_row "Organization Name" entity.project.scope.name %}
+  {% readonly_field_as_table_row "Mentor Name" entity.project.mentor.name %}
+  {% readonly_field_as_table_row "Student Name" entity.project.student.name %}
+ </table>
+</p>
+
+
+<form method="POST" action="?id={{ entity.key.id_or_name }}">
+  <table>
+    {% block form_table %}
+      {% as_table form %}
+    {% endblock %}
+  </table>
+  <table>
+  <tr>
+   <td colspan="4">&nbsp;</td>
+  </tr>
+  <tr>
+   <td> 
+    <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
+   </td>
+   <td>
+     <input type="button" value="Back to Previous Page" onClick="javascript:history.go(-1)">
+   </td>
+ </tr>
+ </table>
+</form>
+</p>
+
+{% endblock body %}