]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/books_by_author.tmpl
Feat(web): Use signgle template `list_books`
[m_librarian.git] / m_librarian / web / views / books_by_author.tmpl
diff --git a/m_librarian/web/views/books_by_author.tmpl b/m_librarian/web/views/books_by_author.tmpl
deleted file mode 100644 (file)
index 2200913..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#encoding utf-8
-#import cgi
-#from m_librarian.translations import translations
-#extends views.layout
-#attr $title = 'Список книг автора'
-#def body
-<h1>$title $author.fullname</h1>
-
-#if $books
-  <form action="/download/" method="POST" style="height: 80%">
-  <table style="width: 100%; height: 90%">
-  <tr>
-  <td>&nbsp;</td>
-  #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext
-  #for $column in $columns
-    <td style="text-align: center">$cgi.escape($_($column))</td>
-  #end for
-  </tr>
-  #set $series = None
-  #set $columns1 = $len($columns)+1
-  #for $book in $books
-  #if $book.series != $series
-  #set $series = $book.series
-  <tr>
-  <td colspan="$columns1"><b><i>
-  #if $book.series
-$cgi.escape($series, 1)#slurp
-  #else
-Вне серий#slurp
-  #end if
-  </i></b></td>
-  </tr>
-  #end if
-  <tr>
-  <td><input type=checkbox name=books value="$book.id"></td>
-  #for $column in $columns
-  #if $column in ('ser_no', 'size')
-  #set $style = ' style="text-align: right; width: 5ex"'
-  #else
-  #set $style = ''
-  #end if
-  <td$style>$cgi.escape(unicode($getattr($book, $column) or ''))</td>
-  #end for
-  </tr>
-  #end for
-  <tr>
-  <td colspan="$columns1" style="text-align: center"><input type="submit" value="Скачать"></td>
-  </tr>
-  </table>
-  </form>
-#else
-  <p>Не найдено ни одной книги!</p>
-#end if
-#end def