X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fweb%2Fviews%2Flist_books.tmpl;h=3fa406a1a351a92b60f3c8bb4df4f80cf09ea6f7;hb=HEAD;hp=79f29d39ccd78486e22e595aec678e558a199ccb;hpb=0a4b19cd1c2dd754d4c08aeca41cb18c22d178c2;p=m_librarian.git diff --git a/m_librarian/web/views/list_books.tmpl b/m_librarian/web/views/list_books.tmpl index 79f29d3..3127fec 100644 --- a/m_librarian/web/views/list_books.tmpl +++ b/m_librarian/web/views/list_books.tmpl @@ -1,5 +1,4 @@ #encoding utf-8 -#import cgi #from m_librarian.translations import translations #extends views.layout #attr $title = 'Список книг' @@ -15,6 +14,10 @@ function toggleBooks(selector, value) { } } +function toggleAll(value) { + toggleBooks('input[type=checkbox]', value); +} + function toggleAuthor(name, value) { toggleBooks('input[type=checkbox][name^=' + name + ']', value); } @@ -26,13 +29,15 @@ function toggleSeries(name, value) { #if $books_by_author +#filter WebSafe
- + #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext #for $column in $columns - + #end for #set $columns1 = $len($columns)+1 @@ -55,7 +60,7 @@ function toggleSeries(name, value) { + $unicode($getattr($book, $column) or '') #end for #end for @@ -80,6 +85,7 @@ $cgi.escape($series, 1)#slurp
 $cgi.escape($_($column))$_($column)
$author — #if $book.series -$cgi.escape($series, 1)#slurp +$series, 1#slurp #else Вне серий#slurp #end if @@ -70,7 +75,7 @@ $cgi.escape($series, 1)#slurp #else #set $style = '' #end if - $cgi.escape(unicode($getattr($book, $column) or ''))
+#end filter WebSafe #else

Не найдено ни одной книги!

#end if