mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-23 06:16:11 +01:00
212 lines
6.7 KiB
PHP
212 lines
6.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
$l10nPathGeneral = 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf';
|
|
$l10nPath = 'LLL:EXT:events/Resources/Private/Language/locallang_csh_location.xlf';
|
|
|
|
return [
|
|
'ctrl' => [
|
|
'title' => $l10nPath . ':tx_events_domain_model_location',
|
|
'label' => 'name',
|
|
'tstamp' => 'tstamp',
|
|
'crdate' => 'crdate',
|
|
'versioningWS' => true,
|
|
'languageField' => 'sys_language_uid',
|
|
'transOrigPointerField' => 'l10n_parent',
|
|
'transOrigDiffSourceField' => 'l10n_diffsource',
|
|
'delete' => 'deleted',
|
|
'enablecolumns' => [
|
|
'disabled' => 'hidden',
|
|
'starttime' => 'starttime',
|
|
'endtime' => 'endtime',
|
|
],
|
|
'searchFields' => 'name',
|
|
'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_location.svg',
|
|
],
|
|
'types' => [
|
|
'1' => [
|
|
'showitem' => '--palette--;' . $l10nPath . ':palette.general;general,
|
|
sys_language_uid,
|
|
l10n_parent,
|
|
l10n_diffsource,
|
|
hidden,
|
|
name,
|
|
global_id,
|
|
|
|
street,
|
|
district,
|
|
city,
|
|
zip,
|
|
country,
|
|
phone,
|
|
latitude,
|
|
longitude,
|
|
--div--;' . $l10nPath . ':tabs.access,
|
|
starttime,
|
|
endtime',
|
|
],
|
|
],
|
|
'columns' => [
|
|
'sys_language_uid' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPathGeneral . ':LGL.language',
|
|
'config' => ['type' => 'language'],
|
|
],
|
|
'l10n_parent' => [
|
|
'displayCond' => 'FIELD:sys_language_uid:>:0',
|
|
'label' => $l10nPathGeneral . ':LGL.l18n_parent',
|
|
'config' => [
|
|
'type' => 'select',
|
|
'renderType' => 'selectSingle',
|
|
'default' => 0,
|
|
'items' => [
|
|
['label' => '', 'value' => 0],
|
|
],
|
|
'foreign_table' => 'tx_events_domain_model_location',
|
|
'foreign_table_where' => 'AND {#tx_events_domain_model_location}.{#pid}=###CURRENT_PID### AND {#tx_events_domain_model_location}.{#sys_language_uid} IN (-1,0)',
|
|
],
|
|
],
|
|
'l10n_diffsource' => [
|
|
'config' => [
|
|
'type' => 'passthrough',
|
|
],
|
|
],
|
|
't3ver_label' => [
|
|
'label' => $l10nPathGeneral . ':LGL.versionLabel',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'max' => 255,
|
|
],
|
|
],
|
|
'hidden' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPathGeneral . ':LGL.visible',
|
|
'config' => [
|
|
'type' => 'check',
|
|
'renderType' => 'checkboxToggle',
|
|
'items' => [
|
|
[
|
|
'label' => '',
|
|
'invertStateDisplay' => true,
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'starttime' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPathGeneral . ':LGL.starttime',
|
|
'config' => [
|
|
'type' => 'datetime',
|
|
'format' => 'datetime',
|
|
'behaviour' => [
|
|
'allowLanguageSynchronization' => true,
|
|
],
|
|
],
|
|
],
|
|
'endtime' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPathGeneral . ':LGL.endtime',
|
|
'config' => [
|
|
'type' => 'datetime',
|
|
'format' => 'datetime',
|
|
'behaviour' => [
|
|
'allowLanguageSynchronization' => true,
|
|
],
|
|
],
|
|
],
|
|
|
|
'global_id' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.global_id',
|
|
'description' => $l10nPath . ':tx_events_domain_model_location.global_id.description',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'name' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.name',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'street' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.street',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'district' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.district',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'city' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.city',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'zip' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.zip',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'country' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.country',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'phone' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.phone',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'latitude' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.latitude',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
'longitude' => [
|
|
'exclude' => true,
|
|
'label' => $l10nPath . ':tx_events_domain_model_location.longitude',
|
|
'config' => [
|
|
'type' => 'input',
|
|
'size' => 30,
|
|
'eval' => 'trim',
|
|
],
|
|
],
|
|
],
|
|
];
|