]> git.phdru.name Git - m_librarian.git/blob - m_librarian/web/views/list_authors.tmpl
Feat(web): Configure columns for author and book tables
[m_librarian.git] / m_librarian / web / views / list_authors.tmpl
1 #encoding utf-8
2 #import cgi
3 #extends views.layout
4 #attr $title = 'Список авторов'
5 #def body
6 <h1>Поиск авторов</h1>
7 #from views.search_authors_form import search_authors_form
8 $search_authors_form(searchList=$searchList)
9
10 <h1>$title</h1>
11
12 #if $authors
13   <table>
14   #for $author in $authors
15   <tr>
16   #for $column in $columns
17     <td><a href="/books-by-author/$author.id/">
18     $cgi.escape(unicode($getattr($author, $column) or ''))
19     </a></td>
20   #end for
21   </tr>
22   #end for
23   </table>
24 #else
25   <p>Не найдено ни одного автора!</p>
26 #end if
27 #end def