author | Madhusudan.C.S <madhusudancs@gmail.com> |
Mon, 10 Aug 2009 02:13:02 +0530 | |
changeset 28 | be65e84e7d03 |
parent 27 | 37612f295cd4 |
child 29 | 425626c7f63e |
permissions | -rw-r--r-- |
0 | 1 |
{% extends "projrev/base.html" %} |
27
37612f295cd4
Added comments for ranks and reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
2 |
{% load review_helpers %} |
37612f295cd4
Added comments for ranks and reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
3 |
|
0 | 4 |
{% block content %} |
5 |
<div class="post"> |
|
6 |
||
7 |
<a name="TemplateInfo"></a> |
|
8 |
<h1>Review the proposal</h1> |
|
9 |
||
10 |
<p>The proposal details are given below followed by a Review form.</p> |
|
11 |
||
12 |
<div class='review-center-box'> |
|
13 |
<div class='review-left'> |
|
14 |
Project MICR Code: |
|
15 |
</div> |
|
16 |
<div class='review-right'> |
|
17 |
{{ project.micr_code }} |
|
18 |
</div> |
|
19 |
<br/> |
|
20 |
<div class='review-left'> |
|
21 |
Institution: |
|
22 |
</div> |
|
23 |
<div class='review-right'> |
|
24 |
{{ project.institution }} |
|
25 |
</div> |
|
26 |
<br/> |
|
27 |
<div class='review-left'> |
|
28 |
Project Line Item: |
|
29 |
</div> |
|
30 |
<div class='review-right'> |
|
31 |
{{ project.line_item }} |
|
32 |
</div> |
|
33 |
<br/> |
|
34 |
<div class='review-left'> |
|
35 |
State: |
|
36 |
</div> |
|
37 |
<div class='review-right'> |
|
38 |
{{ project.state }} |
|
39 |
</div> |
|
40 |
<br/> |
|
41 |
<div class='review-left'> |
|
42 |
District: |
|
43 |
</div> |
|
44 |
<div class='review-right'> |
|
45 |
{{ project.district }} |
|
46 |
</div> |
|
47 |
<br/> |
|
48 |
<div class='review-left'> |
|
49 |
Proposal Document: |
|
50 |
</div> |
|
51 |
<div class='review-right'> |
|
52 |
<a href="/site-content/{{ proposal_path }}">{{ proposal_name }}</a> |
|
53 |
</div> |
|
54 |
</div> |
|
28
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
55 |
|
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
56 |
|
0 | 57 |
<form enctype="multipart/form-data" method="post" action=""> |
58 |
<p> |
|
28
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
59 |
<p> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
60 |
{% if form.comment.help_text %} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
61 |
<script type="text/javascript"> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
62 |
$(document).ready( function() { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
63 |
var tooltip = [ |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
64 |
"<div class='tooltip'>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
65 |
" <div class='tooltip-body'>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
66 |
" <img src='/site-content/images/info.png' alt='' />", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
67 |
" <h3>Info</h3>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
68 |
" <p>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
69 |
" {% autoescape off %}", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
70 |
" {{ form.comment.help_text|linebreaksbr|escapejs }}", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
71 |
" {% endautoescape %}", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
72 |
" </p>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
73 |
" </div>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
74 |
" <div class='tooltip-bottom'></div>", |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
75 |
"</div>" |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
76 |
].join(""); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
77 |
|
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
78 |
var tooltip_object=null; |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
79 |
var documented = $("#id_{{ form.comment.name }}"); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
80 |
var not_fieldset = documented.attr('tagName') !== 'FIELDSET'; |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
81 |
if (not_fieldset) { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
82 |
documented.focus(function() { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
83 |
if (tooltip_object==null) { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
84 |
tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
85 |
} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
86 |
}); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
87 |
documented.blur(function() { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
88 |
if (tooltip_object!==null) { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
89 |
tooltip_object.remove(); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
90 |
tooltip_object=null; |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
91 |
} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
92 |
}); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
93 |
} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
94 |
else { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
95 |
documented.find("input").hover(function() { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
96 |
if (tooltip_object==null) { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
97 |
tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
98 |
} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
99 |
}, |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
100 |
function() { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
101 |
if (tooltip_object!==null) { |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
102 |
tooltip_object.remove(); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
103 |
tooltip_object=null; |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
104 |
} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
105 |
}); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
106 |
} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
107 |
}); |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
108 |
</script> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
109 |
{% endif %} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
110 |
{{ form.comment.errors }} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
111 |
{{ form.comment.label_tag }}{{ form.comment }}{% if form.comment.field.required %}<span class="specialclass"> (required)</span>{% endif %} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
112 |
</p> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
113 |
<p> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
114 |
{{ form.comment.errors }} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
115 |
{{ form.attribute1.label_tag }}: |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
116 |
<input name="attribute1" type="radio" class="star"/> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
117 |
<input name="attribute1" type="radio" class="star"/> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
118 |
<input name="attribute1" type="radio" class="star"/> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
119 |
<input name="attribute1" type="radio" class="star"/> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
120 |
<input name="attribute1" type="radio" class="star"/> |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
121 |
{% if form.attribute1.field.required %}<span class="specialclass"> (required)</span>{% endif %} |
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
27
diff
changeset
|
122 |
</p> |
0 | 123 |
<br /> |
124 |
<input class="button" type="submit" value="Submit Review" /> |
|
14 | 125 |
</p> |
0 | 126 |
</form> |
127 |
||
14 | 128 |
<p class="post-footer align-right"> |
129 |
<span class="comments">Reviews: |
|
130 |
{% if nr_reviews %} |
|
131 |
{{ nr_reviews }} |
|
132 |
{% else %} |
|
133 |
(<i>None</i>) |
|
134 |
{% endif %} |
|
135 |
</span> |
|
136 |
<span class="date">Last reviewed: |
|
137 |
{% if last_reviewed %} |
|
138 |
{{ last_reviewed|date:"jS F Y h:iA" }} |
|
139 |
{% else %} |
|
140 |
(<i>Not Reviewed</i>) |
|
141 |
{% endif %} |
|
142 |
</span> |
|
143 |
<span class="date">Last submitted: |
|
144 |
{% if last_submitted %} |
|
145 |
{{ last_submitted|date:"jS F Y h:iA" }} |
|
146 |
{% else %} |
|
147 |
(<i>New Submission</i>) |
|
148 |
{% endif %} |
|
149 |
</span> |
|
150 |
</p> |
|
26
97bd3c28c957
Renamed Comments to Reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
14
diff
changeset
|
151 |
{% if reviews %} |
27
37612f295cd4
Added comments for ranks and reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
152 |
<br /><br /> |
37612f295cd4
Added comments for ranks and reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
153 |
<p> |
37612f295cd4
Added comments for ranks and reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
154 |
<h2>Reviews: Comments and Scores:</h2> |
26
97bd3c28c957
Renamed Comments to Reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
14
diff
changeset
|
155 |
{% for review in reviews %} |
97bd3c28c957
Renamed Comments to Reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
14
diff
changeset
|
156 |
{% as_review review %} |
97bd3c28c957
Renamed Comments to Reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
14
diff
changeset
|
157 |
{% endfor %} |
27
37612f295cd4
Added comments for ranks and reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
158 |
</p> |
26
97bd3c28c957
Renamed Comments to Reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
14
diff
changeset
|
159 |
{% endif %} |
0 | 160 |
</div> |
161 |
{% endblock content %} |