]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/list_authors.tmpl
Feat(web): Change submit buttons texts
[m_librarian.git] / m_librarian / web / views / list_authors.tmpl
index a872afc8b21b171aa218feadee90da4cb116fbad..bdfd9fddf2abc1a48e1c704f1a1dd44d1321b5a4 100644 (file)
@@ -1,5 +1,6 @@
 #encoding utf-8
 #import cgi
+#from m_librarian.translations import translations
 #extends views.layout
 #attr $title = 'Список авторов'
 #def body
@@ -11,10 +12,21 @@ $search_authors_form(searchList=$searchList)
 
 #if $authors
   <table>
+  <tr>
+  #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext
+  #for $column in $columns
+    <td style="text-align: center">$cgi.escape($_($column))</td>
+  #end for
+  </tr>
   #for $author in $authors
   <tr>
   #for $column in $columns
-    <td><a href="/books-by-author/$author.id/">
+    #if $column == 'count'
+    #set $style = ' style="text-align: right; width: 5ex"'
+    #else
+    #set $style = ''
+    #end if
+    <td$style><a href="/books-by-author/$author.id/">
     $cgi.escape(unicode($getattr($author, $column) or ''))
     </a></td>
   #end for