bookmedia admin: added book count and book list
[wolnelektury.git] / wolnelektury / templates / lessons / document_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags chunks %}
4
5 {% block bodyid %}document-list-body{% endblock %}
6
7 {% block title %}{% trans "Hand-outs for teachers on " %}WolneLektury.pl{% endblock %}
8
9 {% block extrahead %}
10     <script type="text/javascript" charset="utf-8">
11         $(function() {
12             $("#document-list a").click(function(e){
13                   e.preventDefault();
14                   if($("#presentation-frame").length == 0){
15                     $("<iframe id='presentation-frame' width='600' height='500' border='0' src=''>").appendTo($("#document-detail"));
16                   }
17                   $("#presentation-frame").attr("src", this.href);
18                   $('#document-list li').css('background-color', 'white');
19                   $('#document-list li a').css('background-color', 'white');
20                   $(this).closest('li').css('background-color', '#EEEEEE');
21                   $(this).css('background-color', '#EEEEEE');
22                   $(this).next('a').css('background-color', '#EEEEEE');                                    
23                   $('.download-doc').hide();
24                   $(this).next('.download-doc').show();
25             });
26         });
27     </script>
28 {% endblock extrahead %}
29 {% block body %}
30     <h1>{% trans "Hand-outs for teachers" %}</h1>
31     <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
32         <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
33     </form>
34     <div id="document-list">
35         {% chunk "document-list" %}
36     </div>
37     <div id="document-detail">
38     </div>
39 {% endblock %}