app/soc/templates/soc/student_proposal/review.html
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 25 Mar 2009 18:56:31 +0000
changeset 2012 852418be1719
parent 2010 b380c64085ef
child 2028 df97cade97ac
permissions -rw-r--r--
Student Proposal Review template now has the right header_title. Should have been part of r2714. 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 %}
2012
852418be1719 Student Proposal Review template now has the right header_title.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2010
diff changeset
    19
{{ page_name }} (Score: {{ entity.score }})
1613
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 %}
1914
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    23
<table>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    24
 {% if is_subscribed_public %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    25
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    26
   <input style="font-weight: bold" type="button" value="Unsubscribe from public updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    27
     onclick="location.href='?public_subscription=off'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    28
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    29
 {% else %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    30
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    31
   <input style="font-weight: bold" type="button" value="Subscribe to public updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    32
     onclick="location.href='?public_subscription=on'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    33
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    34
 {% endif %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    35
 {% if is_subscribed_private %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    36
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    37
   <input style="font-weight: bold" type="button" value="Unsubscribe from private updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    38
     onclick="location.href='?private_subscription=off'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    39
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    40
 {% else %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    41
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    42
   <input style="font-weight: bold" type="button" value="Subscribe to private updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    43
     onclick="location.href='?private_subscription=on'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    44
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    45
 {% endif %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    46
</table>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    47
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    48
<p>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    49
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    50
  {% 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
    51
  {% readonly_field_as_table_row "Student" student_name %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    52
  {% readonly_field_as_table_row "Mentor" mentor_name %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    53
  {% readonly_field_as_table_row "Possible Mentors" possible_mentors %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    54
  {% 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
    55
  {% readonly_safe_field_as_twoline_table_row entity.fields.content.label entity.content %}
2007
56da71f13f3a Show additional info link on Student Proposal pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1914
diff changeset
    56
  {% readonly_url_field_as_table_row entity.fields.additional_info.label entity.additional_info %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    57
  {% 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
    58
  {% 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
    59
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    60
</p>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    61
1914
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    62
<hr />
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    63
<form method="POST">
2010
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    64
  <tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    65
  <td><b>Score and Review</b></td>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    66
  </tr>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    67
  <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    68
    {% block form_table %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    69
      {% as_table form %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    70
    {% endblock %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    71
  </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    72
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    73
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    74
   <td colspan="4">&nbsp;</td>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    75
  </tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    76
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    77
   <td> 
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    78
    <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
    79
   </td>
2010
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    80
  </tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    81
  <tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    82
  <td><b>Other Options:</b></td>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    83
  </tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
    84
  <tr>
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
    85
   {% if add_me_as_mentor %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    86
   <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
    87
   <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
    88
     onclick="location.href='?mentor=1'"/>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    89
   </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
    90
   {% 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
    91
     {% 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
    92
     <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
    93
       <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
    94
       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
    95
     </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
    96
     {% endif %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    97
   {% 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
    98
   {% 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
    99
     <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
   100
       <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
   101
       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
   102
     </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
   103
   {% endif %}
2010
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   104
   </tr>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   105
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   106
</form>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   107
1914
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   108
<hr />
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   109
<b>Public Reviews</b>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   110
{% for review in public_reviews %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   111
  {% as_student_proposal_review review student %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   112
{% endfor %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   113
<hr />
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   114
<b>Private Reviews</b>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   115
{% for review in private_reviews %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   116
  {% as_student_proposal_review review student %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   117
{% endfor %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   118
<hr />
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   119
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   120
{% endblock %}