app/soc/templates/soc/student_proposal/review.html
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 16 Mar 2009 21:18:20 +0000
changeset 1898 7f18e83a129f
parent 1883 ce564c03d90a
child 1914 b779c7b109ff
permissions -rw-r--r--
Hook up the new template tag for StudentProposal reviews. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
1739
19f1bb7ae615 Some style fixes for the student proposal review template.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1715
diff changeset
    15
{% load comments_helpers %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
{% load forms_helpers %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{% block header_title %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    19
{{ page_name }} "{{ entity.title }}" from {{ student_name }} (Score: {{ entity.score }})
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    20
{% endblock %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
{% block body %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
<p>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    24
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
  {% readonly_field_as_table_row entity.fields.title.label entity.title %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    26
  {% readonly_field_as_table_row "Student" student_name %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    27
  {% readonly_field_as_table_row "Mentor" mentor_name %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    28
  {% readonly_field_as_table_row "Possible Mentors" possible_mentors %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
  {% readonly_field_as_twoline_table_row entity.fields.abstract.label entity.abstract %}
1715
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    30
  {% readonly_safe_field_as_twoline_table_row entity.fields.content.label entity.content %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    31
  {% readonly_field_as_table_row "Created on" entity.created_on %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    32
  {% readonly_field_as_table_row "Last Modified on" entity.last_modified_on %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    33
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    34
</p>
1739
19f1bb7ae615 Some style fixes for the student proposal review template.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1715
diff changeset
    35
<hr/>
1715
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    36
<b>Public Reviews</b>
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    37
{% for review in public_reviews %}
1898
7f18e83a129f Hook up the new template tag for StudentProposal reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1883
diff changeset
    38
  {% as_student_proposal_review review student %}
1715
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    39
{% endfor %}
1739
19f1bb7ae615 Some style fixes for the student proposal review template.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1715
diff changeset
    40
<hr/>
1715
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    41
<b>Private Reviews</b>
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    42
{% for review in private_reviews %}
1898
7f18e83a129f Hook up the new template tag for StudentProposal reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1883
diff changeset
    43
  {% as_student_proposal_review review student %}
1715
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    44
{% endfor %}
1739
19f1bb7ae615 Some style fixes for the student proposal review template.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1715
diff changeset
    45
<hr/>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    46
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    47
<form method="POST">
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    48
  <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    49
    {% block form_table %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    50
      {% as_table form %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    51
    {% endblock %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    52
  </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    53
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    54
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    55
   <td colspan="4">&nbsp;</td>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    56
  </tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    57
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    58
   <td> 
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    59
    <input style="font-weight: bold" type="submit" value="Submit"/></span>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    60
   </td>
1666
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    61
   {% if add_me_as_mentor %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    62
   <td>
1666
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    63
   <input style="font-weight: bold" type="button" value="I am willing to mentor this student"
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    64
     onclick="location.href='?mentor=1'"/>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    65
   </td>
1666
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    66
   {% else %} 
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    67
     {% if remove_me_as_mentor %}
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    68
     <td>
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    69
       <input style="font-weight: bold" type="button" value="I am no longer willing to mentor this student"
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    70
       onclick="location.href='?mentor=0'"/>
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    71
     </td>
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
    72
     {% endif %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    73
   {% endif %}
1779
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
    74
   {% if is_org_admin %}
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
    75
     <td>
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
    76
       <input style="font-weight: bold" type="button" value="Mark as Ineligible"
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
    77
       onclick="location.href='?ineligible=1'"/>
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
    78
     </td>
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
    79
   {% endif %}
1883
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    80
   {% if is_subscribed_public %}
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    81
   <td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    82
     <input style="font-weight: bold" type="button" value="Unsubscribe from public updates"
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    83
       onclick="location.href='?public_subscription=off'"/>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    84
   </td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    85
   {% else %}
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    86
   <td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    87
     <input style="font-weight: bold" type="button" value="Subscribe to public updates"
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    88
       onclick="location.href='?public_subscription=on'"/>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    89
   </td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    90
   {% endif %}
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    91
   {% if is_subscribed_private %}
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    92
   <td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    93
     <input style="font-weight: bold" type="button" value="Unsubscribe from private updates"
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    94
       onclick="location.href='?private_subscription=off'"/>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    95
   </td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    96
   {% else %}
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    97
   <td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    98
     <input style="font-weight: bold" type="button" value="Subscribe to private updates"
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
    99
       onclick="location.href='?private_subscription=on'"/>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
   100
   </td>
ce564c03d90a The StudentProposal review view now also allow you to subscribe to public/private reviews.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1779
diff changeset
   101
   {% endif %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   102
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   103
</form>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   104
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   105
{% endblock %}