[TASK] Remove not needed table in permission legend 07/21807/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 2 Jul 2013 15:03:57 +0000 (17:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 2 Jul 2013 15:30:29 +0000 (17:30 +0200)
Resolves: #49599
Releases: 6.2
Change-Id: Ied101a590c9fa99c7f2ec1c75a9a646e0f4cfc81
Reviewed-on: https://review.typo3.org/21807
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/perm/Classes/Controller/PermissionModuleController.php
typo3/sysext/t3skin/stylesheets/structure/module_web_permissions.css

index 83976ad..cfca394 100644 (file)
@@ -556,14 +556,11 @@ class PermissionModuleController {
                $legendText .= '<br /><strong>' . $GLOBALS['LANG']->getLL('2', 1) . '</strong>: ' . $GLOBALS['LANG']->getLL('2_t', 1);
                $legendText .= '<br /><strong>' . $GLOBALS['LANG']->getLL('4', 1) . '</strong>: ' . $GLOBALS['LANG']->getLL('4_t', 1);
                $legendText .= '<br /><strong>' . $GLOBALS['LANG']->getLL('8', 1) . '</strong>: ' . $GLOBALS['LANG']->getLL('8_t', 1);
-               $code = '<table border="0" id="typo3-legendTable">
-                       <tr>
-                               <td valign="top">
+
+               $code = '<div id="permission-information">
                                        <img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/legend.gif', 'width="86" height="75"') . ' alt="" />
-                               </td>
-                               <td valign="top" nowrap="nowrap">' . $legendText . '</td>
-                       </tr>
-               </table>';
+                               <div class="text">' . $legendText . '</div></div>';
+
                $code .= '<div id="perm-legend">' . $GLOBALS['LANG']->getLL('def', 1);
                $code .= '<br /><br />' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('status-status-permission-granted') . ': ' . $GLOBALS['LANG']->getLL('A_Granted', 1);
                $code .= '<br />' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('status-status-permission-denied') . ': ' . $GLOBALS['LANG']->getLL('A_Denied', 1);
index 64cffa2..e46a537 100644 (file)
@@ -20,4 +20,13 @@ a.perm-denied,
 
 #perm-legend {
        margin-top: 10px;
+}
+
+#permission-information img {
+       float: left;
+       padding-right: 10px; ;
+}
+
+#permission-information .text {
+       line-height: 12px;
 }
\ No newline at end of file