[TASK] Correct HTML structure for tables in list module 42/44942/13
authorGianluigi Martino <gmartino27@gmail.com>
Wed, 25 Nov 2015 16:56:32 +0000 (17:56 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 8 Jan 2016 18:26:44 +0000 (19:26 +0100)
Use correct nesting of div tags for bootstrap's collapsable.

Change-Id: I06e7e065340c322c2849d0782531836e777e511d
Resolves: #71506
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/44942
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Build/Resources/Public/Less/TYPO3/_element_panel.less
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 553a6bc..b42b6e1 100644 (file)
@@ -31,6 +31,7 @@
 //
 .panel-heading {
        position: relative;
+
        &[data-toggle="formengine-flex"],
        &[data-toggle="formengine-inline"] {
                cursor: pointer;
                margin: 0;
        }
 }
+.recordlist {
+       .table-fit {
+               margin-bottom: 0;
+       }
+}
 
 //
 // Panel hover
        .panel-carousel {
                padding: @panel-lg-padding;
        }
-}
\ No newline at end of file
+}
index 99a7b69..71638c0 100644 (file)
@@ -811,14 +811,16 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                        <!--
                                DB listing of elements: "' . htmlspecialchars($table) . '"
                        -->
-                               <div class="panel panel-space panel-default">
+                               <div class="panel panel-space panel-default recordlist">
                                        <div class="panel-heading">
                                        ' . $tableHeader . '
                                        </div>
-                                       <div class="table-fit ' . $collapseClass . '" id="recordlist-' . htmlspecialchars($table) . '" data-state="' . $dataState . '">
-                                               <table data-table="' . htmlspecialchars($table) . '" class="table table-striped table-hover' . ($listOnlyInSingleTableMode ? ' typo3-dblist-overview' : '') . '">
-                                                       ' . $out . '
-                                               </table>
+                                       <div class="' . $collapseClass . '" data-state="' . $dataState . '" id="recordlist-' . htmlspecialchars($table) . '">
+                                               <div class="table-fit">
+                                                       <table data-table="' . htmlspecialchars($table) . '" class="table table-striped table-hover' . ($listOnlyInSingleTableMode ? ' typo3-dblist-overview' : '') . '">
+                                                               ' . $out . '
+                                                       </table>
+                                               </div>
                                        </div>
                                </div>
                        ';
index 239d27d..7cf29e1 100644 (file)
@@ -10745,6 +10745,9 @@ fieldset[disabled] .table .btn-default.focus {
   border: 0;
   margin: 0;
 }
+.recordlist .table-fit {
+  margin-bottom: 0;
+}
 .panel-hover .panel-default:hover > .panel-heading {
   background-color: #e5e5e5;
 }