]> git.phdru.name Git - m_librarian.git/commitdiff
Refactor(web): Use classes instead of inline styles
authorOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2024 13:01:09 +0000 (16:01 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 18 Jul 2024 14:28:12 +0000 (17:28 +0300)
[skip ci]

15 files changed:
m_librarian/web/static/style.css
m_librarian/web/views/download.py
m_librarian/web/views/index.py
m_librarian/web/views/layout.py
m_librarian/web/views/layout.tmpl
m_librarian/web/views/list_authors.py
m_librarian/web/views/list_authors.tmpl
m_librarian/web/views/list_books.py
m_librarian/web/views/list_books.tmpl
m_librarian/web/views/search_authors.py
m_librarian/web/views/search_authors_form.py
m_librarian/web/views/search_authors_form.tmpl
m_librarian/web/views/search_books.py
m_librarian/web/views/search_books_form.py
m_librarian/web/views/search_books_form.tmpl

index 5b805359f86b3b24b49d42229ddacb5143d6356e..128d5edb3a20a1005010dfde08296c85c3382000 100644 (file)
@@ -44,3 +44,11 @@ td, th {
    padding-right: 5px;
    border-left: 1px solid black;
 }
+
+.long {
+   width: 100%;
+}
+
+.center {
+   text-align: center;
+}
index c207ccbc05ea11d3921c64f95d477fdf60b5df52..177c0d88c404853000b91c3e4455615a6807fdc3 100644 (file)
@@ -35,10 +35,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.3.1'
 __CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
-__CHEETAH_genTime__ = 1704845598.39619
-__CHEETAH_genTimestamp__ = 'Wed Jan 10 03:13:18 2024'
+__CHEETAH_genTime__ = 1721134725.632482
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'download.tmpl'
-__CHEETAH_srcLastModified__ = 'Wed Jan 10 03:10:53 2024'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
index e066e53903a503b04f4006f865c9eadcd5b204c9..b70a326dc57fc57f87358be435639d5247a10a0f 100644 (file)
@@ -35,12 +35,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '3.1.0'
-__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1527354191.441549
-__CHEETAH_genTimestamp__ = 'Sat May 26 20:03:11 2018'
+__CHEETAH_version__ = '3.3.1'
+__CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
+__CHEETAH_genTime__ = 1721134725.688713
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'index.tmpl'
-__CHEETAH_srcLastModified__ = 'Sat May 26 20:03:09 2018'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -167,7 +167,7 @@ if not hasattr(index, '_initCheetahAttributes'):
 
 # CHEETAH was developed by Tavis Rudd and Mike Orr
 # with code, advice and input from many other volunteers.
-# For more information visit http://cheetahtemplate.org/
+# For more information visit https://cheetahtemplate.org/
 
 ##################################################
 ## if run from command line:
index 524a0b7f8b20f42e51d9283afccaeed10ca0ce89..feae01e3144ed5167a70a1b04bbe7dcad5d7b7f2 100644 (file)
@@ -32,12 +32,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '3.2.6'
-__CHEETAH_versionTuple__ = (3, 2, 6, 'final', 0)
-__CHEETAH_genTime__ = 1608677601.931249
-__CHEETAH_genTimestamp__ = 'Wed Dec 23 01:53:21 2020'
+__CHEETAH_version__ = '3.3.1'
+__CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
+__CHEETAH_genTime__ = 1721134725.743107
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'layout.tmpl'
-__CHEETAH_srcLastModified__ = 'Wed Dec 23 01:52:26 2020'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -103,8 +103,8 @@ class layout(Template):
 </head>
 <body bgcolor="#FFFFFF" text="#000000"
       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
-<table style="width: 100%">
-<tr style="width: 100%">
+<table class="long">
+<tr class="long">
   <td style="width: 50%"><p><a href="/">m_Librarian</a></p></td>
   <td style="width: 50%; text-align: right"><a href="/quit">\u0412\u044b\u0445\u043e\u0434</a></td>
 </tr>
index 10fc0b37c7fac7338475d960afc5a1a57d795feb..b3dbb4f33b150ae381e746f2d8c53eb99579e3ec 100644 (file)
@@ -16,8 +16,8 @@
 </head>
 <body bgcolor="#FFFFFF" text="#000000"
       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
-<table style="width: 100%">
-<tr style="width: 100%">
+<table class="long">
+<tr class="long">
   <td style="width: 50%"><p><a href="/">m_Librarian</a></p></td>
   <td style="width: 50%; text-align: right"><a href="/quit">Выход</a></td>
 </tr>
index e1f00079d27d940a16383eabf058fbc2da7a3a28..a7bf7059a832d186aa66cc658604481d3b920b94 100644 (file)
@@ -37,10 +37,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.3.1'
 __CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
-__CHEETAH_genTime__ = 1720485596.472826
-__CHEETAH_genTimestamp__ = 'Tue Jul  9 03:39:56 2024'
+__CHEETAH_genTime__ = 1721134725.803056
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'list_authors.tmpl'
-__CHEETAH_srcLastModified__ = 'Tue Jul  9 03:39:54 2024'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -101,7 +101,7 @@ class list_authors(layout):
 
 ''')
         if VFFSL(SL,"authors",True): # generated from line 12, col 1
-            _orig_filter_20064572 = _filter
+            _orig_filter_98722638 = _filter
             filterName = u'WebSafe'
             if "WebSafe" in self._CHEETAH__filters:
                 _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
@@ -115,11 +115,11 @@ class list_authors(layout):
                 _
             _ = VFFSL(SL,"getattr",False)(VFFSL(SL,"translations",True), 'ugettext', None) or VFFSL(SL,"translations.gettext",True)
             for column in VFFSL(SL,"columns",True): # generated from line 17, col 3
-                write(u'''    <td style="text-align: center">''')
+                write(u'''    <td class="center">''')
                 if False:
                     _(VFFSL(SL,"column",True))
-                _v = VFFSL(SL,"_",False)(VFFSL(SL,"column",True)) # u'$_($column)' on line 18, col 36
-                if _v is not None: write(_filter(_v, rawExpr=u'$_($column)')) # from line 18, col 36.
+                _v = VFFSL(SL,"_",False)(VFFSL(SL,"column",True)) # u'$_($column)' on line 18, col 24
+                if _v is not None: write(_filter(_v, rawExpr=u'$_($column)')) # from line 18, col 24.
                 write(u'''
 ''')
                 if VFFSL(SL,"sort",True) in (VFFSL(SL,"column",True), '+'+VFFSL(SL,"column",True), '-'+VFFSL(SL,"column",True)): # generated from line 19, col 5
@@ -178,7 +178,7 @@ class list_authors(layout):
 ''')
             write(u'''  </table>
 ''')
