- <div style="width: 100%; height: 90%">
- <select multiple name="books" style="height: 100%">
- #set $series = None
- #for $book in $books
- #if $book.series != $series
- #if $series is not None
- </optgroup>
- #end if
- #set $series = $book.series
- <optgroup label="#slurp
+ <table style="width: 100%; height: 90%">
+ <tr>
+ <td><input type=checkbox name="_toggleAll"
+ onClick="toggleAll(this.checked)"></td>
+ #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext
+ #for $column in $columns
+ <td style="text-align: center">$_($column)</td>
+ #end for
+ </tr>
+ #set $columns1 = $len($columns)+1
+ #for $anum, $author in $enumerate($sorted($books_by_author))
+ #set $series = None
+ #set $snum = 0
+ #set $books = $books_by_author[$author]
+ <tr>
+ <td><input type=checkbox name="a${anum+1}_"
+ onClick="toggleAuthor(this.name, this.checked)"></td>
+ <td colspan="${columns1-1}"><b>$author</b></td>
+ </tr>
+ #for $book in $books
+ #if $book.series != $series
+ #set $series = $book.series
+ #set $snum += 1
+ <tr>
+ <td><input type=checkbox name="a${anum+1}_s${snum}"
+ onClick="toggleSeries(this.name, this.checked)"></td>
+ <td colspan="${columns1-1}"><b>
+ $author — <i>