292d0dfebade6760276f1fd62d659de19493c69b
[wolnelektury.git] / src / funding / templates / admin / funding / offer / change_form.html
1 {% extends "admin/change_form.html" %}
2 {% load i18n %}
3
4 {% block extrahead %}
5 {{ block.super }}
6 <script type="text/javascript">
7 (function($) {
8     $(document).ready(function($) {
9         $("#generated-switch").click(function() {
10             $('#generated').toggle()
11         });
12     });
13 })(django.jQuery);
14 </script>
15 {% endblock %}
16
17
18
19 {% block pretitle %}
20
21
22 <a id="generated-switch">↓ {% trans "fundings" %} ↓</a>
23 <div id="generated" style="display:none; padding:1em; border: 1px solid #aaa;">{% spaceless %}
24     {% for funding in original.funders %}
25         {% if funding.name %}
26             &lt;dc:contributor.funding xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">{{ funding.name }}&lt;/dc:contributor.funding><br/>
27         {% endif %}
28     {% endfor %}
29 {% endspaceless %}</div>
30 {{ block.super }}
31 {% endblock %}