[TASK] Remove <table> in lowlevel configuration 42/22042/2
authorFelix Kopp <felix-source@phorax.com>
Sat, 6 Jul 2013 16:27:39 +0000 (18:27 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sat, 6 Jul 2013 17:10:47 +0000 (19:10 +0200)
EXT: lowlevel brings a tree view to display configurations.
This configuration has been wrapped into a <table> tag in
order to prohibit wrapping of long lines.

Removes <table> tag and brings nowrap replacement.
Also moves headline to pole position.

Change-Id: I0358c90cd890101e5e8f7b8d4056d4e8a571d8ee
Resolves: #49743
Releases: 6.2
Reviewed-on: https://review.typo3.org/22042
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Max Roesch
Tested-by: Max Roesch
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/lowlevel/Classes/View/ConfigurationView.php

index a673562..cef3beb 100644 (file)
@@ -140,7 +140,11 @@ class ConfigurationView {
         */
        public function main() {
                $arrayBrowser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Lowlevel\\Utility\\ArrayBrowser');
+               $label = $this->MOD_MENU['function'][$this->MOD_SETTINGS['function']];
+
                $this->content = $this->doc->header($GLOBALS['LANG']->getLL('configuration', TRUE));
+               $this->content .= '<h2>' . $label . '</h2>';
+
                $this->content .= '<div id="lowlevel-config">
                                                <label for="search_field">' . $GLOBALS['LANG']->getLL('enterSearchPhrase', TRUE) . '</label>
                                                <input type="text" id="search_field" name="search_field" value="' . htmlspecialchars($search_field) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . ' />
@@ -228,7 +232,6 @@ class ConfigurationView {
                        $theVar['SYS']['encryptionKey'] = '***** (length: ' . strlen($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']) . ' characters)';
                }
                $tree = $arrayBrowser->tree($theVar, '', '');
-               $label = $this->MOD_MENU['function'][$this->MOD_SETTINGS['function']];
                $this->content .= $this->doc->sectionEnd();
                // Variable name:
                if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('varname')) {
@@ -283,15 +286,8 @@ class ConfigurationView {
                                $this->content .= $GLOBALS['LANG']->getLL('copyPaste', TRUE) . LF . '</div>';
                        }
                }
-               $this->content .= '<br /><table border="0" cellpadding="0" cellspacing="0" class="t3-tree t3-tree-config">';
-               $this->content .= '<tr>
-                                       <th class="t3-row-header t3-tree-config-header">' . $label . '</th>
-                               </tr>
-                               <tr>
-                                       <td>' . $tree . '</td>
-                               </tr>
-                       </table>
-               ';
+               $this->content .= '<div class="nowrap">' . $tree . '</div>';
+
                // Setting up the buttons and markers for docheader
                $docHeaderButtons = $this->getButtons();
                $markers = array(