add editable chunk
[edumed.git] / catalogue / templates / catalogue / lesson / lesson_detail.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load lesson_link lesson_nav person_list from catalogue_tags %}
4 {% load competence curriculum url_for_level from curriculum_tags %}
5
6
7 {% block title %}{{ object }}{% endblock %}
8
9 {% block body %}
10     <!--h1>{{ object }}</h1-->
11
12 <aside id="sidebar">
13     {% block sidebar-top %}{% endblock %}
14
15     <section class="section">
16         {% lesson_nav object %}
17     </section>
18
19     {% if object.dc.relations %}
20     <section class="section-minor">
21         <h1>Powiązane lekcje</h1>
22         <ul class="link-list link-list-colored">
23         {% for uri in object.dc.relations %}
24             <li>{% lesson_link uri %}</li>
25         {% endfor %}
26         </ul>
27     </section>
28     {% endif %}
29
30     {% if object.dc.competences %}
31     <section class="section-minor">
32         <h1>Kompetencje:</h1>
33         <ul class="plain">
34         {% competence object.dc.competences object.level %}
35         </ul>
36     </section>
37     {% endif %}
38
39     {% if object.dc.curriculum %}
40     <section class="section-minor">
41         <h1>Podstawa programowa:</h1>
42         <ul class="plain">
43         {% curriculum object.dc.curriculum %}
44         </ul>
45     </section>
46     {% endif %}
47
48     <section class="section-micro">
49         <h1>Informacje:</h1>
50         <p>
51         {% if object.dc.authors_textbook %}
52         Tekst: {{ object.dc.authors_textbook|person_list }}<br/>
53         {% endif %}
54         {% if object.dc.authors_scenario %}
55         Scenariusz: {{ object.dc.authors_scenario|person_list }}<br/>
56         {% endif %}
57         {% if object.dc.authors_expert %}
58         Konsultacja merytoryczna: {{ object.dc.authors_expert|person_list }}<br/>
59         {% endif %}
60         Licencja: <a href="{{ object.dc.license }}">{{ object.dc.license_description }}</a>.</p>
61     </section>
62
63     <section class="section-micro">
64         <h1>Narzędzia:</h1>
65         <ul class="link-list">
66             <li><a href="{{ object.xml_file.url }}">źródłowy plik XML</a></li>
67             <!--li><a href="{{ object.dc.about }}">lekcja na Platformie Redakcyjnej</a></li-->
68         </ul>
69     </section>
70
71     <section class="section-micro">
72         <p>{{ object.dc.description }}</p>
73     </section>
74
75 </aside>
76
77 <div id="main-bar">
78 {{ object.html_file.read|safe }}
79
80
81 <a class="top-link" href="#">wróć na górę</a>
82 <footer class="lesson-footer">
83
84 {% if object.section %}
85
86 <p class="section-info"><a href="{{ object.section.get_absolute_url }}">Temat: {{ object.section }}</a>
87 <br/>(<a href="{% url 'catalogue_lessons' %}">spis wszystkich lekcji</a>)</p>
88
89 <p>
90 {% with object.get_previous as previous %}
91     {% if previous %}
92         <a class="previous-lesson" href="{{ previous.get_absolute_url }}">&larr; {{ previous }}</a>
93     {% endif %}
94 {% endwith %}
95
96 {% with object.get_next as next %}
97     {% if next %}
98         <a class="next-lesson" href="{{ next.get_absolute_url }}">{{ next }} &rarr;</a>
99     {% endif %}
100 {% endwith %}
101 </p>
102 {% endif %}
103
104 <div class="clr"></div>
105 </footer>
106 </div>
107
108 {% endblock %}