]> git.phdru.name Git - m_librarian.git/blob - m_librarian/web/views/books_by_author.tmpl
Feat(web): Сделать множественный выбор в списке книг
[m_librarian.git] / m_librarian / web / views / books_by_author.tmpl
1 #encoding utf-8
2 #extends views.layout
3 #attr $title = 'Список книг автора'
4 #def body
5 <h1>$title $author.fullname</h1>
6
7 #if $books
8   <form action="" method="POST" style="height: 80%">
9   <select multiple style="height: 90%">
10   #set $series = None
11   #for $book in $books
12   #if $book.series != $series
13   #if $series is not None
14   </optgroup>
15   #end if
16   #set $series = $book.series
17   <optgroup label="#slurp
18   #if $book.series
19 $series#slurp
20   #else
21 Вне серий#slurp
22   #end if
23 ">
24   #end if
25   <option value="$book.id">$book.ser_no $book.title</option>
26   #end for
27   </optgroup>
28   </select>
29   </form>
30 #else
31   <p>Не найдено ни одной книги!</p>
32 #end if
33 #end def