mark submissions with opened links
[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
35             {% if added %}
36             <li class="curriculumcourses"><a href="#{{ level.slug }}_inne">Inne</a>
37                 <ul style="list-style: none; padding: 0 0 0 1em; margin: 0;">
38                 {% for item in added %}
39                     <li><a href="#{{ level.slug }}_{{ item.slug }}">{{ item.title }}</a></li>
40                 {% endfor %}
41                 </ul>
42             </li>
43             {% endif %}
44
45         </ul>
46
47
48     </section>
49
50
51
52     <h1>{{ level }}</h1>
53
54     <section class="box-button button"><a href="{{ level.package.url }}" class="dl-button">Pobierz wszystkie lekcje</a></section>
55     <section class="button"><a href="{{ level.student_package.url }}" class="dl-button">Pobierz wszystkie lekcje w&nbsp;wersji dla ucznia</a></section>
56
57     {% if lessons.synthetic %}
58     <section id="{{ level.slug }}_skrocony">
59         <h1>Skrócony kurs</h1>
60
61         <p>Masz kilka godzin? Przeprowadź po jednej lekcji przeglądowej z każdego tematu.</p>
62
63         <ul class="link-list">
64             {% for lesson in lessons.synthetic %}
65                 <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
66             {% endfor %}
67         </ul>
68     </section>
69     {% endif %}
70
71
72     {% if lessons.course %}
73     <section id="{{ level.slug }}_pelny">
74         <h1>Pełny kurs</h1>
75
76         <p>Masz więcej czasu? Zrealizuj kompletny program edukacji medialnej.</p>
77
78         {% for section, s_lessons in lessons.course.items %}
79             <section id="{{ level.slug }}_{{ section.slug}}">
80                 <h1>{{ section }}</h1>
81
82                 <ul class="link-list">
83                     {% for lesson in s_lessons %}
84                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
85                     {% endfor %}
86                 </ul>
87             </section>
88         {% endfor %}
89
90     </section>
91     {% endif %}
92
93
94     {% if lessons.project %}
95     <section id="{{ level.slug }}_projekty">
96         <h1>Projekty</h1>
97
98         <p>Masz 4-6 tygodni? Zrealizuj jeden z projektów ze swoimi uczniami.</p>
99
100         <ul class="link-list">
101             {% for lesson in lessons.project %}
102                 <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
103             {% endfor %}
104         </ul>
105     </section>
106     {% endif %}
107
108
109     {% if courses %}
110     <section id="{{ level.slug }}_podstawa">
111         <h1>Według podstawy programowej</h1>
112
113         {% for course, lessons in courses %}
114         <section id="{{ level.slug}}_{{ course.slug }}">
115             <h1>{{ course }}</h1>
116
117             {% if lessons.synthetic %}
118             <section>
119                 <h1>Z kursu skróconego</h1>
120                 <ul class="link-list">
121                     {% for lesson in lessons.synthetic %}
122                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
123                     {% endfor %}
124                 </ul>
125             </section>
126             {% endif %}
127
128             {% if lessons.course %}
129             <section>
130                 <h1>Z kursu pełnego</h1>
131                 <ul class="link-list">
132                     {% for lesson in lessons.course %}
133                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
134                     {% endfor %}
135                 </ul>
136             </section>
137             {% endif %}
138
139             {% if lessons.project %}
140             <section>
141                 <h1>Projekty</h1>
142                 <ul class="link-list">
143                     {% for lesson in lessons.project %}
144                         <li>{% include "catalogue/snippets/lesson_or_stub.html" %}</li>
145                     {% endfor %}
146                 </ul>
147             </section>
148             {% endif %}
149
150         </section>
151         {% endfor %}
152         
153     </section>
154     {% endif %}
155
156
157     {% if added %}
158     <section id="{{ level.slug }}_inne">
159         <h1>Inne</h1>
160
161         {% for item in added %}
162         <section id="{{ level.slug }}_{{ item.slug }}">
163             <h1>{{ item.title }}</h1>
164
165             <ul class="link-list">
166                 {% for lesson in item.lessons %}
167                     <li><a href="{{ lesson.get_absolute_url }}" title="{{ lesson.description }}">{{ lesson }}</a></li>
168                 {% endfor %}
169             </ul>
170         </section>
171         {% endfor %}
172     </section>
173     {% endif %}
174
175
176 </section>