]> git.phdru.name Git - m_librarian.git/blobdiff - 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
index f7377ba29c5fc835f717d06f8e561fe17883eca1..a872afc8b21b171aa218feadee90da4cb116fbad 100644 (file)
@@ -1,4 +1,5 @@
 #encoding utf-8
+#import cgi
 #extends views.layout
 #attr $title = 'Список авторов'
 #def body
@@ -12,7 +13,11 @@ $search_authors_form(searchList=$searchList)
   <table>
   #for $author in $authors
   <tr>
-    <td><a href="/books-by-author/$author.id/">$author.fullname</a></td>
+  #for $column in $columns
+    <td><a href="/books-by-author/$author.id/">
+    $cgi.escape(unicode($getattr($author, $column) or ''))
+    </a></td>
+  #end for
   </tr>
   #end for
   </table>