[TASK] Change checkboxes in sys_file_storage
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Service / UserStorageCapabilityService.php
index 48e0d4a..db2fb58 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Resource\Service;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Imaging\Icon;
-use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Localization\LanguageService;
 use TYPO3\CMS\Core\Messaging\FlashMessage;
 use TYPO3\CMS\Core\Messaging\FlashMessageQueue;
@@ -89,18 +87,10 @@ class UserStorageCapabilityService
      */
     protected function renderFileInformationContent(array $fileRecord, $isPublic)
     {
-        $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
-        $iconChecked = $iconFactory->getIcon('actions-check', Icon::SIZE_SMALL)->render('inline');
-        $iconUnchecked = $iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render('inline');
-
         $template = '
-        <div class="checkbox checkbox-type-icon-toggle">
+        <div class="checkbox checkbox-type-toggle">
                 <input type="checkbox" id="filestorage-ispublic" onclick="document.editform[\'data[sys_file_storage][{uid}][is_public]\'].value=this.checked?(document.editform[\'data[sys_file_storage][{uid}][is_public]\'].value|1):(document.editform[\'data[sys_file_storage][{uid}][is_public]\'].value&0);TBE_EDITOR.fieldChanged(\'sys_file_storage\',\'{uid}\',\'is_public\',\'data[sys_file_storage][{uid}][is_public]\');" class="checkbox-input" value="1" name="data[sys_file_storage][{uid}][is_public]_0" %s />
                 <label class="checkbox-label" for="filestorage-ispublic">
-                    <span class="checkbox-label-icon">
-                        <span class="checkbox-label-icon-checked">' . $iconChecked . '</span>
-                        <span class="checkbox-label-icon-unchecked">' . $iconUnchecked . '</span>
-                    </span>
                     <span class="checkbox-label-text">&nbsp;</span>
                 </label>
                 <input type="hidden" name="data[sys_file_storage][{uid}][is_public]" value="1">