[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Configuration / TCA / sys_workspace_stage.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'sortby' => 'sorting',
7 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage',
8 'adminOnly' => 1,
9 'rootLevel' => 1,
10 'hideTable' => TRUE,
11 'delete' => 'deleted',
12 'iconfile' => 'mimetypes-x-sys_workspace',
13 'typeicon_classes' => array(
14 'default' => 'mimetypes-x-sys_workspace'
15 ),
16 'versioningWS_alwaysAllowLiveEdit' => TRUE
17 ),
18 'columns' => array(
19 'title' => array(
20 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title',
21 'config' => array(
22 'type' => 'input',
23 'size' => '20',
24 'max' => '30',
25 'eval' => 'required,trim'
26 )
27 ),
28 'responsible_persons' => array(
29 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.responsible_persons',
30 'config' => array(
31 'type' => 'group',
32 'internal_type' => 'db',
33 'allowed' => 'be_users,be_groups',
34 'prepend_tname' => 1,
35 'size' => '3',
36 'maxitems' => '100',
37 'autoSizeMax' => 20,
38 'show_thumbs' => '1',
39 'wizards' => array(
40 'suggest' => array(
41 'type' => 'suggest'
42 )
43 )
44 )
45 ),
46 'default_mailcomment' => array(
47 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.default_mailcomment',
48 'config' => array(
49 'type' => 'text',
50 'rows' => 5,
51 'cols' => 30
52 )
53 ),
54 'parentid' => array(
55 'exclude' => 0,
56 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.parentid',
57 'config' => array(
58 'type' => 'passthrough'
59 )
60 ),
61 'parenttable' => array(
62 'exclude' => 0,
63 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.parenttable',
64 'config' => array(
65 'type' => 'passthrough'
66 )
67 ),
68 'notification_mode' => array(
69 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_mode',
70 'config' => array(
71 'type' => 'select',
72 'renderType' => 'selectSingle',
73 'items' => array(
74 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
75 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
76 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
77 )
78 )
79 ),
80 'notification_defaults' => array(
81 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
82 'displayCond' => 'FIELD:allow_notificaton_settings:BIT:1',
83 'config' => array(
84 'type' => 'group',
85 'internal_type' => 'db',
86 'allowed' => 'be_users,be_groups',
87 'prepend_tname' => 1,
88 'size' => '3',
89 'maxitems' => '100',
90 'autoSizeMax' => 20,
91 'show_thumbs' => '1',
92 'wizards' => array(
93 'suggest' => array(
94 'type' => 'suggest'
95 )
96 )
97 )
98 ),
99 'allow_notificaton_settings' => array(
100 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
101 'config' => array(
102 'type' => 'check',
103 'items' => array(
104 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''),
105 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''),
106 ),
107 'default' => 3,
108 'cols' => 2,
109 )
110 ),
111 'notification_preselection' => array(
112 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
113 'config' => array(
114 'type' => 'check',
115 'items' => array(
116 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''),
117 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''),
118 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''),
119 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.responsiblePersons', ''),
120 ),
121 'default' => 8,
122 'cols' => 4,
123 )
124 )
125 ),
126 'palettes' => array(
127 'stage' => array(
128 'canNotCollapse' => TRUE,
129 'showitem' => 'allow_notificaton_settings, notification_preselection,',
130 )
131 ),
132 'types' => array(
133 '0' => array('showitem' => '
134 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.general,title,responsible_persons,
135 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,--palette--;;stage, notification_defaults, default_mailcomment')
136 )
137 );