[TASK] Use panels for "Template" configuration 45/34945/3
authorSoren Malling <soren.malling@gmail.com>
Tue, 2 Dec 2014 18:13:37 +0000 (19:13 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 2 Dec 2014 23:22:13 +0000 (00:22 +0100)
Use panel-* classes from Twitter Bootstrap
to give a better look and feel when browsing
the typoscript tree

Resolves: #63524
Releases: master
Change-Id: I999cd22a28836f2c1519c1a1d1bf66d18dda8e55
Reviewed-on: http://review.typo3.org/34945
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php

index 0bfce5c..8330e70 100644 (file)
@@ -406,8 +406,12 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS
                        $label = $theKey ? $theKey : ($bType == 'setup' ? $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('setupRoot'), 'toUpper') : $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('constantRoot'), 'toUpper'));
                        $theOutput .= $this->pObj->doc->sectionEnd();
 
-                       $theOutput .= '<h2>' . $label . ' ' . $remove . '</h2>';
-                       $theOutput .= '<div class="text-nowrap">' . $tree  .  '</div>';
+                       $theOutput .= '<div class="panel panel-default">';
+                       $theOutput .= '<div class="panel-heading">';
+                       $theOutput .= '<strong>' . $label . ' ' . $remove . '</strong>';
+                       $theOutput .= '</div>';
+                       $theOutput .= '<div class="panel-body">' . $tree  .  '</div>';
+                       $theOutput .= '</div>';
 
                        // second row options
                        $menu = '<div class="tsob-menu-row2">';