3a7392e4a43fd98f2e4f5faa86e7dbd76f61e9f9
[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 {% block pretitle %}
18   <a id="generated-switch">↓ {% trans "fundings" %} ↓</a>
19   <div id="generated" style="display:none; padding:1em; border: 1px solid #aaa;">{% spaceless %}
20     {% for funding in original.funders %}
21       {% if funding.name %}
22         &lt;dc:contributor.funding xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">{{ funding.name }}&lt;/dc:contributor.funding><br/>
23       {% endif %}
24     {% endfor %}
25   {% endspaceless %}</div>
26   {{ block.super }}
27 {% endblock %}