[TASK] Wrap new_language menu in Bootstrap styles 47/38047/3
authorJan Helke <typo3@helke.de>
Mon, 23 Mar 2015 16:48:19 +0000 (17:48 +0100)
committerBenjamin Mack <benni@typo3.org>
Tue, 24 Mar 2015 15:34:16 +0000 (16:34 +0100)
This patch wraps the new_language menu in the PageLayoutView to
Bootstrap styles

Resolves: #65945
Releases: master
Change-Id: Iff219a0245455c3320ece5b19fbd915bdddc1aa4
Reviewed-on: http://review.typo3.org/38047
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index a33cf16..ab2c088 100644 (file)
@@ -1843,10 +1843,14 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                        . $id . ']=new&overrideVals[pages_language_overlay][doktype]=' . (int)$this->pageRecord['doktype']
                                        . '&overrideVals[pages_language_overlay][sys_language_uid]=\'+this.options[this.selectedIndex].value+\'&returnUrl='
                                        . rawurlencode(GeneralUtility::getIndpEnv('REQUEST_URI')) . '\'';
-                               return $this->getLanguageService()->getLL('new_language', TRUE)
-                                       . ': <select name="createNewLanguage" onchange="' . htmlspecialchars($onChangeContent) . '">
-                                               ' . implode('', $langSelItems) . '
-                                       </select><br /><br />';
+                               return '<div class="form-inline form-inline-spaced">'
+                                       . '<div class="form-group">'
+                                       . '<label for="createNewLanguage">'
+                                       . $this->getLanguageService()->getLL('new_language', TRUE)
+                                       . '</label>'
+                                       . '<select class="form-control input-sm" name="createNewLanguage" onchange="' . htmlspecialchars($onChangeContent) . '">'
+                                       . implode('', $langSelItems)
+                                       . '</select></div></div>';
                        }
                }
                return '';