[TASK] Use buttons instead of question marks for CSH 09/45809/2
authorDaniel Goerz <ervaude@gmail.com>
Sun, 3 Jan 2016 16:25:30 +0000 (17:25 +0100)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 11 Jan 2016 10:40:37 +0000 (11:40 +0100)
Change-Id: I8533ad590ae30a37346f41a33fa25a7e8e15b58c
Resolves: #72511
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/45809
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/beuser/Classes/Controller/PermissionController.php
typo3/sysext/filelist/Resources/Private/Templates/FileList/Index.html
typo3/sysext/frontend/Classes/Controller/PageInformationController.php
typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php
typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php
typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php
typo3/sysext/wizard_sortpages/Classes/View/SortPagesWizardModuleFunction.php

index e37fde2..90bd119 100644 (file)
@@ -412,7 +412,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                 }
             }
             // CSH:
-            $out = BackendUtility::cshItem($this->descrTable, ('func_' . $pKey)) . '
+            $out = BackendUtility::cshItem($this->descrTable, ('func_' . $pKey), null, '<span class="btn btn-default btn-sm">|</span>') . '
                 <div class="table-fit">
                                        <table class="table table-striped table-hover typo3-page-pages">' .
                         '<thead>' .
@@ -771,7 +771,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                 $out .= $grid . '</table></div>';
             }
             // CSH:
-            $out .= BackendUtility::cshItem($this->descrTable, 'columns_multi');
+            $out .= BackendUtility::cshItem($this->descrTable, 'columns_multi', null, '<span class="btn btn-default btn-sm">|</span>');
         }
         // If language mode, then make another presentation:
         // Notice that THIS presentation will override the value of $out!
@@ -911,7 +911,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                     </table>
                                </div>';
             // CSH:
-            $out .= BackendUtility::cshItem($this->descrTable, 'language_list');
+            $out .= BackendUtility::cshItem($this->descrTable, 'language_list', null, '<span class="btn btn-default btn-sm">|</span>');
         }
 
         return $out;
index 92201af..089be95 100644 (file)
@@ -242,7 +242,7 @@ class PermissionController extends ActionController
         $this->view->assign('viewTree', $tree->tree);
 
         // CSH for permissions setting
-        $this->view->assign('cshItem', BackendUtility::cshItem('xMOD_csh_corebe', 'perm_module'));
+        $this->view->assign('cshItem', BackendUtility::cshItem('xMOD_csh_corebe', 'perm_module', null, '<span class="btn btn-default btn-sm">|</span>'));
     }
 
     /**
index d9749e9..6810eba 100644 (file)
@@ -47,7 +47,7 @@
                <f:if condition="{showClipBoard}">
                        {clipBoardHtml -> f:format.raw()}
 
-                       <f:be.buttons.csh table="xMOD_csh_corebe" field="filelist_clipboard" />
+                       <span class="btn btn-sm btn-default"><f:be.buttons.csh table="xMOD_csh_corebe" field="filelist_clipboard" /></span>
                </f:if>
        </f:if>
 </f:section>
index d2f13b7..5809761 100644 (file)
@@ -72,7 +72,7 @@ class PageInformationController extends \TYPO3\CMS\Backend\Module\AbstractFuncti
         $dblist->generateList();
         // CSH
         $theOutput .= '<div>';
-        $theOutput .= BackendUtility::cshItem($dblist->descrTable, 'pagetree_overview', null, '|<br />')
+        $theOutput .= BackendUtility::cshItem($dblist->descrTable, 'pagetree_overview', null, '<span class="btn btn-default btn-sm">|</span><br />')
             . '<div class="form-inline form-inline-spaced">'
             . $h_func
             . '</div>'
index 9edd8e4..3d95be1 100644 (file)
@@ -83,7 +83,7 @@ class TranslationStatusController extends \TYPO3\CMS\Backend\Module\AbstractFunc
             $h_func .= BackendUtility::getDropdownMenu($this->pObj->id, 'SET[lang]', $this->pObj->MOD_SETTINGS['lang'], $this->pObj->MOD_MENU['lang']);
             $theOutput .= $h_func;
             // Add CSH:
-            $theOutput .= BackendUtility::cshItem('_MOD_web_info', 'lang', null, '|<br />');
+            $theOutput .= BackendUtility::cshItem('_MOD_web_info', 'lang', null, '<div class="form-group"><span class="btn btn-default btn-sm">|</span></div><br />');
             $theOutput .= '</div>';
             // Showing the tree:
             // Initialize starting point of page tree:
index 0cdc2d0..058b8a8 100644 (file)
@@ -152,7 +152,7 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
                     $editIcon = '';
                 }
                 $theOutput .= '<div>';
-                $theOutput .= BackendUtility::cshItem('_MOD_web_info', 'tsconfig_edit', null) . $menu . '
+                $theOutput .= BackendUtility::cshItem('_MOD_web_info', 'tsconfig_edit', null, '<span class="btn btn-default btn-sm">|</span>') . $menu . '
                                                <!-- Edit fields: -->
                                                <table border="0" cellpadding="0" cellspacing="1">' . implode('', $lines) . '</table><br />' . $editIcon;
                 $theOutput .= '</div>';
@@ -218,7 +218,7 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
                     $modTSconfig = array();
                 }
 
-                $csh = BackendUtility::cshItem('_MOD_web_info', 'tsconfig_hierarchy', null);
+                $csh = BackendUtility::cshItem('_MOD_web_info', 'tsconfig_hierarchy', null, '<span class="btn btn-default btn-sm">|</span>');
                 $tree = $tmpl->ext_getObjTree($modTSconfig, '', '', '', '', $this->pObj->MOD_SETTINGS['tsconf_alphaSort']);
 
                 $theOutput .= '<div>';
index 2b9d343..0119ffd 100644 (file)
@@ -184,7 +184,7 @@ class CreatePagesWizardModuleFunctionController extends \TYPO3\CMS\Backend\Modul
             $defaultFlashMessageQueue->enqueue($flashMessage);
         }
         // CSH
-        $theCode .= BackendUtility::cshItem('_MOD_web_func', 'tx_wizardcrpages', null, '<div class="t3-help">|</div>');
+        $theCode .= BackendUtility::cshItem('_MOD_web_func', 'tx_wizardcrpages', null, '<span class="btn btn-default btn-sm">|</span>');
         $out = $this->pObj->doc->header($this->getLanguageService()->getLL('wiz_crMany'));
         $out .= '<div>' . $theCode . '</div>';
         return $out;
index 92812e3..ea95ca3 100644 (file)
@@ -108,7 +108,7 @@ class SortPagesWizardModuleFunction extends \TYPO3\CMS\Backend\Module\AbstractFu
                 $defaultFlashMessageQueue->enqueue($flashMessage);
             }
             // CSH:
-            $theCode .= BackendUtility::cshItem('_MOD_web_func', 'tx_wizardsortpages', null, '<br />|');
+            $theCode .= BackendUtility::cshItem('_MOD_web_func', 'tx_wizardsortpages', null, '<span class="btn btn-default btn-sm">|</span>');
             $out .= '<div>' . $theCode . '</div>';
         } else {
             $out .= '<div>Sorry, this function is not available in the current draft workspace!</div>';