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