Bug 32576: Move page-section outside of table include
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Jan 2023 15:17:06 +0000 (15:17 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 2 Mar 2023 12:37:42 +0000 (09:37 -0300)
This patch drops the superflous div from the ill-list-table include and
instead opts to wrap calls to it with a more appropriately positioned
div instead.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table.inc
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/ill-requests.tt

index 7e59a2f..755e6e5 100644 (file)
@@ -1,43 +1,41 @@
-<div class="page-section">
-    [% IF prefilters.length > 0 %]
-    <table id="ill-requests" data-prefilters="[% prefilters | html %]">
-    [% ELSE %]
-    <table id="ill-requests">
-    [% END %]
-        <thead>
-            <tr id="illview-header">
-                <th scope="col">Request ID</th>
-                <th scope="col">Author</th>
-                <th scope="col">Title</th>
-                <th scope="col">Article title</th>
-                <th scope="col">Issue</th>
-                <th scope="col">Volume</th>
-                <th scope="col">Year</th>
-                <th scope="col">Pages</th>
-                <th scope="col">Request type</th>
-                <th scope="col">Order ID</th>
-                <th scope="col">Patron</th>
-                <th scope="col">Bibliographic record ID</th>
-                <th scope="col">Library</th>
-                <th scope="col">Status</th>
-                <th scope="col" class="placed">&nbsp;</th>
-                <th scope="col" class="placed_formatted">Placed on</th>
-                <th scope="col" class="updated">&nbsp;</th>
-                <th scope="col" class="updated_formatted">Updated on</th>
-                <th scope="col">Replied</th>
-                <th scope="col" class="completed">&nbsp;</th>
-                <th scope="col" class="completed_formatted">Completed on</th>
-                <th scope="col">Access URL</th>
-                <th scope="col">Cost</th>
-                <th scope="col">Price paid</th>
-                <th scope="col">Comments</th>
-                <th scope="col">OPAC notes</th>
-                <th scope="col">Staff notes</th>
-                <th scope="col">Backend</th>
-                <th scope="col" class="actions"></th>
-            </tr>
-        </thead>
-        <tbody id="illview-body">
-        </tbody>
-    </table>
-</div>
+[% IF prefilters.length > 0 %]
+<table id="ill-requests" data-prefilters="[% prefilters | html %]">
+[% ELSE %]
+<table id="ill-requests">
+[% END %]
+    <thead>
+        <tr id="illview-header">
+            <th scope="col">Request ID</th>
+            <th scope="col">Author</th>
+            <th scope="col">Title</th>
+            <th scope="col">Article title</th>
+            <th scope="col">Issue</th>
+            <th scope="col">Volume</th>
+            <th scope="col">Year</th>
+            <th scope="col">Pages</th>
+            <th scope="col">Request type</th>
+            <th scope="col">Order ID</th>
+            <th scope="col">Patron</th>
+            <th scope="col">Bibliographic record ID</th>
+            <th scope="col">Library</th>
+            <th scope="col">Status</th>
+            <th scope="col" class="placed">&nbsp;</th>
+            <th scope="col" class="placed_formatted">Placed on</th>
+            <th scope="col" class="updated">&nbsp;</th>
+            <th scope="col" class="updated_formatted">Updated on</th>
+            <th scope="col">Replied</th>
+            <th scope="col" class="completed">&nbsp;</th>
+            <th scope="col" class="completed_formatted">Completed on</th>
+            <th scope="col">Access URL</th>
+            <th scope="col">Cost</th>
+            <th scope="col">Price paid</th>
+            <th scope="col">Comments</th>
+            <th scope="col">OPAC notes</th>
+            <th scope="col">Staff notes</th>
+            <th scope="col">Backend</th>
+            <th scope="col" class="actions"></th>
+        </tr>
+    </thead>
+    <tbody id="illview-body">
+    </tbody>
+</table>
index 8192777..c823658 100644 (file)
                 [% ELSIF query_type == 'illlist' %]
                     <!-- illlist -->
                     <h1>View ILL requests</h1>
-                    <div id="results">
-                        <h3>Details for all requests</h3>
+                    <div id="results" class="page-section">
+                        <h2>Details for all requests</h2>
                         [% INCLUDE 'ill-list-table.inc' %]
-
                     </div> <!-- /#results -->
                 [% ELSIF query_type == 'availability' %]
                     <!-- availability -->
index 87853b7..1bed9c2 100644 (file)
@@ -42,7 +42,9 @@
             <main>
                 [% INCLUDE 'members-toolbar.inc' %]
                 <h1>ILL requests history</h1>
-                [% INCLUDE 'ill-list-table.inc' %]
+                <div class="page-section">
+                    [% INCLUDE 'ill-list-table.inc' %]
+                </div>
             </main>
         </div> <!-- .col-sm-10.col-sm-push-2 -->