rearrangements: new core app, templates in apps, split settings;
[wolnelektury.git] / apps / lessons / 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 titleextra %}{% trans "Hand-outs for teachers" %}{% 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
34     <div id="document-list">
35         {% chunk "document-list" %}
36     </div>
37     <div id="document-detail">
38     </div>
39 {% endblock %}