--- a/app/soc/templates/soc/student_project/manage.html Sat Apr 25 20:22:13 2009 +0200
+++ b/app/soc/templates/soc/student_project/manage.html Sat Apr 25 20:24:00 2009 +0200
@@ -1,4 +1,4 @@
-{% extends "soc/models/edit.html" %}
+{% 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.
@@ -12,8 +12,69 @@
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
+{% load forms_helpers %}
+
+{% block body %}
+<p>
+<p>
{% block instructions %}
-Please use this form to change the Mentor for the {{ entity_type }}.
+Please use this form to change the Mentor for the Student Project.
{% endblock %}
-{% block delete_button %}
-{% endblock %}
\ No newline at end of file
+
+{% if error_message %}
+ <div class="error">{{ error_message|safe }}</div>
+{% endif %}
+
+<form method="POST">
+ <table>
+ {% as_table mentor_edit_form %}
+ </table>
+ <table>
+ <tr>
+ <td colspan="4"> </td>
+ </tr>
+ <tr>
+ <td>
+ <input style="font-weight: bold" type="submit" value="Submit" name="set_mentor"/></span>
+ </td>
+ <td>
+ <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">
+ </td>
+ </tr>
+ </table>
+</form>
+<p/>
+
+<b> Additional Mentors </b><br/>
+
+<table>
+ {% for mentor in additional_mentors %}
+ <tr>
+ <td>
+ {{ mentor.name }}
+ </td>
+ <td>
+ <input type="button" onclick="location.href='?remove={{ mentor.link_id }}'" value="Remove"/>
+ </td>
+ {% endfor %}
+</table>
+
+<form method="POST">
+ <table>
+ {% as_table additional_mentor_form %}
+ </table>
+ <table>
+ <tr>
+ <td colspan="4"> </td>
+ </tr>
+ <tr>
+ <td>
+ <input style="font-weight: bold" type="submit" value="Add" name="add_additional_mentor"/></span>
+ </td>
+ <td>
+ <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">
+ </td>
+ </tr>
+ </table>
+</form>
+{% endblock %}