author | Madhusudan.C.S <madhusudancs@gmail.com> |
Mon, 10 Aug 2009 16:36:16 +0530 | |
changeset 32 | b39994cca761 |
parent 24 | 7257b66a6766 |
child 38 | 3cb38edbe05f |
permissions | -rw-r--r-- |
0 | 1 |
{% extends "projrev/base.html" %} |
22 | 2 |
{% block scripts %} |
3 |
{{ block.super }} |
|
4 |
<script language="JavaScript" type="text/javascript" src="/site-content/js/jquery.chainedSelects.js"></script> |
|
5 |
<script language="JavaScript" type="text/javascript"> |
|
23
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
6 |
$(function() |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
7 |
{ |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
8 |
$('#id_state').chainSelect('#id_district','/proposal/submit/get_dfors'); |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
9 |
}); |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
10 |
$(document).ready(function() { |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
11 |
$.get('/proposal/submit/get_dfors', function() { |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
12 |
$('#id_district').html('<option value="">---------</option>'); |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
13 |
}); |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
14 |
}); |
22 | 15 |
</script> |
16 |
{% endblock scripts %} |
|
0 | 17 |
{% block content %} |
18 |
<div class="post"> |
|
19 |
||
20 |
<a name="TemplateInfo"></a> |
|
21 |
<h1>Submit your proposal</h1> |
|
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
22 |
|
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
23 |
{% if created_now %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
24 |
<p>An MICR Code has been assigned and e-mailed to you. Please remember it for future reference.</p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
25 |
{% else %}{% if micr_code %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
26 |
<p>Edit your details and upload new version of the proposal in the form below.</p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
27 |
{% else %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
28 |
<p>Fill up the form below, and upload your proposal file by clicking on Browse.</p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
29 |
{% endif %}{% endif %} |
0 | 30 |
|
31 |
<form enctype="multipart/form-data" method="post" action=""> |
|
32 |
<p> |
|
22 | 33 |
{% for field in form %} |
34 |
<p> |
|
23
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
35 |
{% if field.help_text %} |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
36 |
<script type="text/javascript"> |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
37 |
$(document).ready( function() { |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
38 |
var tooltip = [ |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
39 |
"<div class='tooltip'>", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
40 |
" <div class='tooltip-body'>", |
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
41 |
" <img src='/site-content/images/info.png' alt='' />", |
23
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
42 |
" <h3>Info</h3>", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
43 |
" <p>", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
44 |
" {% autoescape off %}", |
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
45 |
" {{ field.help_text|linebreaksbr|escapejs }}", |
23
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
46 |
" {% endautoescape %}", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
47 |
" </p>", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
48 |
" </div>", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
49 |
" <div class='tooltip-bottom'></div>", |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
50 |
"</div>" |
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
51 |
].join(""); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
52 |
|
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
53 |
var tooltip_object=null; |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
54 |
var documented = $("#id_{{ field.name }}"); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
55 |
var not_fieldset = documented.attr('tagName') !== 'FIELDSET'; |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
56 |
if (not_fieldset) { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
57 |
documented.focus(function() { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
58 |
if (tooltip_object==null) { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
59 |
tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
60 |
} |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
61 |
}); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
62 |
documented.blur(function() { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
63 |
if (tooltip_object!==null) { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
64 |
tooltip_object.remove(); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
65 |
tooltip_object=null; |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
66 |
} |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
67 |
}); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
68 |
} |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
69 |
else { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
70 |
documented.find("input").hover(function() { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
71 |
if (tooltip_object==null) { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
72 |
tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000}); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
73 |
} |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
74 |
}, |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
75 |
function() { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
76 |
if (tooltip_object!==null) { |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
77 |
tooltip_object.remove(); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
78 |
tooltip_object=null; |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
79 |
} |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
80 |
}); |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
81 |
} |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
82 |
}); |
23
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
83 |
</script> |
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
84 |
{% endif %} |
22 | 85 |
{{ field.errors }} |
23
91cf6872d853
Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
86 |
{{ field.label_tag }}:{{ field }}{% if field.field.required %}<span class="special_class"> (required)</span>{% endif %} |
22 | 87 |
</p> |
88 |
{% endfor %} |
|
89 |
||
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
90 |
{% if proposal_path %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
91 |
<p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
92 |
<label for="id_proposal">Previous Proposal Document:</label> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
93 |
<a class="document-right" href="/site-content/{{ proposal_path }}">{{ proposal_name }}</a> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
94 |
</p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
95 |
{% endif %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
96 |
{% if micr_code %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
97 |
<p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
98 |
<label for="id_micr_code">MICR Code:</label> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
99 |
<input id="id_micr_code" type="text" maxlength="15" value="{{ micr_code }}" name="institution" DISABLED /> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
100 |
</p> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
101 |
{% endif %} |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
102 |
<br /> |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
103 |
<input class="button" type="submit" value="Submit Proposal" /> |
0 | 104 |
</p> |
105 |
</form> |
|
106 |
||
13 | 107 |
<p class="post-footer align-right"> |
108 |
<span class="comments">Reviews: |
|
109 |
{% if nr_reviews %} |
|
110 |
{{ nr_reviews }} |
|
111 |
{% else %} |
|
112 |
(<i>None</i>) |
|
113 |
{% endif %} |
|
114 |
</span> |
|
115 |
<span class="date">Last reviewed: |
|
116 |
{% if last_reviewed %} |
|
14 | 117 |
{{ last_reviewed|date:"jS F Y h:iA" }} |
13 | 118 |
{% else %} |
119 |
(<i>Not Reviewed</i>) |
|
120 |
{% endif %} |
|
121 |
</span> |
|
122 |
<span class="date">Last submitted: |
|
123 |
{% if last_submitted %} |
|
14 | 124 |
{{ last_submitted|date:"jS F Y h:iA" }} |
13 | 125 |
{% else %} |
126 |
(<i>New Submission</i>) |
|
127 |
{% endif %} |
|
128 |
</span> |
|
0 | 129 |
</p> |
130 |
||
131 |
</div> |
|
132 |
{% endblock content %} |