[TASK] Followup: Make Scheduler tables responsive 48/37548/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 5 Mar 2015 07:07:26 +0000 (08:07 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 5 Mar 2015 10:34:41 +0000 (11:34 +0100)
Wrap tables in <div class="table-fit"> to make the tables reposonsive.

Resolves: #65532
Releases: master
Change-Id: I76cca7377d7613d560060b17ae3396ca281b99dc
Reviewed-on: http://review.typo3.org/37548
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html

index fd17136..840321c 100644 (file)
@@ -1143,7 +1143,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                        }
                        $this->getDatabaseConnection()->sql_free_result($res);
 
-                       $this->view->assign('table', '<table class="table table-striped table-hover">' . implode(LF, $table) . '</table>');
+                       $this->view->assign('table', '<div class="table-fit"><table class="table table-striped table-hover">' . implode(LF, $table) . '</table></div>');
 
                        // Server date time
                        $dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'] . ' T (e';
index 4a5744b..c6be71b 100644 (file)
@@ -3,35 +3,36 @@
 <p class="lead">
        <f:translate key="msg.infoScreenIntro" />
 </p>
-
-<table class="table table-striped table-hover">
-       <thead>
-               <tr>
-                       <th>
-                               <f:translate key="label.name" />
-                       </th>
-                       <th>
-                               <f:translate key="label.extension" />
-                       </th>
-                       <th colspan="2">
-                               <f:translate key="label.description" />
-                       </th>
-               </tr>
-       </thead>
-       <tbody>
-               <f:for each="{registeredClasses}" key="class" as="classInfo">
+<div class="table-responsive">
+       <table class="table table-striped table-hover">
+               <thead>
                        <tr>
-                               <td>{classInfo.title}</td>
-                               <td>{classInfo.extension}</td>
-                               <td>{classInfo.description}</td>
-                               <td>
-                                       <div class="btn-group" role="group">
-                                               <span class="btn btn-default">
-                                                       <f:be.buttons.icon uri="{s:moduleLink(controller:'scheduler', action: 'add', arguments: '{class: class}')}" icon="actions-document-new" title="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:new')}"/>
-                                               </span>
-                                       </div>
-                               </td>
+                               <th>
+                                       <f:translate key="label.name" />
+                               </th>
+                               <th>
+                                       <f:translate key="label.extension" />
+                               </th>
+                               <th colspan="2">
+                                       <f:translate key="label.description" />
+                               </th>
                        </tr>
-               </f:for>
-       </tbody>
-</table>
+               </thead>
+               <tbody>
+                       <f:for each="{registeredClasses}" key="class" as="classInfo">
+                               <tr>
+                                       <td>{classInfo.title}</td>
+                                       <td>{classInfo.extension}</td>
+                                       <td>{classInfo.description}</td>
+                                       <td>
+                                               <div class="btn-group" role="group">
+                                                       <span class="btn btn-default">
+                                                               <f:be.buttons.icon uri="{s:moduleLink(controller:'scheduler', action: 'add', arguments: '{class: class}')}" icon="actions-document-new" title="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:new')}"/>
+                                                       </span>
+                                               </div>
+                                       </td>
+                               </tr>
+                       </f:for>
+               </tbody>
+       </table>
+</div>
\ No newline at end of file