-            _filter = self._CHEETAH__currentFilter = _orig_filter_20064572
+            _filter = self._CHEETAH__currentFilter = _orig_filter_98722638
         else: # generated from line 52, col 1
             write(u'''  <p>\u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430!</p>
 ''')
index 3848618e24df54bc7c5b118410c2eab7c5a16a11..1d0c772296d41ea7991e030183a0a2833cb5ac60 100644 (file)
@@ -15,7 +15,7 @@ $search_authors_form(searchList=$searchList)
   <tr>
   #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext
   #for $column in $columns
-    <td style="text-align: center">$_($column)
+    <td class="center">$_($column)
     #if $sort in ($column, '+'+$column, '-'+$column)
       #if $sort in ($column, '+'+$column)
         #set $sort_param='-'+$column
index 7a327ed08752b59ff85ef01387b178bab6a7a117..2da3e3ebf14a3d940a3241ecfca404296a7ebccc 100644 (file)
@@ -36,10 +36,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.3.1'
 __CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
-__CHEETAH_genTime__ = 1718725757.733093
-__CHEETAH_genTimestamp__ = 'Tue Jun 18 18:49:17 2024'
+__CHEETAH_genTime__ = 1721134725.866559
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'list_books.tmpl'
-__CHEETAH_srcLastModified__ = 'Tue Jun 18 18:49:15 2024'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -117,7 +117,7 @@ function toggleSeries(name, value) {
 
 ''')
         if VFFSL(SL,"books_by_author",True): # generated from line 31, col 1
-            _orig_filter_17563757 = _filter
+            _orig_filter_31788103 = _filter
             filterName = u'WebSafe'
             if "WebSafe" in self._CHEETAH__filters:
                 _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
@@ -134,11 +134,11 @@ function toggleSeries(name, value) {
                 _
             _ = VFFSL(SL,"getattr",False)(VFFSL(SL,"translations",True), 'ugettext', None) or VFFSL(SL,"translations.gettext",True)
             for column in VFFSL(SL,"columns",True): # generated from line 39, col 3
-                write(u'''    <td style="text-align: center">''')
+                write(u'''    <td class="center">''')
                 if False:
                     _(VFFSL(SL,"column",True))
-                _v = VFFSL(SL,"_",False)(VFFSL(SL,"column",True)) # u'$_($column)' on line 40, col 36
-                if _v is not None: write(_filter(_v, rawExpr=u'$_($column)')) # from line 40, col 36.
+                _v = VFFSL(SL,"_",False)(VFFSL(SL,"column",True)) # u'$_($column)' on line 40, col 24
+                if _v is not None: write(_filter(_v, rawExpr=u'$_($column)')) # from line 40, col 24.
                 write(u'''</td>
 ''')
             write(u'''  </tr>
@@ -225,12 +225,12 @@ function toggleSeries(name, value) {
   <td colspan="''')
             _v = VFFSL(SL,"columns1",True) # u'$columns1' on line 84, col 16
             if _v is not None: write(_filter(_v, rawExpr=u'$columns1')) # from line 84, col 16.
-            write(u'''" style="text-align: center"><input type="submit" value="\u0421\u043a\u0430\u0447\u0430\u0442\u044c"></td>
+            write(u'''" class="center"><input type="submit" value="\u0421\u043a\u0430\u0447\u0430\u0442\u044c"></td>
   </tr>
   </table>
   </form>
 ''')
-            _filter = self._CHEETAH__currentFilter = _orig_filter_17563757
+            _filter = self._CHEETAH__currentFilter = _orig_filter_31788103
         else: # generated from line 89, col 1
             write(u'''  <p>\u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438!</p>
 ''')
index 3127fec203c2bab0096e636335e4ad07c0da1f95..4a5c283df4bfd0b1c974c5d4bdfa3bddb0203df7 100644 (file)
@@ -37,7 +37,7 @@ function toggleSeries(name, value) {
   onClick="toggleAll(this.checked)"></td>
   #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext
   #for $column in $columns
-    <td style="text-align: center">$_($column)</td>
+    <td class="center">$_($column)</td>
   #end for
   </tr>
   #set $columns1 = $len($columns)+1
@@ -81,7 +81,7 @@ $series, 1#slurp
     #end for
   #end for
   <tr>
-  <td colspan="$columns1" style="text-align: center"><input type="submit" value="Скачать"></td>
+  <td colspan="$columns1" class="center"><input type="submit" value="Скачать"></td>
   </tr>
   </table>
   </form>
index cfa90831135ea074d8472e2ae144d34ab30c3d6c..121873604fc1c756dea0117330aa564d6a127e74 100644 (file)
@@ -34,12 +34,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '3.1.0'
-__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1522961824.208664
-__CHEETAH_genTimestamp__ = 'Thu Apr  5 23:57:04 2018'
+__CHEETAH_version__ = '3.3.1'
+__CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
+__CHEETAH_genTime__ = 1721134725.921719
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'search_authors.tmpl'
-__CHEETAH_srcLastModified__ = 'Thu Apr  5 23:54:16 2018'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -162,7 +162,7 @@ if not hasattr(search_authors, '_initCheetahAttributes'):
 
 # CHEETAH was developed by Tavis Rudd and Mike Orr
 # with code, advice and input from many other volunteers.
-# For more information visit http://cheetahtemplate.org/
+# For more information visit https://cheetahtemplate.org/
 
 ##################################################
 ## if run from command line:
index 78a1c36b7d3759ff8b2d6d3d05bb32dbe31b3adf..0677349468f1d08057963f7aa7c4a16361072ad3 100644 (file)
@@ -35,10 +35,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.3.1'
 __CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
-__CHEETAH_genTime__ = 1720463312.154712
-__CHEETAH_genTimestamp__ = 'Mon Jul  8 21:28:32 2024'
+__CHEETAH_genTime__ = 1721134725.976445
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
 __CHEETAH_src__ = 'search_authors_form.tmpl'
-__CHEETAH_srcLastModified__ = 'Mon Jul  8 21:28:30 2024'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -142,12 +142,12 @@ class search_authors_form(Template):
         ## START - generated method body
         
         write(u'''<form action="/list_authors/" method="POST">
-  <div style="width: 100%">
+  <div class="long">
   <input name="search_authors" value="''')
         _v = VFFSL(SL,"html_escape",False)(VFFSL(SL,"getVar",False)('search_authors',
   ''))
         if _v is not None: write(_filter(_v, rawExpr=u"$html_escape($getVar('search_authors',\n  ''))")) # from line 15, col 39.
-        write(u'''" type="text" style="width: 100%">
+        write(u'''" type="text" class="long">
   <br>
   <input name="search_type" value="start" ''')
         _v = VFFSL(SL,"search_type_checked",False)('start') # u"$search_type_checked('start')" on line 18, col 43
@@ -171,7 +171,7 @@ class search_authors_form(Template):
         write(u'''>
   \u0420\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435/\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435
   </div>
-  <div style="width: 100%; text-align: center">
+  <div class="long center">
   <input name="submit" type="submit" value="\u0418\u0441\u043a\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u043e\u0432">
   </div>
 </form>
index 10fa94b87edbc81fbe809e7d12b9c595040176e6..69086630b8c8d28a077e321bf11fa5d69671336b 100644 (file)
@@ -11,9 +11,9 @@ checked#slurp
 #end if
 #end def
 <form action="/list_authors/" method="POST">
-  <div style="width: 100%">
+  <div class="long">
   <input name="search_authors" value="$html_escape($getVar('search_authors',
-  ''))" type="text" style="width: 100%">
+  ''))" type="text" class="long">
   <br>
   <input name="search_type" value="start" $search_type_checked('start') type="radio">
   Подстрока в начале
