[TASK] Change checkboxes in sys_action and sys_note 63/56763/4
authorIngo Nolden <dev@nolden.org>
Fri, 20 Apr 2018 18:52:32 +0000 (20:52 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 26 Apr 2018 15:09:12 +0000 (17:09 +0200)
Checkboxes are changed to new rendertype checkboxToggle in the following files:
sys_note
sys_action

This patch requires patch https://review.typo3.org/c/56736

Resolves: #84824
Related: #84793
Release: master
Change-Id: I9985f78774574017ec1af616d8cd682875b8d875
Reviewed-on: https://review.typo3.org/56763
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Dirk Jüttner <dirk.juettner@gmail.com>
Tested-by: Dirk Jüttner <dirk.juettner@gmail.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/sys_action/Configuration/TCA/sys_action.php
typo3/sysext/sys_note/Configuration/TCA/sys_note.php

index 16a286d..658c443 100644 (file)
@@ -42,9 +42,17 @@ return [
             ]
         ],
         'hidden' => [
-            'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.hidden',
+            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
             'config' => [
-                'type' => 'check'
+                'type' => 'check',
+                'renderType' => 'checkboxToggle',
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true
+                    ]
+                ],
             ]
         ],
         'type' => [
@@ -98,9 +106,17 @@ return [
             ]
         ],
         't1_create_user_dir' => [
+            'exclude' => 1,
             'label' => 'LLL:EXT:sys_action/Resources/Private/Language/locallang_tca.xlf:sys_action.t1_create_user_dir',
             'config' => [
-                'type' => 'check'
+                'type' => 'check',
+                'renderType' => 'checkboxToggle',
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                    ]
+                ],
             ]
         ],
         't1_copy_of_user' => [
index 620bc00..4eeb9a5 100644 (file)
@@ -56,7 +56,14 @@ return [
         'personal' => [
             'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.personal',
             'config' => [
-                'type' => 'check'
+                'type' => 'check',
+                'renderType' => 'checkboxToggle',
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                    ]
+                ],
             ]
         ],
         'position' => [