official curriculum
[edumed.git] / catalogue / templates / catalogue / lesson_detail.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load 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.competences %}
56     <section class="section-minor">
57         <h1>Kompetencje:</h1>
58         <ul class="plain">
59         {% competence object.dc.competences %}
60         </ul>
61     </section>
62     {% endif %}
63
64     {% if object.dc.curriculum %}
65     <section class="section-minor">
66         <h1>Podstawa programowa:</h1>
67         <ul class="plain">
68         {% curriculum object.dc.curriculum %}
69         </ul>
70     </section>
71     {% endif %}
72
73     <section class="section-micro">
74         <h1>Informacje:</h1>
75         <p>
76         {% if object.dc.authors_textbook %}
77         Tekst: {{ object.dc.authors_textbook|person_list }}<br/>
78         {% endif %}
79         {% if object.dc.authors_scenario %}
80         Scenariusz: {{ object.dc.authors_scenario|person_list }}<br/>
81         {% endif %}
82         {% if object.dc.authors_expert %}
83         Konsultacja merytoryczna: {{ object.dc.authors_expert|person_list }}<br/>
84         {% endif %}
85         Licencja: <a href="{{ object.dc.license }}">{{ object.dc.license_description }}</a>.</p>
86     </section>
87
88     <section class="section-micro">
89         <h1>Narzędzia:</h1>
90         <ul class="link-list">
91             <li><a href="{{ object.xml_file.url }}">źródłowy plik XML</a></li>
92             <!--li><a href="{{ object.dc.about }}">lekcja na Platformie Redakcyjnej</a></li-->
93         </ul>
94     </section>
95
96     <section class="section-micro">
97         <p>{{ object.dc.description }}</p>
98     </section>
99
100 </aside>
101
102 <div id="main-bar">
103 {{ object.html_file.read|safe }}
104 </div>
105
106 {% endblock %}