@@ -25,7 +25,7 @@ checked#slurp
   <input name="case_sensitive" type="checkbox" $case_sensitive_checked>
   Различать прописные/строчные
   </div>
-  <div style="width: 100%; text-align: center">
+  <div class="long center">
   <input name="submit" type="submit" value="Искать авторов">
   </div>
 </form>
index 2e8636be9e738f2f8a95bf56b4e5193d0bc854f9..6c4984c8af64d40cffd9aa512ea63053c61867e3 100644 (file)
@@ -34,12 +34,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '3.1.0'
-__CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1527354048.738532
-__CHEETAH_genTimestamp__ = 'Sat May 26 20:00:48 2018'
+__CHEETAH_version__ = '3.3.1'
+__CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
+__CHEETAH_genTime__ = 1721134726.030654
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:46 2024'
 __CHEETAH_src__ = 'search_books.tmpl'
-__CHEETAH_srcLastModified__ = 'Sat May 26 19:59:55 2018'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -162,7 +162,7 @@ if not hasattr(search_books, '_initCheetahAttributes'):
 
 # CHEETAH was developed by Tavis Rudd and Mike Orr
 # with code, advice and input from many other volunteers.
-# For more information visit http://cheetahtemplate.org/
+# For more information visit https://cheetahtemplate.org/
 
 ##################################################
 ## if run from command line:
