Merge branch 'api'
[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 metadescription %}Scenariusze lekcji. MateriaƂy dla nauczycieli na wolnej licencji.{% endblock %}
10
11 {% block extrahead %}
12     <script type="text/javascript" charset="utf-8">
13         $(function() {
14             $("#document-list a").click(function(e){
15                   e.preventDefault();
16                   if($("#presentation-frame").length == 0){
17                     $("<iframe id='presentation-frame' width='600' height='500' border='0' src=''>").appendTo($("#document-detail"));
18                   }
19                   $("#presentation-frame").attr("src", this.href);
20                   $('#document-list li').css('background-color', 'white');
21                   $('#document-list li a').css('background-color', 'white');
22                   $(this).closest('li').css('background-color', '#EEEEEE');
23                   $(this).css('background-color', '#EEEEEE');
24                   $(this).next('a').css('background-color', '#EEEEEE');                                    
25                   $('.download-doc').hide();
26                   $(this).next('.download-doc').show();
27             });
28         });
29     </script>
30 {% endblock extrahead %}
31 {% block body %}
32     <h1>{% trans "Hand-outs for teachers" %}</h1>
33     <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
34         <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>
35     </form>
36     <div id="document-list">
37         {% chunk "document-list" %}
38     </div>
39     <div id="document-detail">
40     </div>
41 {% endblock %}