Add "Adresscheck" form to extension

This commit is contained in:
Cedric Ziel
2018-09-26 11:42:49 +02:00
parent 0db6d097fd
commit 2e6b048704
4 changed files with 344 additions and 0 deletions
@@ -0,0 +1,172 @@
<?php
return [
'ctrl' => [
'label' => 'name',
'label_alt' => 'email',
'default_sortby' => 'ORDER BY last_name, first_name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
'delete' => 'deleted',
'title' => 'Adresscheck',
'versioningWS' => true,
'origUid' => 't3_origuid',
'enablecolumns' => [
'disabled' => 'hidden'
],
'iconfile' => 'EXT:ep_theme/Resources/Public/images/icon_ce.svg',
'searchFields' => 'name, first_name, last_name, email',
'dividers2tabs' => 1,
],
'interface' => [
'showRecordFieldList' => 'first_name,last_name,address,city,zip,country,email,title'
],
'columns' => [
'pid' => [
'label' => 'pid',
'config' => [
'type' => 'passthrough'
]
],
'crdate' => [
'label' => 'crdate',
'config' => [
'type' => 'passthrough',
]
],
'cruser_id' => [
'label' => 'cruser_id',
'config' => [
'type' => 'passthrough'
]
],
'tstamp' => [
'label' => 'tstamp',
'config' => [
'type' => 'passthrough',
]
],
'hidden' => [
'exclude' => 1,
'label' => 'Versteckt',
'config' => [
'type' => 'check'
]
],
'customer_id' => [
'exclude' => 1,
'label' => 'Kundennummer',
'config' => [
'type' => 'input',
'size' => '8',
'eval' => 'trim',
'max' => '255'
]
],
'title' => [
'exclude' => 1,
'label' => 'Anrede',
'config' => [
'type' => 'input',
'size' => '8',
'eval' => 'trim',
'max' => '255'
]
],
'first_name' => [
'exclude' => 0,
'label' => 'Vorname',
'config' => [
'type' => 'input',
'size' => '20',
'eval' => 'trim',
'max' => '255'
]
],
'last_name' => [
'exclude' => 0,
'label' => 'Name',
'config' => [
'type' => 'input',
'size' => '20',
'eval' => 'trim',
'max' => '255'
]
],
'address' => [
'label' => 'Strasse / Nr.',
'config' => [
'type' => 'text',
'cols' => '20',
'rows' => '3'
]
],
'email' => [
'label' => 'E-Mail',
'config' => [
'type' => 'input',
'size' => '20',
'eval' => 'trim',
'max' => '255',
'softref' => 'email'
]
],
'city' => [
'label' => 'Stadt',
'config' => [
'type' => 'input',
'size' => '20',
'eval' => 'trim',
'max' => '255'
]
],
'zip' => [
'label' => 'PLZ',
'config' => [
'type' => 'input',
'eval' => 'trim',
'size' => '10',
'max' => '20'
]
],
'country' => [
'exclude' => 1,
'label' => 'Land',
'config' => [
'type' => 'input',
'size' => '20',
'eval' => 'trim',
'max' => '128'
]
],
'no_postal' => [
'exclude' => 1,
'label' => 'Keine Postalische Werbung',
'config' => [
'type' => 'check'
]
],
'no_email' => [
'exclude' => 1,
'label' => 'Keine E-Mails mehr',
'config' => [
'type' => 'check'
]
],
'address_current' => [
'exclude' => 1,
'label' => 'Adresse ist aktuell',
'config' => [
'type' => 'check'
]
],
],
'types' => [
'0' => ['showitem' =>
'hidden,
title,first_name,last_name,address,zip,city,country,email,no_postal,no_email,address_current,
']
],
];