[FEATURE] Add toggle switches to FormEngine 51/55351/29
authorMathias Schreiber <mathias.schreiber@typo3.org>
Sat, 13 Jan 2018 17:26:01 +0000 (18:26 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 4 Feb 2018 18:28:15 +0000 (19:28 +0100)
commitcecacc9a6e61e25731f2a0d42532200284ccd4b6
treeccf65a6791c025111ce422c74f61401f4daa066d
parent76aa66dd73c0772ac0c4710b4b0820121fe9b1dc
[FEATURE] Add toggle switches to FormEngine

In order to give FormEngine a fresher look we add the following
renderTypes to type=checkbox

* checkboxToggle
* checkboxLabeledToggle

Furthermore, checkboxes are now displayed with icons
provided via the IconFactory and can be changed.

Resolves: #83556
Release: master
Change-Id: I24570dc4ee8cb672a5f961399b709fe7da05e2f0
Reviewed-on: https://review.typo3.org/55351
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
12 files changed:
Build/Resources/Public/Sass/_minimal.scss
Build/Resources/Public/Sass/component/_checkbox.scss [new file with mode: 0644]
typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php
typo3/sysext/backend/Classes/Form/Element/CheckboxElement.php
typo3/sysext/backend/Classes/Form/Element/CheckboxLabeledToggleElement.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Form/Element/CheckboxToggleElement.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCheckboxItems.php
typo3/sysext/backend/Classes/Form/NodeFactory.php
typo3/sysext/backend/Resources/Public/Css/backend.css
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php
typo3/sysext/core/Documentation/Changelog/master/Feature-83556-AddToggleSwitchesToFormEngine.rst [new file with mode: 0644]
typo3/sysext/install/Resources/Public/Css/install.css