index 01b8770bb399e09d479a6c66c9190f10e816d4d3..204637518f8f61ccf421f989e7b4f60b28001e4a 100644 (file)
@@ -33,12 +33,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '3.3.3'
-__CHEETAH_versionTuple__ = (3, 3, 3, 'final', 0)
-__CHEETAH_genTime__ = 1704324466.1203597
-__CHEETAH_genTimestamp__ = 'Thu Jan  4 02:27:46 2024'
+__CHEETAH_version__ = '3.3.1'
+__CHEETAH_versionTuple__ = (3, 3, 1, 'final', 0)
+__CHEETAH_genTime__ = 1721134726.086564
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:46 2024'
 __CHEETAH_src__ = 'search_books_form.tmpl'
-__CHEETAH_srcLastModified__ = 'Thu Jan  4 02:27:28 2024'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -87,7 +87,7 @@ class search_books_form(Template):
         ## START - generated method body
         
         if VFFSL(SL,"getVar",False)('search_type', '') == VFFSL(SL,"value",True): # generated from line 4, col 1
-            write('''checked''')
+            write(u'''checked''')
         
         ########################################
         ## END - generated method body
@@ -115,7 +115,7 @@ class search_books_form(Template):
         ## START - generated method body
         
         if VFFSL(SL,"getVar",False)('case_sensitive', None): # generated from line 9, col 1
-            write('''checked''')
+            write(u'''checked''')
         
         ########################################
         ## END - generated method body
@@ -143,7 +143,7 @@ class search_books_form(Template):
         ## START - generated method body
         
         if VFFSL(SL,"getVar",False)('use_filters', VFN(VFFSL(SL,"get_config",False)(),"getint",False)('filters', 'use_in_search_forms', 1)): # generated from line 14, col 1
-            write('''checked''')
+            write(u'''checked''')
         
         ########################################
         ## END - generated method body
@@ -169,43 +169,43 @@ class search_books_form(Template):
         ########################################
         ## START - generated method body
         
