[BUGFIX] TS Object Browser: Fix edit value form 48/42148/2
authorJosef Glatz <jousch@gmail.com>
Thu, 30 Jul 2015 20:22:56 +0000 (22:22 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 30 Jul 2015 21:06:41 +0000 (23:06 +0200)
Fix inline form elements in edit-value-form.
Add missing space in clear-object form-group.

Releases: master
Resolves: #68653
Change-Id: I869c25febb4f3c1c403906f9767deea5e29e17ef
Reviewed-on: http://review.typo3.org/42148
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php

index 52ab411..69cb63a 100644 (file)
@@ -328,6 +328,8 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends AbstractFu
                if ($this->pObj->sObj) {
                        list($theSetup, $theSetupValue) = $templateService->ext_getSetup($theSetup, $this->pObj->sObj ? $this->pObj->sObj : '');
                        if ($existTemplate) {
+                               // Inline Form Area Begin
+                               $theOutput .= '<div class="form-inline form-inline-spaced">';
                                // Value
                                $out = '';
                                $out .= '<div class="form-group">';
@@ -350,7 +352,7 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends AbstractFu
                                $out = '<div class="form-group">';
                                $out .= '       <div class="checkbox">';
                                $out .= '               <label>';
-                               $out .= '                       ' . htmlspecialchars($this->pObj->sObj) . $lang->csConvObj->conv_case($lang->charSet, $lang->getLL('clear'), 'toUpper');
+                               $out .= '                       ' . htmlspecialchars($this->pObj->sObj) . ' ' . $lang->csConvObj->conv_case($lang->charSet, $lang->getLL('clear'), 'toUpper');
                                $out .= '                       <input type="checkbox" name="data[' . htmlspecialchars($this->pObj->sObj) . '][clearValue]" value="1" />';
                                $out .= '               </label>';
                                $out .= '               <input class="btn btn-default" type="submit" name="clear_object" value="' . $lang->getLL('clearButton') . '" />';
@@ -359,6 +361,8 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends AbstractFu
                                $theOutput .= $this->pObj->doc->spacer(20);
                                $theOutput .= $this->pObj->doc->section($lang->getLL('clearObject'), $out, 0, 0);
                                $theOutput .= $this->pObj->doc->spacer(10);
+                               // Inline Form Area End
+                               $theOutput .= '</div>';
                        } else {
                                $noTemplateMessage = GeneralUtility::makeInstance(FlashMessage::class, $lang->getLL('noCurrentTemplate'), $lang->getLL('edit'), FlashMessage::ERROR);
                                $this->addFlashMessage($noTemplateMessage);