[TASK] Use new way to register list wizard
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_users.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'username',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'delete' => 'deleted',
10 'adminOnly' => 1, // Only admin users can edit
11 'rootLevel' => 1,
12 'default_sortby' => 'ORDER BY admin, username',
13 'enablecolumns' => array(
14 'disabled' => 'disable',
15 'starttime' => 'starttime',
16 'endtime' => 'endtime'
17 ),
18 'type' => 'admin',
19 'typeicon_column' => 'admin',
20 'typeicons' => array(
21 '0' => 'be_users.gif',
22 '1' => 'be_users_admin.gif'
23 ),
24 'typeicon_classes' => array(
25 '0' => 'status-user-backend',
26 '1' => 'status-user-admin',
27 'default' => 'status-user-backend'
28 ),
29 'mainpalette' => '1',
30 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
31 'dividers2tabs' => TRUE,
32 'versioningWS_alwaysAllowLiveEdit' => TRUE,
33 'searchFields' => 'username,email,realName'
34 ),
35 'interface' => array(
36 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
37 ),
38 'columns' => array(
39 'username' => array(
40 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.username',
41 'config' => array(
42 'type' => 'input',
43 'size' => '20',
44 'max' => '50',
45 'eval' => 'nospace,lower,unique,required'
46 )
47 ),
48 'password' => array(
49 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.password',
50 'config' => array(
51 'type' => 'input',
52 'size' => '20',
53 'max' => '40',
54 'eval' => 'required,md5,password'
55 )
56 ),
57 'usergroup' => array(
58 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup',
59 'config' => array(
60 'type' => 'select',
61 'foreign_table' => 'be_groups',
62 'foreign_table_where' => 'ORDER BY be_groups.title',
63 'size' => '5',
64 'maxitems' => '20',
65 'iconsInOptionTags' => 1,
66 'wizards' => array(
67 '_PADDING' => 1,
68 '_VERTICAL' => 1,
69 'edit' => array(
70 'type' => 'popup',
71 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_edit_title',
72 'module' => array(
73 'name' => 'wizard_edit',
74 ),
75 'popup_onlyOpenIfSelected' => 1,
76 'icon' => 'edit2.gif',
77 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
78 ),
79 'add' => array(
80 'type' => 'script',
81 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_add_title',
82 'icon' => 'add.gif',
83 'params' => array(
84 'table' => 'be_groups',
85 'pid' => '0',
86 'setValue' => 'prepend'
87 ),
88 'module' => array(
89 'name' => 'wizard_add'
90 )
91 ),
92 'list' => array(
93 'type' => 'script',
94 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_list_title',
95 'icon' => 'list.gif',
96 'params' => array(
97 'table' => 'be_groups',
98 'pid' => '0'
99 ),
100 'module' => array(
101 'name' => 'wizard_list'
102 )
103 )
104 )
105 )
106 ),
107 'lockToDomain' => array(
108 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
109 'config' => array(
110 'type' => 'input',
111 'size' => '20',
112 'eval' => 'trim',
113 'max' => '50',
114 'softref' => 'substitute'
115 )
116 ),
117 'db_mountpoints' => array(
118 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts',
119 'config' => array(
120 'type' => 'group',
121 'internal_type' => 'db',
122 'allowed' => 'pages',
123 'size' => '3',
124 'maxitems' => 100,
125 'autoSizeMax' => 10,
126 'show_thumbs' => '1',
127 'wizards' => array(
128 'suggest' => array(
129 'type' => 'suggest'
130 )
131 )
132 )
133 ),
134 'file_mountpoints' => array(
135 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts',
136 'config' => array(
137 'type' => 'select',
138 'foreign_table' => 'sys_filemounts',
139 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
140 'size' => '3',
141 'maxitems' => 100,
142 'autoSizeMax' => 10,
143 'iconsInOptionTags' => 1,
144 'wizards' => array(
145 '_PADDING' => 1,
146 '_VERTICAL' => 1,
147 'edit' => array(
148 'type' => 'popup',
149 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
150 'module' => array(
151 'name' => 'wizard_edit',
152 ),
153 'icon' => 'edit2.gif',
154 'popup_onlyOpenIfSelected' => 1,
155 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
156 ),
157 'add' => array(
158 'type' => 'script',
159 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
160 'icon' => 'add.gif',
161 'params' => array(
162 'table' => 'sys_filemounts',
163 'pid' => '0',
164 'setValue' => 'prepend'
165 ),
166 'module' => array(
167 'name' => 'wizard_add'
168 )
169 ),
170 'list' => array(
171 'type' => 'script',
172 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
173 'icon' => 'list.gif',
174 'params' => array(
175 'table' => 'sys_filemounts',
176 'pid' => '0'
177 ),
178 'module' => array(
179 'name' => 'wizard_list'
180 )
181 )
182 )
183 )
184 ),
185 'email' => array(
186 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
187 'config' => array(
188 'type' => 'input',
189 'size' => '20',
190 'eval' => 'trim',
191 'max' => '80',
192 'softref' => 'email[subst]'
193 )
194 ),
195 'realName' => array(
196 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
197 'config' => array(
198 'type' => 'input',
199 'size' => '20',
200 'eval' => 'trim',
201 'max' => '80'
202 )
203 ),
204 'disable' => array(
205 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
206 'config' => array(
207 'type' => 'check'
208 )
209 ),
210 'disableIPlock' => array(
211 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.disableIPlock',
212 'config' => array(
213 'type' => 'check'
214 )
215 ),
216 'admin' => array(
217 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.admin',
218 'config' => array(
219 'type' => 'check',
220 'default' => '0'
221 )
222 ),
223 'options' => array(
224 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options',
225 'config' => array(
226 'type' => 'check',
227 'items' => array(
228 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts', 0),
229 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts', 0)
230 ),
231 'default' => '3'
232 )
233 ),
234 'file_permissions' => array(
235 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
236 'config' => array(
237 'type' => 'select',
238 'items' => array(
239 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
240 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
241 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
242 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
243 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
244 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
245 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
246 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
247 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'folder_recursivedelete', 'apps-filetree-folder-default'),
248 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
249 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
250 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
251 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
252 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_upload', 'files_upload', 'mimetypes-other-other'),
253 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
254 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
255 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
256 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
257 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
258 ),
259 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
260 'size' => 16,
261 'maxitems' => 16,
262 'itemListStyle' => 'width:500px',
263 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
264 )
265 ),
266 'workspace_perms' => array(
267 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
268 'config' => array(
269 'type' => 'check',
270 'items' => array(
271 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
272 ),
273 'default' => 1
274 )
275 ),
276 'starttime' => array(
277 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
278 'config' => array(
279 'type' => 'input',
280 'size' => '13',
281 'max' => '20',
282 'eval' => 'datetime',
283 'default' => '0'
284 )
285 ),
286 'endtime' => array(
287 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
288 'config' => array(
289 'type' => 'input',
290 'size' => '13',
291 'max' => '20',
292 'eval' => 'datetime',
293 'default' => '0',
294 'range' => array(
295 'upper' => mktime(0, 0, 0, 1, 1, 2038)
296 )
297 )
298 ),
299 'lang' => array(
300 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.lang',
301 'config' => array(
302 'type' => 'select',
303 'items' => array(
304 array('English', '')
305 )
306 )
307 ),
308 'userMods' => array(
309 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
310 'config' => array(
311 'type' => 'select',
312 'special' => 'modListUser',
313 'size' => '5',
314 'autoSizeMax' => 50,
315 'maxitems' => '100',
316 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
317 'iconsInOptionTags' => 1
318 )
319 ),
320 'allowed_languages' => array(
321 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
322 'config' => array(
323 'type' => 'select',
324 'special' => 'languages',
325 'maxitems' => '1000',
326 'renderMode' => 'checkbox'
327 )
328 ),
329 'TSconfig' => array(
330 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
331 'config' => array(
332 'type' => 'text',
333 'cols' => '40',
334 'rows' => '5',
335 'softref' => 'TSconfig'
336 ),
337 'defaultExtras' => 'fixed-font : enable-tab'
338 ),
339 'createdByAction' => array(
340 'config' => array(
341 'type' => 'passthrough'
342 )
343 ),
344 'lastlogin' => array(
345 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
346 'config' => array(
347 'type' => 'input',
348 'readOnly' => '1',
349 'size' => '12',
350 'eval' => 'datetime',
351 'default' => 0
352 )
353 ),
354 'category_perms' => array(
355 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
356 'config' => array(
357 'type' => 'select',
358 'foreign_table' => 'sys_category',
359 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
360 'renderMode' => 'tree',
361 'treeConfig' => array(
362 'parentField' => 'parent',
363 'appearance' => array(
364 'expandAll' => FALSE,
365 'showHeader' => FALSE,
366 'maxLevels' => 99,
367 ),
368 ),
369 'size' => 10,
370 'autoSizeMax' => 20,
371 'minitems' => 0,
372 'maxitems' => 9999
373 )
374 )
375 ),
376 'types' => array(
377 '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
378 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.rights, userMods;;;;2-2-2, allowed_languages,
379 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, file_permissions, category_perms,
380 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
381 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime;;;;1-1-1,endtime,
382 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended'),
383 '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1,
384 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2, db_mountpoints;;;;3-3-3, options, file_mountpoints;;;;4-4-4,
385 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime;;;;1-1-1,endtime,
386 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended')
387 )
388 );