3 #from m_librarian.translations import translations
5 #attr $title = 'Список книг'
10 <form action="/download/" method="POST" style="height: 80%">
11 <table style="width: 100%; height: 90%">
14 #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext
15 #for $column in $columns
16 <td style="text-align: center">$cgi.escape($_($column))</td>
20 #set $columns1 = $len($columns)+1
21 #for $author in $sorted($books_by_author)
22 #set $books = $books_by_author[$author]
24 #if $book.series != $series
25 #set $series = $book.series
27 <td colspan="$columns1"><b>
30 $cgi.escape($series, 1)#slurp
38 <td><input type=checkbox name=books value="$book.id"></td>
39 #for $column in $columns
40 #if $column in ('ser_no', 'size')
41 #set $style = ' style="text-align: right; width: 5ex"'
45 <td$style>$cgi.escape(unicode($getattr($book, $column) or ''))</td>
51 <td colspan="$columns1" style="text-align: center"><input type="submit" value="Скачать"></td>
56 <p>Не найдено ни одной книги!</p>