Add project as course type.
[edumed.git] / catalogue / templates / catalogue / snippets / section_box.html
1 {% for level, types in lessons.items %}
2 {% if level.slug == "liceum" %}
3     <p><strong>{{section.title}}</strong>: poziom zaawansowany
4         <span class="section-links"><a href="#top">wróć do spisu treści</a></span>
5     </p>
6 {% endif %}
7 <section id="{{ section.slug }}_{{ level.slug }}" class="section-level section-level-{{ level.slug }}">
8     {% spaceless %}
9     {% for lesson_type, lesson_list in types.items %}
10         <section class="section-type section-type-{{ lesson_type }}">
11             {% if lesson_type == 'synthetic' %}
12                 <h1>Lekcja syntetyczna</h1>
13             {% elif lesson_type == 'project' %}
14                 <h1>Projekt</h1>
15             {% else %}
16                 <h1>Pełny kurs</h1>
17             {% endif %}
18             {% if lesson_list %}
19             <ul class="section-lessons link-list">
20                 {% for lesson in lesson_list %}
21                     <li class="section-lesson">
22                         {% if lesson.slug %}
23                             <a href="{{ lesson.get_absolute_url }}">{{ lesson }}{% if lesson_type == 'synthetic' %}
24                                 <br/>(przegląd całego tematu w 45 minut)
25                             {% endif %}</a>
26                         {% else %}
27                             {{ lesson }} <em>(w&nbsp;przygotowaniu)</em>
28                         {% endif %}
29                     </li>
30                 {% endfor %}
31             </ul>
32             {% else %}
33                 <p>(W przygotowaniu)</p>
34             {% endif %}
35         </section>
36     {% endfor %}
37     {% endspaceless %}
38 </section>
39 {% endfor %}