]> git.phdru.name Git - m_librarian.git/blob - m_librarian/web/views/books_by_author.tmpl
Fix(web): Escape attributes values and texts
[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="" method="POST" style="height: 80%">
10   <select multiple style="height: 90%">
11   #set $series = None
12   #for $book in $books
13   #if $book.series != $series
14   #if $series is not None
15   </optgroup>
16   #end if
17   #set $series = $book.series
18   <optgroup label="#slurp
19   #if $book.series
20 $cgi.escape($series, 1)#slurp
21   #else
22 Вне серий#slurp
23   #end if
24 ">
25   #end if
26   <option value="$book.id">$book.ser_no $cgi.escape($book.title)</option>
27   #end for
28   </optgroup>
29   </select>
30   </form>
31 #else
32   <p>Не найдено ни одной книги!</p>
33 #end if
34 #end def