author | Lennard de Rijk <ljvderijk@gmail.com> |
Tue, 17 Mar 2009 17:35:12 +0000 | |
changeset 1914 | b779c7b109ff |
parent 1898 | 7f18e83a129f |
child 2007 | 56da71f13f3a |
permissions | -rw-r--r-- |
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 %} |
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 %} |
1613
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
56 |
{% 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
|
57 |
{% 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
|
58 |
</table> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
59 |
</p> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
60 |
|
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
|
61 |
<hr /> |
1613
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
62 |
<form method="POST"> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
63 |
<table> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
64 |
{% block form_table %} |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
65 |
{% as_table form %} |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
66 |
{% endblock %} |
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 |
<table> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
69 |
<tr> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
70 |
<td colspan="4"> </td> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
71 |
</tr> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
72 |
<tr> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
73 |
<td> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
74 |
<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
|
75 |
</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
|
76 |
{% if add_me_as_mentor %} |
1613
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
77 |
<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
|
78 |
<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
|
79 |
onclick="location.href='?mentor=1'"/> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
80 |
</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
|
81 |
{% 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
|
82 |
{% 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
|
83 |
<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
|
84 |
<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
|
85 |
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
|
86 |
</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
|
87 |
{% endif %} |
1613
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
88 |
{% 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
|
89 |
{% 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
|
90 |
<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
|
91 |
<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
|
92 |
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
|
93 |
</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
|
94 |
{% endif %} |
1613
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
95 |
</table> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
96 |
</form> |
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
97 |
|
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
|
98 |
<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
|
99 |
<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
|
100 |
{% 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
|
101 |
{% 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
|
102 |
{% 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
|
103 |
<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
|
104 |
<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
|
105 |
{% 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
|
106 |
{% 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
|
107 |
{% 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
|
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 |
|
1613
59e5cc89e509
Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
110 |
{% endblock %} |