[TASK] Change checkboxes in fe_users and fe_groups 62/56762/6
authorIngo Nolden <dev@nolden.org>
Fri, 20 Apr 2018 16:24:57 +0000 (18:24 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 26 Apr 2018 12:44:36 +0000 (14:44 +0200)
Some checkboxes are changed to new rendertype checkboxToggle.

Resolves: #84820
Related: #84793
Releases: master
Change-Id: I5a9cbcf674dd8641d275eb8c520a846b0716d15c
Reviewed-on: https://review.typo3.org/56762
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/frontend/Configuration/TCA/fe_groups.php
typo3/sysext/frontend/Configuration/TCA/fe_users.php

index 604d6cb..fecfbf6 100644 (file)
@@ -23,12 +23,20 @@ return [
     ],
     'columns' => [
         'hidden' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.disable',
+            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
             'exclude' => true,
             'config' => [
                 'type' => 'check',
-                'default' => 0
-            ]
+                'renderType' => 'checkboxToggle',
+                'default' => 0,
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true,
+                    ],
+                ],
+            ],
         ],
         'title' => [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_groups.title',
index 689d1aa..178bd04 100644 (file)
@@ -221,10 +221,18 @@ return [
         ],
         'disable' => [
             'exclude' => true,
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.disable',
+            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
             'config' => [
-                'type' => 'check'
-            ]
+                'type' => 'check',
+                'renderType' => 'checkboxToggle',
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true,
+                    ],
+                ],
+            ],
         ],
         'starttime' => [
             'exclude' => true,