]> git.phdru.name Git - m_librarian.git/commitdiff
Feat(web): Fix button "Save" at the bottom of the screen
authorOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2024 17:50:54 +0000 (20:50 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 18 Jul 2024 14:28:12 +0000 (17:28 +0300)
[skip ci]

m_librarian/web/static/style.css
m_librarian/web/views/list_books.py
m_librarian/web/views/list_books.tmpl

index 128d5edb3a20a1005010dfde08296c85c3382000..98c2ef5aee4b1c9f7e0ebe0bc2e595a0a2f3ffc2 100644 (file)
@@ -52,3 +52,16 @@ td, th {
 .center {
    text-align: center;
 }
+
+#list_books {
+   width: 100%;
+   margin-bottom: 3ex;
+}
+
+#bottom {
+   position: fixed;
+   bottom: 0;
+   width: 100%;
+   height: 3ex;
+   background-color: white;
+}
index 2da3e3ebf14a3d940a3241ecfca404296a7ebccc..0b0fa39dccd2c6391f290d7809e62407feedd43f 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__ = 1721134725.866559
-__CHEETAH_genTimestamp__ = 'Tue Jul 16 15:58:45 2024'
+__CHEETAH_genTime__ = 1721152062.147147
+__CHEETAH_genTimestamp__ = 'Tue Jul 16 20:47:42 2024'
 __CHEETAH_src__ = 'list_books.tmpl'
-__CHEETAH_srcLastModified__ = 'Tue Jul 16 15:57:52 2024'
+__CHEETAH_srcLastModified__ = 'Tue Jul 16 20:47:39 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_31788103 = _filter
+            _orig_filter_65030134 = _filter
             filterName = u'WebSafe'
             if "WebSafe" in self._CHEETAH__filters:
                 _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
@@ -125,7 +125,7 @@ function toggleSeries(name, value) {
                 _filter = self._CHEETAH__currentFilter = \
                        self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
             write(u'''  <form action="/download/" method="POST" style="height: 80%">
-  <table style="width: 100%; height: 90%">
+  <table id="list_books">
   <tr>
   <td><input type=checkbox name="_toggleAll"
   onClick="toggleAll(this.checked)"></td>
@@ -221,16 +221,13 @@ function toggleSeries(name, value) {
 ''')
                     write(u'''  </tr>
 ''')
-            write(u'''  <tr>
-  <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'''" class="center"><input type="submit" value="\u0421\u043a\u0430\u0447\u0430\u0442\u044c"></td>
-  </tr>
-  </table>
+            write(u'''  </table>
+  <div id="bottom" class="center">
+  <input type="submit" value="\u0421\u043a\u0430\u0447\u0430\u0442\u044c">
+  </div>
   </form>
 ''')
-            _filter = self._CHEETAH__currentFilter = _orig_filter_31788103
+            _filter = self._CHEETAH__currentFilter = _orig_filter_65030134
         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 4a5c283df4bfd0b1c974c5d4bdfa3bddb0203df7..2557a507f5b13a710121691755ce5cdde77e23e1 100644 (file)
@@ -31,7 +31,7 @@ function toggleSeries(name, value) {
 #if $books_by_author
 #filter WebSafe
   <form action="/download/" method="POST" style="height: 80%">
-  <table style="width: 100%; height: 90%">
+  <table id="list_books">
   <tr>
   <td><input type=checkbox name="_toggleAll"
   onClick="toggleAll(this.checked)"></td>
@@ -80,10 +80,10 @@ $series, 1#slurp
   </tr>
     #end for
   #end for
-  <tr>
-  <td colspan="$columns1" class="center"><input type="submit" value="Скачать"></td>
-  </tr>
   </table>
+  <div id="bottom" class="center">
+  <input type="submit" value="Скачать">
+  </div>
   </form>
 #end filter WebSafe
 #else