author | Madhusudan.C.S <madhusudancs@gmail.com> |
Fri, 28 Aug 2009 13:17:32 +0200 | |
changeset 2830 | 5caf0d342696 |
permissions | -rw-r--r-- |
2830
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
{% comment %} |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
Licensed under the Apache License, Version 2.0 (the "License"); |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
you may not use this file except in compliance with the License. |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
You may obtain a copy of the License at |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
|
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
6 |
http://www.apache.org/licenses/LICENSE-2.0 |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
7 |
|
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |
Unless required by applicable law or agreed to in writing, software |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
9 |
distributed under the License is distributed on an "AS IS" BASIS, |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
10 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
11 |
See the License for the specific language governing permissions and |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
12 |
limitations under the License. |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
13 |
{% endcomment %} |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
14 |
|
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
15 |
<script type="text/javascript"> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
16 |
$(document).ready( function() { |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
17 |
$('#id_{{ field_label }}').multiSelect({ |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
18 |
selectAll: false, |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
19 |
noneSelected: 'Any', |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
20 |
oneOrMoreSelected: '*' |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
21 |
}); |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
22 |
}); |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
23 |
</script> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
24 |
|
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
25 |
<div class="column"> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
26 |
<div class="top"><strong>{{ field_label }}:</strong></div> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
27 |
<div class="bottom"> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
28 |
<select id="id_{{ field_label }}" name="{{ field_label }}" |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
29 |
multiple="multiple"> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
30 |
{% for value in field_value %} |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
31 |
<option value="{{ value }}">{{ value }}</option> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
32 |
{% endfor %} |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
33 |
</select> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
34 |
</div> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
35 |
</div> |
5caf0d342696
Added templatetags for use in the GHOP module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
36 |