[TASK] EXT:form - Add HTML4 / HTML5 attributes for CHECKBOX to wizard 87/43787/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 15:13:56 +0000 (17:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 6 Oct 2015 22:22:41 +0000 (00:22 +0200)
Add new attributes to the wizard element CHECKBOX.

Resolves: #70348
Releases: master
Change-Id: I5346e2b4a9a29084a7b222b7bfa4b2fad4761026
Reviewed-on: http://review.typo3.org/43787
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/form/Classes/Domain/Model/Json/CheckboxJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Checkbox.js

index c5299cc..8aae76e 100644 (file)
@@ -50,16 +50,27 @@ class CheckboxJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJson
         */
        protected $allowedAttributes = array(
                'accesskey',
-               'alt',
                'class',
+               'contenteditable',
+               'contextmenu',
                'dir',
-               'disabled',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
-               'name',
-               'style',
+               'spellcheck',
+               'style',
                'tabindex',
                'title',
+               'translate',
+               /* element specific attributes */
+               'autofocus',
+               'checked',
+               'disabled',
+               'name',
+               'readonly',
+               'required',
                'type',
                'value'
        );
index fe8283d..5091d74 100644 (file)
@@ -70,19 +70,30 @@ TYPO3.Form.Wizard.Elements.Basic.Checkbox = Ext.extend(TYPO3.Form.Wizard.Element
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       accesskey: '',
-                                       alt: '',
-                                       "class": '',
-                                       dir: '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       name: '',
-                                       style: '',
-                                       tabindex: '',
-                                       title: '',
-                                       type: 'checkbox',
-                                       value: ''
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'autofocus': '',
+                                       'checked': '',
+                                       'disabled': '',
+                                       'name': '',
+                                       'readonly': '',
+                                       'required': '',
+                                       'type': 'checkbox',
+                                       'value': ''
                                },
                                filters: {},
                                label: {