add editable chunk
[edumed.git] / catalogue / templates / catalogue / lesson / lesson_detail.html
diff --git a/catalogue/templates/catalogue/lesson/lesson_detail.html b/catalogue/templates/catalogue/lesson/lesson_detail.html
new file mode 100755 (executable)
index 0000000..8eec0da
--- /dev/null
@@ -0,0 +1,108 @@
+{% extends "base.html" %}
+{% load url from future %}
+{% load lesson_link lesson_nav person_list from catalogue_tags %}
+{% load competence curriculum url_for_level from curriculum_tags %}
+
+
+{% block title %}{{ object }}{% endblock %}
+
+{% block body %}
+    <!--h1>{{ object }}</h1-->
+
+<aside id="sidebar">
+    {% block sidebar-top %}{% endblock %}
+
+    <section class="section">
+        {% lesson_nav object %}
+    </section>
+
+    {% if object.dc.relations %}
+    <section class="section-minor">
+        <h1>Powiązane lekcje</h1>
+        <ul class="link-list link-list-colored">
+        {% for uri in object.dc.relations %}
+            <li>{% lesson_link uri %}</li>
+        {% endfor %}
+        </ul>
+    </section>
+    {% endif %}
+
+    {% if object.dc.competences %}
+    <section class="section-minor">
+        <h1>Kompetencje:</h1>
+        <ul class="plain">
+        {% competence object.dc.competences object.level %}
+        </ul>
+    </section>
+    {% endif %}
+
+    {% if object.dc.curriculum %}
+    <section class="section-minor">
+        <h1>Podstawa programowa:</h1>
+        <ul class="plain">
+        {% curriculum object.dc.curriculum %}
+        </ul>
+    </section>
+    {% endif %}
+
+    <section class="section-micro">
+        <h1>Informacje:</h1>
+        <p>
+        {% if object.dc.authors_textbook %}
+        Tekst: {{ object.dc.authors_textbook|person_list }}<br/>
+        {% endif %}
+        {% if object.dc.authors_scenario %}
+        Scenariusz: {{ object.dc.authors_scenario|person_list }}<br/>
+        {% endif %}
+        {% if object.dc.authors_expert %}
+        Konsultacja merytoryczna: {{ object.dc.authors_expert|person_list }}<br/>
+        {% endif %}
+        Licencja: <a href="{{ object.dc.license }}">{{ object.dc.license_description }}</a>.</p>
+    </section>
+
+    <section class="section-micro">
+        <h1>Narzędzia:</h1>
+        <ul class="link-list">
+            <li><a href="{{ object.xml_file.url }}">źródłowy plik XML</a></li>
+            <!--li><a href="{{ object.dc.about }}">lekcja na Platformie Redakcyjnej</a></li-->
+        </ul>
+    </section>
+
+    <section class="section-micro">
+        <p>{{ object.dc.description }}</p>
+    </section>
+
+</aside>
+
+<div id="main-bar">
+{{ object.html_file.read|safe }}
+
+
+<a class="top-link" href="#">wróć na górę</a>
+<footer class="lesson-footer">
+
+{% if object.section %}
+
+<p class="section-info"><a href="{{ object.section.get_absolute_url }}">Temat: {{ object.section }}</a>
+<br/>(<a href="{% url 'catalogue_lessons' %}">spis wszystkich lekcji</a>)</p>
+
+<p>
+{% with object.get_previous as previous %}
+    {% if previous %}
+        <a class="previous-lesson" href="{{ previous.get_absolute_url }}">&larr; {{ previous }}</a>
+    {% endif %}
+{% endwith %}
+
+{% with object.get_next as next %}
+    {% if next %}
+        <a class="next-lesson" href="{{ next.get_absolute_url }}">{{ next }} &rarr;</a>
+    {% endif %}
+{% endwith %}
+</p>
+{% endif %}
+
+<div class="clr"></div>
+</footer>
+</div>
+
+{% endblock %}