e51be2ae2ac54a9f970bd572cc285bd9c26a37c2
[edumed.git] / catalogue / templates / catalogue / snippets / level_box.html
1 <section id="{{ level.slug }}" class="level" style="margin-left: 20em">
2
3     <section class="box level-toc" style="float: left; margin-left: -20em; width: 15em;">
4         <strong><a href="#{{ level.slug }}">{{ level }}</a></strong>
5         <ul  class="link-list"  style="list-style: none; padding: 0; margin: 0;">
6             {% if lessons.synthetic %}
7             <li><a href="#{{ level.slug }}_skrocony">Skrócony kurs</a></li>
8             {% endif %}
9             {% if lessons.course %}
10             <li><a href="#{{ level.slug }}_pelny">Pełny kurs</a>
11                 <ul style="list-style: none; padding: 0 0 0 1em; margin: 0;">
12                 {% for section in lessons.course %}
13                         <li><a href="#{{ level.slug }}_{{ section.slug}}">{{ section }}</a></li>
14                 {% endfor %}
15                 </ul>
16             </li>
17             {% endif %}
18             {% if lessons.project %}
19             <li><a href="#{{ level.slug }}_projekty">Projekty</a></li>
20             {% endif %}
21             {% if lessons.appendix %}
22             <li><a href="#{{ level.slug }}_pozostale">Pozostałe materiały</a></li>
23             {% endif %}
24
25             {% if courses %}
26             <li class="curriculumcourses"><a href="#{{ level.slug }}_podstawa">Według postawy programowej</a>
27                 <ul style="list-style: none; padding: 0 0 0 1em; margin: 0;">
28                 {% for course, lessons in courses %}
29                         <li><a href="#{{ level.slug }}_{{ course.slug}}">{{ course }}</a></li>
30                 {% endfor %}
31                 </ul>
32             </li>
33             {% endif %}
34         </ul>
35     </section>
36
37
38     <h1>{{ level }}</h1>
39
40     <section class="box-button button"><a href="{{ level.package.url }}" class="dl-button">Pobierz wszystkie lekcje</a></section>
41     <section class="button"><a href="{{ level.student_package.url }}" class="dl-button">Pobierz wszystkie lekcje w&nbsp;wersji dla ucznia</a></section>
42
43     {% if lessons.synthetic %}
44     <section id="{{ level.slug }}_skrocony">
45         <h1>Skrócony kurs</h1>
46
47         <p>Masz kilka godzin? Przeprowadź po jednej lekcji przeglądowej z każdego tematu.</p>
48
49         <ul class="link-list">
50             {% for lesson in lessons.synthetic %}
51                 <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
52             {% endfor %}
53         </ul>
54     </section>
55     {% endif %}
56
57
58     {% if lessons.course %}
59     <section id="{{ level.slug }}_pelny">
60         <h1>Pełny kurs</h1>
61
62         <p>Masz więcej czasu? Zrealizuj kompletny program edukacji medialnej.</p>
63
64         {% for section, s_lessons in lessons.course.items %}
65             <section id="{{ level.slug }}_{{ section.slug}}">
66                 <h1>{{ section }}</h1>
67
68                 <ul class="link-list">
69                     {% for lesson in s_lessons %}
70                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
71                     {% endfor %}
72                 </ul>
73             </section>
74         {% endfor %}
75
76     </section>
77     {% endif %}
78
79
80     {% if lessons.project %}
81     <section id="{{ level.slug }}_projekty">
82         <h1>Projekty</h1>
83
84         <p>Masz 4-6 tygodni? Zrealizuj jeden z projektów ze swoimi uczniami.</p>
85
86         <ul class="link-list">
87             {% for lesson in lessons.project %}
88                 <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
89             {% endfor %}
90         </ul>
91     </section>
92     {% endif %}
93
94
95     {% if courses %}
96     <section id="{{ level.slug }}_podstawa">
97         <h1>Według podstawy programowej</h1>
98
99         {% for course, lessons in courses %}
100         <section id="{{ level.slug}}_{{ course.slug }}">
101             <h1>{{ course }}</h1>
102
103             {% if lessons.synthetic %}
104             <section>
105                 <h1>Z kursu skróconego</h1>
106                 <ul class="link-list">
107                     {% for lesson in lessons.synthetic %}
108                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
109                     {% endfor %}
110                 </ul>
111             </section>
112             {% endif %}
113
114             {% if lessons.course %}
115             <section>
116                 <h1>Z kursu pełnego</h1>
117                 <ul class="link-list">
118                     {% for lesson in lessons.course %}
119                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
120                     {% endfor %}
121                 </ul>
122             </section>
123             {% endif %}
124
125             {% if lessons.project %}
126             <section>
127                 <h1>Projekty</h1>
128                 <ul class="link-list">
129                     {% for lesson in lessons.project %}
130                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
131                     {% endfor %}
132                 </ul>
133             </section>
134             {% endif %}
135
136         </section>
137         {% endfor %}
138         
139     </section>
140     {% endif %}
141
142 </section>