Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Landauswahl
- $countries = [];
- foreach(\Fixpunkt\FpErp2\Utility\Data::$countries as $shortcut => $name) {
- $countries[] = [$name, $shortcut];
- }
- return [
- 'ctrl' => [
- 'title' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:address',
- 'label' => 'description',
- 'tstamp' => 'tstamp',
- 'crdate' => 'crdate',
- 'cruser_id' => 'cruser_id',
- 'versioningWS' => true,
- 'languageField' => 'sys_language_uid',
- 'transOrigPointerField' => 'l10n_parent',
- 'transOrigDiffSourceField' => 'l10n_diffsource',
- 'delete' => 'deleted',
- 'enablecolumns' => [
- 'disabled' => 'hidden'
- ],
- 'searchFields' => 'description, name, street_and_no, zip, town, addition, country, contacts',
- 'iconfile' => 'EXT:fp_erp2/Resources/Public/Icons/Models/adress.svg'
- ],
- 'interface' => [
- 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, description, name, street_and_no, zip, town, addition, country, part_of, contacts',
- ],
- 'palettes' => [
- 'address' => [
- 'showitem' => 'street_and_no, zip, town, country',
- ],
- ],
- 'types' => [
- '1' => [
- 'showitem' => '
- description, name, --palette--;LLL:Anschrift;address,addition,part_of,
- --div--;Kontaktmöglichkeiten, contacts,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, sys_language_uid, l10n_parent, l10n_diffsource, hidden,'],
- ],
- 'columns' => [
- 'description' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:description',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim,required'
- ],
- ],
- 'name' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:name',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim'
- ],
- ],
- 'street_and_no' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:streetAndNo',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim'
- ],
- ],
- 'zip' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:zip',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim'
- ],
- ],
- 'town' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:town',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim'
- ],
- ],
- 'addition' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:addition',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim'
- ],
- ],
- 'country' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:country',
- 'config' => [
- 'type' => 'select',
- 'renderType' => 'selectSingle',
- 'items' => $countries
- ],
- ],
- 'part_of' => [
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:partOf',
- 'l10n_mode' => 'exclude',
- 'config' => [
- 'type' => 'group',
- 'internal_type' => 'db',
- 'foreign_table' => 'tx_fperp2_domain_model_person,fe_users,tx_fperp2_domain_model_company',
- 'allowed' => 'tx_fperp2_domain_model_person,fe_users,tx_fperp2_domain_model_company',
- 'MM' => 'tx_fperp2_address_mm',
- 'show_thumbs' => 1,
- 'size' => 1,
- 'minitems' => 1,
- 'maxitems' => 1,
- ]
- ],
- /*
- 'contacts' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:fp_erp2/Resources/Private/Language/locallang_address.xlf:contacts',
- 'config' => [
- 'type' => 'inline',
- 'foreign_table' => 'tx_fperp2_domain_model_contact',
- 'foreign_field' => 'address',
- 'maxitems' => 9999,
- 'appearance' => [
- 'collapseAll' => 1,
- 'expandSingle' => 1,
- ],
- ],
- ],*/
- 'sys_language_uid' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
- 'config' => [
- 'type' => 'select',
- 'renderType' => 'selectSingle',
- 'special' => 'languages',
- 'items' => [
- [
- 'LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages',
- -1,
- 'flags-multiple'
- ]
- ],
- 'default' => 0,
- ],
- ],
- 'l10n_parent' => [
- 'displayCond' => 'FIELD:sys_language_uid:>:0',
- 'exclude' => true,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
- 'config' => [
- 'type' => 'select',
- 'renderType' => 'selectSingle',
- 'items' => [
- ['', 0],
- ],
- 'foreign_table' => 'tx_fperp2_domain_model_address',
- 'foreign_table_where' => 'AND tx_fperp2_domain_model_address.pid=###CURRENT_PID### AND tx_fperp2_domain_model_address.sys_language_uid IN (-1,0)',
- ],
- ],
- 'l10n_diffsource' => [
- 'config' => [
- 'type' => 'passthrough',
- ],
- ],
- 't3ver_label' => [
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
- 'config' => [
- 'type' => 'input',
- 'size' => 30,
- 'max' => 255,
- ],
- ],
- 'hidden' => [
- 'exclude' => true,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
- 'config' => [
- 'type' => 'check',
- 'items' => [
- '1' => [
- '0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
- ]
- ],
- ],
- ]
- ],
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement