[TASK] Change checkboxes in fe_users and fe_groups
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / fe_users.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'username',
5 'descriptionColumn' => 'description',
6 'default_sortby' => 'username',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users',
11 'delete' => 'deleted',
12 'enablecolumns' => [
13 'disabled' => 'disable',
14 'starttime' => 'starttime',
15 'endtime' => 'endtime'
16 ],
17 'typeicon_classes' => [
18 'default' => 'status-user-frontend'
19 ],
20 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
21 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company,description'
22 ],
23 'interface' => [
24 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin,description'
25 ],
26 'columns' => [
27 'username' => [
28 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.username',
29 'config' => [
30 'type' => 'input',
31 'size' => 20,
32 'max' => 255,
33 'eval' => 'nospace,trim,lower,uniqueInPid,required',
34 'autocomplete' => false,
35 ]
36 ],
37 'password' => [
38 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.password',
39 'config' => [
40 'type' => 'input',
41 'size' => 10,
42 'max' => 40,
43 'eval' => 'trim,required,password',
44 'autocomplete' => false,
45 ]
46 ],
47 'usergroup' => [
48 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.usergroup',
49 'config' => [
50 'type' => 'select',
51 'renderType' => 'selectMultipleSideBySide',
52 'foreign_table' => 'fe_groups',
53 'foreign_table_where' => 'ORDER BY fe_groups.title',
54 'enableMultiSelectFilterTextfield' => true,
55 'size' => 6,
56 'minitems' => 1,
57 'maxitems' => 50
58 ]
59 ],
60 'lockToDomain' => [
61 'exclude' => true,
62 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.lockToDomain',
63 'config' => [
64 'type' => 'input',
65 'size' => 20,
66 'eval' => 'trim',
67 'max' => 50,
68 'softref' => 'substitute'
69 ]
70 ],
71 'name' => [
72 'exclude' => true,
73 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.name',
74 'config' => [
75 'type' => 'input',
76 'size' => 40,
77 'eval' => 'trim',
78 'max' => 160
79 ]
80 ],
81 'first_name' => [
82 'exclude' => true,
83 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.first_name',
84 'config' => [
85 'type' => 'input',
86 'size' => 25,
87 'eval' => 'trim',
88 'max' => 50
89 ]
90 ],
91 'middle_name' => [
92 'exclude' => true,
93 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.middle_name',
94 'config' => [
95 'type' => 'input',
96 'size' => 25,
97 'eval' => 'trim',
98 'max' => 50
99 ]
100 ],
101 'last_name' => [
102 'exclude' => true,
103 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.last_name',
104 'config' => [
105 'type' => 'input',
106 'size' => 25,
107 'eval' => 'trim',
108 'max' => 50
109 ]
110 ],
111 'address' => [
112 'exclude' => true,
113 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.address',
114 'config' => [
115 'type' => 'text',
116 'cols' => 20,
117 'rows' => 3
118 ]
119 ],
120 'telephone' => [
121 'exclude' => true,
122 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.phone',
123 'config' => [
124 'type' => 'input',
125 'eval' => 'trim',
126 'size' => 20,
127 'max' => 30
128 ]
129 ],
130 'fax' => [
131 'exclude' => true,
132 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fax',
133 'config' => [
134 'type' => 'input',
135 'size' => 20,
136 'eval' => 'trim',
137 'max' => 30
138 ]
139 ],
140 'email' => [
141 'exclude' => true,
142 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.email',
143 'config' => [
144 'type' => 'input',
145 'size' => 20,
146 'eval' => 'trim',
147 'max' => 255
148 ]
149 ],
150 'title' => [
151 'exclude' => true,
152 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title_person',
153 'config' => [
154 'type' => 'input',
155 'size' => 20,
156 'eval' => 'trim',
157 'max' => 40
158 ]
159 ],
160 'zip' => [
161 'exclude' => true,
162 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.zip',
163 'config' => [
164 'type' => 'input',
165 'eval' => 'trim',
166 'size' => 10,
167 'max' => 10
168 ]
169 ],
170 'city' => [
171 'exclude' => true,
172 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.city',
173 'config' => [
174 'type' => 'input',
175 'size' => 20,
176 'eval' => 'trim',
177 'max' => 50
178 ]
179 ],
180 'country' => [
181 'exclude' => true,
182 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.country',
183 'config' => [
184 'type' => 'input',
185 'size' => 20,
186 'eval' => 'trim',
187 'max' => 40
188 ]
189 ],
190 'www' => [
191 'exclude' => true,
192 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.www',
193 'config' => [
194 'type' => 'input',
195 'eval' => 'trim',
196 'size' => 20,
197 'max' => 80
198 ]
199 ],
200 'company' => [
201 'exclude' => true,
202 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.company',
203 'config' => [
204 'type' => 'input',
205 'eval' => 'trim',
206 'size' => 20,
207 'max' => 80
208 ]
209 ],
210 'image' => [
211 'exclude' => true,
212 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.image',
213 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
214 'image',
215 [
216 'maxitems' => 6,
217 'minitems'=> 0
218 ],
219 $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
220 )
221 ],
222 'disable' => [
223 'exclude' => true,
224 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
225 'config' => [
226 'type' => 'check',
227 'renderType' => 'checkboxToggle',
228 'items' => [
229 [
230 0 => '',
231 1 => '',
232 'invertStateDisplay' => true,
233 ],
234 ],
235 ],
236 ],
237 'starttime' => [
238 'exclude' => true,
239 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
240 'config' => [
241 'type' => 'input',
242 'renderType' => 'inputDateTime',
243 'eval' => 'datetime,int',
244 'default' => 0
245 ]
246 ],
247 'endtime' => [
248 'exclude' => true,
249 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
250 'config' => [
251 'type' => 'input',
252 'renderType' => 'inputDateTime',
253 'eval' => 'datetime,int',
254 'default' => 0,
255 'range' => [
256 'upper' => mktime(0, 0, 0, 1, 1, 2038)
257 ]
258 ]
259 ],
260 'description' => [
261 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
262 'config' => [
263 'type' => 'text',
264 'rows' => 5,
265 'cols' => 48
266 ]
267 ],
268 'TSconfig' => [
269 'exclude' => true,
270 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:TSconfig',
271 'config' => [
272 'type' => 'text',
273 'cols' => 40,
274 'rows' => 10,
275 'enableTabulator' => true,
276 'fixedFont' => true,
277 ],
278 ],
279 'lastlogin' => [
280 'exclude' => true,
281 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.lastlogin',
282 'config' => [
283 'type' => 'input',
284 'renderType' => 'inputDateTime',
285 'readOnly' => true,
286 'eval' => 'datetime,int',
287 'default' => 0
288 ]
289 ]
290 ],
291 'types' => [
292 '0' => [
293 'showitem' => '
294 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
295 username,password,usergroup,lastlogin,
296 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.personelData,
297 company, title, name, --palette--;;2, address, zip, city, country, telephone, fax, email, www, image,
298 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.options,
299 lockToDomain, TSconfig,
300 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
301 disable,--palette--;;timeRestriction,
302 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
303 description,
304 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
305 ',
306 ],
307 ],
308 'palettes' => [
309 'timeRestriction' => ['showitem' => 'starttime, endtime'],
310 '2' => ['showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name']
311 ]
312 ];