app/soc/templates/soc/student_project/manage.html
author Lennard de Rijk
Sat, 25 Apr 2009 20:24:00 +0200
changeset 2278 c4d40ab98f71
parent 2113 edc9b84629a7
child 2279 e31414fd3b2a
permissions -rw-r--r--
Added functionality to set additional mentors for a Student Project. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed

{% 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 %}
Please use this form to change the Mentor for the Student Project.
{% endblock %}

{% 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">&nbsp;</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">&nbsp;</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 %}