IMPR: Extra lines for Address

This commit is contained in:
Tony Air 2024-01-25 16:37:13 +02:00
parent 8e5a785c54
commit c712b2b93e

View File

@ -53,6 +53,7 @@ class SiteConfigExtension extends DataExtension
'State' => 'Varchar(255)',
'Country' => 'Varchar(255)',
'ZipCode' => 'Varchar(6)',
'AddressExtra' => 'Text',
];
private static $has_one = [
@ -102,7 +103,7 @@ class SiteConfigExtension extends DataExtension
$mapTab->setTitle('Address / Map');
$addrFields =[
$addrFields = [
TextField::create('Address'),
TextField::create('ZipCode'),
TextField::create('Suburb', 'City'),
@ -136,6 +137,8 @@ class SiteConfigExtension extends DataExtension
$addrFields[] = TextField::create('Country');
}
$addrFields[] = TextareaField::create('AddressExtra', 'Address Extra Lines');
$fields->addFieldsToTab('Root.Maps', $addrFields);