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