Basic lesson importing. Some layout.
[edumed.git] / catalogue / templates / catalogue / snippets / section_box.html
1 {% for level, depths in lessons.items %}
2 <section class="section-level section-level-{{ level.slug }}">
3     {% spaceless %}
4     {% for depth, lesson_list in depths.items %}
5         <section class="section-depth section-depth-{{ depth }}">
6             {% if depth == 0 %}
7                 <h1>Lekcja syntetyczna</h1>
8             {% else %}
9                 <h1>Pełny kurs</h1>
10             {% endif %}
11             <ul class="section-lessons">
12                 {% for lesson in lesson_list %}
13                     <li class="section-lesson">
14                         <a href="{{ lesson.get_absolute_url }}">{{ lesson }}</a>
15                     </li>
16                 {% endfor %}
17             </ul>
18         </section>
19     {% endfor %}
20     {% endspaceless %}
21 </section>
22 {% endfor %}