Files

245 lines
8.4 KiB
PHP

<?php
return [
'ctrl' => [
'label' => 'username',
'descriptionColumn' => 'description',
'default_sortby' => 'username',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'groupName' => 'frontendaccess',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'disable',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'typeicon_classes' => [
'default' => 'status-user-frontend',
],
'useColumnsForDefaultValues' => 'usergroup,disable,starttime,endtime',
],
'columns' => [
'username' => [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.username',
'config' => [
'type' => 'input',
'size' => 20,
'max' => 255,
'required' => true,
'eval' => 'nospace,trim,lower,uniqueInPid',
'autocomplete' => false,
],
],
'password' => [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.password',
'config' => [
'type' => 'password',
'passwordPolicy' => $GLOBALS['TYPO3_CONF_VARS']['FE']['passwordPolicy'] ?? '',
'size' => 20,
'required' => true,
'fieldControl' => [
'passwordGenerator' => [
'renderType' => 'passwordGenerator',
'options' => [
'title' => 'core.core:labels.generatePassword',
'allowEdit' => true,
'passwordPolicy' => $GLOBALS['TYPO3_CONF_VARS']['FE']['passwordPolicy'] ?? '',
],
],
],
],
],
'usergroup' => [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.usergroup',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'fe_groups',
'size' => 6,
'minitems' => 1,
'dbFieldLength' => 512,
],
],
'name' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.name',
'config' => [
'type' => 'input',
'size' => 40,
'eval' => 'trim',
'max' => 160,
],
],
'first_name' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.first_name',
'config' => [
'type' => 'input',
'size' => 25,
'eval' => 'trim',
'max' => 50,
],
],
'middle_name' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.middle_name',
'config' => [
'type' => 'input',
'size' => 25,
'eval' => 'trim',
'max' => 50,
],
],
'last_name' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.last_name',
'config' => [
'type' => 'input',
'size' => 25,
'eval' => 'trim',
'max' => 50,
],
],
'address' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.address',
'config' => [
'type' => 'text',
'cols' => 20,
'rows' => 3,
'default' => '',
],
],
'telephone' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.phone',
'config' => [
'type' => 'input',
'eval' => 'trim',
'size' => 20,
'max' => 30,
],
],
'fax' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fax',
'config' => [
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 30,
],
],
'email' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.email',
'config' => [
'type' => 'email',
'size' => 20,
],
],
'title' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title_person',
'config' => [
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 40,
],
],
'zip' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.zip',
'config' => [
'type' => 'input',
'eval' => 'trim',
'size' => 10,
'max' => 10,
],
],
'city' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.city',
'config' => [
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 50,
],
],
'country' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.country',
'config' => [
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 40,
],
],
'www' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.www',
'config' => [
'type' => 'input',
'eval' => 'trim',
'size' => 20,
'max' => 80,
],
],
'company' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.company',
'config' => [
'type' => 'input',
'eval' => 'trim',
'size' => 20,
'max' => 80,
],
],
'image' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.image',
'config' => [
'type' => 'file',
'allowed' => 'common-image-types',
'maxitems' => 6,
],
],
'lastlogin' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.lastlogin',
'config' => [
'type' => 'datetime',
'readOnly' => true,
'default' => 0,
],
],
],
'types' => [
'0' => [
'showitem' => '
--div--;core.form.tabs:general,
username,password,usergroup,lastlogin,
--div--;core.form.tabs:personaldata,
company, title, name, --palette--;;2, address, zip, city, country, telephone, fax, email, www, image,
--div--;core.form.tabs:access,
disable,--palette--;;timeRestriction,
--div--;core.form.tabs:notes,
description,
--div--;core.form.tabs:extended,
',
'creationOptions' => [
'enableDirectRecordTypeCreation' => false,
],
],
],
'palettes' => [
'timeRestriction' => ['showitem' => 'starttime, endtime'],
'2' => ['showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name'],
],
];