competences catalogue
[edumed.git] / catalogue / templates / catalogue / 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     <section class="box">
14         <h1 class="realisation">Realizacja i czas lekcji</h1>
15         {% if object.type == 'synthetic' %}
16         <p>To lekcja jest syntezą tematu
17         <strong>{{ object.section }}</strong></a>{% if object.level.slug = "liceum" %}
18             (na poziomie zaawansowanym)
19         {% endif %}.
20         Dostępny jest również
21         <strong><a href="{% url 'catalogue_lessons' %}#{{ object.section.slug }}">pełny kurs</a></strong>
22         tego tematu.
23         </p>
24         <p>Czas trwania: 45 minut.</p>
25         {% elif object.type == 'course' %}
26         <p>Ta lekcja jest częścią tematu
27         <a href="{{ object.section.get_absolute_url }}"><strong>{{ object.section }}</strong></a>{% if object.level.slug = "liceum" %}
28             (na poziomie zaawansowanym)
29         {% endif %}.
30         {% with object.get_syntetic as synth %}
31         {% if synth %}
32         Dostępna jest również
33         <strong><a href="{{ object.get_syntetic.get_absolute_url }}">lekcja syntetyczna</a></strong>
34         dla tego tematu.
35         {% endif %}
36         {% endwith %}
37         </p>
38         <p>Czas trwania: 45 minut.</p>
39         {% else %}
40         <p>?</p>
41         {% endif %}
42     </section>
43
44     {% if object.package %}
45         <section class="box-button"><a href="{{ object.package.url }}" class="dl-button">Pobierz całą lekcję</a></section>
46     {% endif %}
47     {% if object.student_package %}
48         <section><a href="{{ object.student_package.url }}" class="dl-button">Pobierz lekcję w wersji dla ucznia</a></section>
49     {% endif %}
50
51     <section class="section">
52         {% lesson_nav object %}
53     </section>
54
55     {% if object.dc.relations %}
56     <section class="section-minor">
57         <h1>Powiązane lekcje</h1>
58         <ul class="link-list link-list-colored">
59         {% for uri in object.dc.relations %}
60             <li>{% lesson_link uri %}</li>
61         {% endfor %}
62         </ul>
63     </section>
64     {% endif %}
65
66     {% if object.dc.competences %}
67     <section class="section-minor">
68         <h1>Kompetencje:</h1>
69         <ul class="plain">
70         {% competence object.dc.competences %}
71         </ul>
72     </section>
73     {% endif %}
74
75     {% if object.dc.curriculum %}
76     <section class="section-minor">
77         <h1>Podstawa programowa:</h1>
78         <ul class="plain">
79         {% curriculum object.dc.curriculum %}
80         </ul>
81     </section>
82     {% endif %}
83
84     <section class="section-micro">
85         <h1>Informacje:</h1>
86         <p>
87         {% if object.dc.authors_textbook %}
88         Tekst: {{ object.dc.authors_textbook|person_list }}<br/>
89         {% endif %}
90         {% if object.dc.authors_scenario %}
91         Scenariusz: {{ object.dc.authors_scenario|person_list }}<br/>
92         {% endif %}
93         {% if object.dc.authors_expert %}
94         Konsultacja merytoryczna: {{ object.dc.authors_expert|person_list }}<br/>
95         {% endif %}
96         Licencja: <a href="{{ object.dc.license }}">{{ object.dc.license_description }}</a>.</p>
97     </section>
98
99     <section class="section-micro">
100         <h1>Narzędzia:</h1>
101         <ul class="link-list">
102             <li><a href="{{ object.xml_file.url }}">źródłowy plik XML</a></li>
103             <!--li><a href="{{ object.dc.about }}">lekcja na Platformie Redakcyjnej</a></li-->
104         </ul>
105     </section>
106
107     <section class="section-micro">
108         <p>{{ object.dc.description }}</p>
109     </section>
110
111 </aside>
112
113 <div id="main-bar">
114 {{ object.html_file.read|safe }}
115
116
117 <a class="top-link" href="#">wróć na górę</a>
118 <footer class="lesson-footer">
119
120 {% if object.section %}
121
122 <p class="section-info"><a href="{{ object.section.get_absolute_url }}">Temat: {{ object.section }}</a>
123 <br/>(<a href="{% url 'catalogue_lessons' %}">spis wszystkich lekcji</a>)</p>
124
125 <p>
126 {% with object.get_previous as previous %}
127     {% if previous %}
128         <a class="previous-lesson" href="{{ previous.get_absolute_url }}">&larr; {{ previous }}</a>
129     {% endif %}
130 {% endwith %}
131
132 {% with object.get_next as next %}
133     {% if next %}
134         <a class="next-lesson" href="{{ next.get_absolute_url }}">{{ next }} &rarr;</a>
135     {% endif %}
136 {% endwith %}
137 </p>
138 {% endif %}
139
140 <div class="clr"></div>
141 </footer>
142 </div>
143
144 {% endblock %}