app/soc/templates/soc/student_project/manage.html
changeset 2278 c4d40ab98f71
parent 2113 edc9b84629a7
child 2279 e31414fd3b2a
equal deleted inserted replaced
2277:96082450e62c 2278:c4d40ab98f71
     1 {% extends "soc/models/edit.html" %}
     1 {% extends "soc/base.html" %}
     2 {% comment %}
     2 {% comment %}
     3 Licensed under the Apache License, Version 2.0 (the "License");
     3 Licensed under the Apache License, Version 2.0 (the "License");
     4 you may not use this file except in compliance with the License.
     4 you may not use this file except in compliance with the License.
     5 You may obtain a copy of the License at
     5 You may obtain a copy of the License at
     6 
     6 
    10 distributed under the License is distributed on an "AS IS" BASIS,
    10 distributed under the License is distributed on an "AS IS" BASIS,
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12 See the License for the specific language governing permissions and
    12 See the License for the specific language governing permissions and
    13 limitations under the License.
    13 limitations under the License.
    14 {% endcomment %}
    14 {% endcomment %}
       
    15 {% load forms_helpers %}
       
    16 
       
    17 {% block body %}
       
    18 <p>
       
    19 <p>
    15 {% block instructions %}
    20 {% block instructions %}
    16 Please use this form to change the Mentor for the {{ entity_type }}.
    21 Please use this form to change the Mentor for the Student Project.
    17 {% endblock %}
    22 {% endblock %}
    18 {% block delete_button %}
    23 
       
    24 {% if error_message %}
       
    25   <div class="error">{{ error_message|safe }}</div>
       
    26 {% endif %}
       
    27 
       
    28 <form method="POST">
       
    29   <table>
       
    30     {% as_table mentor_edit_form %}
       
    31   </table>
       
    32   <table>
       
    33   <tr>
       
    34    <td colspan="4">&nbsp;</td>
       
    35   </tr>
       
    36   <tr>
       
    37     <td> 
       
    38       <input style="font-weight: bold" type="submit" value="Submit" name="set_mentor"/></span>
       
    39     </td>
       
    40     <td>
       
    41       <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">
       
    42     </td>
       
    43   </tr>
       
    44  </table>
       
    45 </form>
       
    46 <p/>
       
    47 
       
    48 <b> Additional Mentors </b><br/>
       
    49 
       
    50 <table>
       
    51   {% for mentor in additional_mentors %}
       
    52     <tr>
       
    53       <td>
       
    54         {{ mentor.name }}
       
    55       </td>
       
    56       <td>
       
    57         <input type="button" onclick="location.href='?remove={{ mentor.link_id }}'" value="Remove"/>
       
    58       </td>
       
    59   {% endfor %}
       
    60 </table>
       
    61 
       
    62 <form method="POST">
       
    63   <table>
       
    64     {% as_table additional_mentor_form %}
       
    65   </table>
       
    66   <table>
       
    67   <tr>
       
    68    <td colspan="4">&nbsp;</td>
       
    69   </tr>
       
    70   <tr>
       
    71     <td> 
       
    72       <input style="font-weight: bold" type="submit" value="Add" name="add_additional_mentor"/></span>
       
    73     </td>
       
    74     <td>
       
    75       <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">
       
    76     </td>
       
    77   </tr>
       
    78  </table>
       
    79 </form>
    19 {% endblock %}
    80 {% endblock %}