#encoding utf-8
+#import cgi
#extends views.layout
#attr $title = 'Список книг автора'
#def body
<h1>$title $author.fullname</h1>
#if $books
- <table>
+ <form action="/download/" method="POST" style="height: 80%">
+ <table style="width: 100%; height: 90%">
#set $series = None
#for $book in $books
#if $book.series != $series
#set $series = $book.series
- #if $book.series
<tr>
- <td colspan=2>Серия: $series</td>
- </tr>
+ <td colspan=2><b><i>
+ #if $book.series
+$cgi.escape($series, 1)#slurp
#else
- <tr>
- <td colspan=2>Вне серий</td>
- </tr>
+Вне серий#slurp
#end if
+ </i></b></td>
+ </tr>
#end if
<tr>
- <td class="numeric">$book.ser_no</td>
- <td><a href="/download/$book.id/">$book.title</a></td>
+ <td><input type=checkbox name=books value="$book.id"></td>
+ <td>$book.ser_no $cgi.escape($book.title)</td>
</tr>
#end for
+ <tr>
+ <td colspan=2 style="text-align: center"><input type="submit" value="Скачать"></td>
+ </tr>
</table>
+ </form>
#else
<p>Не найдено ни одной книги!</p>
#end if