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