|
20 | 20 | * @author Sven Baumann <baumann.sv@gmail.com> |
21 | 21 | * @author Ingolf Steinhardt <info@e-spin.de> |
22 | 22 | * @copyright 2012-2018 The MetaModels team. |
23 | | - * @license https://github.com/MetaModels/attribute_checkbox/blob/master/LICENSE LGPL-3.0 |
| 23 | + * @license https://github.com/MetaModels/attribute_checkbox/blob/master/LICENSE LGPL-3.0-or-later |
24 | 24 | * @filesource |
25 | 25 | */ |
26 | 26 |
|
27 | 27 | $GLOBALS['TL_DCA']['tl_metamodel_attribute']['metapalettes']['checkbox extends _simpleattribute_'] = [ |
28 | | - '+advanced' => ['check_publish', 'check_listview'] |
| 28 | + '+advanced' => ['check_publish', 'check_inverse', 'check_listview'] |
29 | 29 | ]; |
30 | 30 |
|
31 | 31 | $GLOBALS['TL_DCA']['tl_metamodel_attribute']['metasubpalettes'] = [ |
32 | | - 'check_listview' => ['check_inverse', 'check_listviewicon', 'check_listviewicondisabled'] |
| 32 | + 'check_listview' => ['check_listviewicon', 'check_listviewicondisabled'] |
33 | 33 | ]; |
34 | 34 |
|
35 | 35 | $GLOBALS['TL_DCA']['tl_metamodel_attribute']['fields']['check_publish'] = [ |
|
38 | 38 | 'inputType' => 'checkbox', |
39 | 39 | 'sql' => 'char(1) NOT NULL default \'\'', |
40 | 40 | 'eval' => [ |
41 | | - 'tl_class' => 'w50' |
| 41 | + 'tl_class' => 'cbx w50' |
42 | 42 | ], |
43 | 43 | ]; |
44 | 44 |
|
45 | | -$GLOBALS['TL_DCA']['tl_metamodel_attribute']['fields']['check_listview'] = [ |
46 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_attribute']['check_listview'], |
| 45 | +$GLOBALS['TL_DCA']['tl_metamodel_attribute']['fields']['check_inverse'] = [ |
| 46 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_attribute']['check_inverse'], |
47 | 47 | 'exclude' => true, |
48 | 48 | 'inputType' => 'checkbox', |
49 | 49 | 'sql' => 'char(1) NOT NULL default \'\'', |
50 | 50 | 'eval' => [ |
51 | | - 'tl_class' => 'w50', |
52 | | - 'submitOnChange' => true |
| 51 | + 'tl_class' => 'cbx w50' |
53 | 52 | ], |
54 | 53 | ]; |
55 | 54 |
|
56 | | -$GLOBALS['TL_DCA']['tl_metamodel_attribute']['fields']['check_inverse'] = [ |
57 | | - 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_attribute']['check_inverse'], |
| 55 | +$GLOBALS['TL_DCA']['tl_metamodel_attribute']['fields']['check_listview'] = [ |
| 56 | + 'label' => &$GLOBALS['TL_LANG']['tl_metamodel_attribute']['check_listview'], |
58 | 57 | 'exclude' => true, |
59 | 58 | 'inputType' => 'checkbox', |
60 | 59 | 'sql' => 'char(1) NOT NULL default \'\'', |
61 | 60 | 'eval' => [ |
62 | | - 'tl_class' => 'w50 cbx' |
| 61 | + 'tl_class' => 'clr cbx w50', |
| 62 | + 'submitOnChange' => true |
63 | 63 | ], |
64 | 64 | ]; |
65 | 65 |
|
|
73 | 73 | 'files' => true, |
74 | 74 | 'filesOnly' => true, |
75 | 75 | 'extensions' => 'jpg,jpeg,gif,png,tif,tiff,svg', |
76 | | - 'tl_class' => 'clr' |
| 76 | + 'tl_class' => 'clr w50' |
77 | 77 | ] |
78 | 78 | ]; |
79 | 79 |
|
|
87 | 87 | 'files' => true, |
88 | 88 | 'filesOnly' => true, |
89 | 89 | 'extensions' => 'jpg,jpeg,gif,png,tif,tiff,svg', |
90 | | - 'tl_class' => 'clr' |
| 90 | + 'tl_class' => 'w50' |
91 | 91 | ] |
92 | 92 | ]; |
0 commit comments