]> git.phdru.name Git - m_librarian.git/blob - m_librarian/web/views/books_by_author.tmpl
61db03c1fe20abefca95d797cc1129ce422a60ca
[m_librarian.git] / m_librarian / web / views / books_by_author.tmpl
1 #encoding utf-8
2 #import cgi
3 #extends views.layout
4 #attr $title = 'Список книг автора'
5 #def body
6 <h1>$title $author.fullname</h1>
7
8 #if $books
9   <form action="/download/" method="POST" style="height: 80%">
10   <table style="width: 100%; height: 90%">
11   #set $series = None
12   #for $book in $books
13   #if $book.series != $series
14   #set $series = $book.series
15   <tr>
16   <td colspan=2><b><i>
17   #if $book.series
18 $cgi.escape($series, 1)#slurp
19   #else
20 Вне серий#slurp
21   #end if
22   </i></b></td>
23   </tr>
24   #end if
25   <tr>
26   <td><input type=checkbox name=books value="$book.id"></td>
27   <td>$book.ser_no $cgi.escape($book.title)</td>
28   </tr>
29   #end for
30   <tr>
31   <td colspan=2 style="text-align: center"><input type="submit" value="Скачать"></td>
32   </tr>
33   </table>
34   </form>
35 #else
36   <p>Не найдено ни одной книги!</p>
37 #end if
38 #end def