-        write('''<form action="/search_books/" method="POST">
-  <div style="width: 100%">
+        write(u'''<form action="/search_books/" method="POST">
+  <div class="long">
   <input name="search_books" value="''')
         _v = VFFSL(SL,"html_escape",False)(VFFSL(SL,"getVar",False)('search_books',
   ''))
-        if _v is not None: write(_filter(_v, rawExpr="$html_escape($getVar('search_books',\n  ''))")) # from line 20, col 37.
-        write('''" type="text" style="width: 100%">
+        if _v is not None: write(_filter(_v, rawExpr=u"$html_escape($getVar('search_books',\n  ''))")) # from line 20, col 37.
+        write(u'''" type="text" class="long">
   <br>
   <input name="search_type" value="start" ''')
-        _v = VFFSL(SL,"search_type_checked",False)('start') # "$search_type_checked('start')" on line 23, col 43
-        if _v is not None: write(_filter(_v, rawExpr="$search_type_checked('start')")) # from line 23, col 43.
-        write(''' type="radio">
-  Подстрока в начале
+        _v = VFFSL(SL,"search_type_checked",False)('start') # u"$search_type_checked('start')" on line 23, col 43
+        if _v is not None: write(_filter(_v, rawExpr=u"$search_type_checked('start')")) # from line 23, col 43.
+        write(u''' type="radio">
+  \u041f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435
   <input name="search_type" value="substring" ''')
-        _v = VFFSL(SL,"search_type_checked",False)('substring') # "$search_type_checked('substring')" on line 25, col 47
-        if _v is not None: write(_filter(_v, rawExpr="$search_type_checked('substring')")) # from line 25, col 47.
-        write(''' type="radio">
-  Подстрока
+        _v = VFFSL(SL,"search_type_checked",False)('substring') # u"$search_type_checked('substring')" on line 25, col 47
+        if _v is not None: write(_filter(_v, rawExpr=u"$search_type_checked('substring')")) # from line 25, col 47.
+        write(u''' type="radio">
+  \u041f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0430
   <input name="search_type" value="full" ''')
-        _v = VFFSL(SL,"search_type_checked",False)('full') # "$search_type_checked('full')" on line 27, col 42
-        if _v is not None: write(_filter(_v, rawExpr="$search_type_checked('full')")) # from line 27, col 42.
-        write(''' type="radio">
-  Точное совпадение
+        _v = VFFSL(SL,"search_type_checked",False)('full') # u"$search_type_checked('full')" on line 27, col 42
+        if _v is not None: write(_filter(_v, rawExpr=u"$search_type_checked('full')")) # from line 27, col 42.
+        write(u''' type="radio">
+  \u0422\u043e\u0447\u043d\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435
   <br>
   <input name="case_sensitive" type="checkbox" ''')
-        _v = VFFSL(SL,"case_sensitive_checked",True) # '$case_sensitive_checked' on line 30, col 48
-        if _v is not None: write(_filter(_v, rawExpr='$case_sensitive_checked')) # from line 30, col 48.
-        write('''>
-  Различать прописные/строчные
+        _v = VFFSL(SL,"case_sensitive_checked",True) # u'$case_sensitive_checked' on line 30, col 48
+        if _v is not None: write(_filter(_v, rawExpr=u'$case_sensitive_checked')) # from line 30, col 48.
+        write(u'''>
+  \u0420\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435/\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435
   <input name="use_filters" type="checkbox" ''')
-        _v = VFFSL(SL,"use_filters_check",True) # '$use_filters_check' on line 32, col 45
-        if _v is not None: write(_filter(_v, rawExpr='$use_filters_check')) # from line 32, col 45.
-        write('''>
-  Использовать фильтры
+        _v = VFFSL(SL,"use_filters_check",True) # u'$use_filters_check' on line 32, col 45
+        if _v is not None: write(_filter(_v, rawExpr=u'$use_filters_check')) # from line 32, col 45.
+        write(u'''>
+  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b
   </div>
-  <div style="width: 100%; text-align: center">
-  <input name="submit" type="submit" value="Искать книги">
+  <div class="long center">
+  <input name="submit" type="submit" value="\u0418\u0441\u043a\u0430\u0442\u044c \u043a\u043d\u0438\u0433\u0438">
   </div>
 </form>
 ''')
index 6ac0ca7137cee89c49fa912a9f512f47dd7975ea..6bac07a8afbf73fd7e391453e43d9a88ce029446 100644 (file)
@@ -16,9 +16,9 @@ checked#slurp
 #end if
 #end def
 <form action="/search_books/" method="POST">
-  <div style="width: 100%">
+  <div class="long">
   <input name="search_books" value="$html_escape($getVar('search_books',
-  ''))" type="text" style="width: 100%">
+  ''))" type="text" class="long">
   <br>
   <input name="search_type" value="start" $search_type_checked('start') type="radio">
   Подстрока в начале
@@ -32,7 +32,7 @@ checked#slurp
   <input name="use_filters" type="checkbox" $use_filters_check>
   Использовать фильтры
   </div>
-  <div style="width: 100%; text-align: center">
+  <div class="long center">
   <input name="submit" type="submit" value="Искать книги">
   </div>
 </form>