Dodanie informacji o kodowaniu do settings.py.
[wolnelektury.git] / templates / catalogue / book_list.html
1 {% extends "base.html" %}
2 {% load catalogue chunks %}
3
4 {% block bodyid %}book-a-list{% endblock %}
5
6 {% block extrahead %}
7     <script type="text/javascript" charset="utf-8">
8         $(function() {
9             $('#id_q').labelify({labelledClass: 'blur'});
10             $('#book-list .group').addClass('dontsplit');
11             $('#book-list').columnize({columns: 3});
12         });
13     </script>
14 {% endblock %}
15
16 {% block body %}
17     <h1>Alfabetyczny spis utworów</h1>
18     <form action="." method="GET" accept-charset="utf-8" id="search-form">
19         <p>{{ form.q }} <input type="submit" value="Szukaj" /></p>
20     </form>
21     
22     <div id="book-list">
23         {% for first_letter, group in books_by_first_letter.items %}
24         <div class="group">
25             <h2>{{ first_letter }}</h2>
26             <ol>
27             {% for book in group %}
28                 <li><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></li>
29             {% endfor %}
30             </ol>
31         </div>
32         {% endfor %}    
33     </div>
34 {% endblock %}