mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Extra lines for Address
This commit is contained in:
parent
8e5a785c54
commit
c712b2b93e
@ -53,6 +53,7 @@ class SiteConfigExtension extends DataExtension
|
|||||||
'State' => 'Varchar(255)',
|
'State' => 'Varchar(255)',
|
||||||
'Country' => 'Varchar(255)',
|
'Country' => 'Varchar(255)',
|
||||||
'ZipCode' => 'Varchar(6)',
|
'ZipCode' => 'Varchar(6)',
|
||||||
|
'AddressExtra' => 'Text',
|
||||||
];
|
];
|
||||||
|
|
||||||
private static $has_one = [
|
private static $has_one = [
|
||||||
@ -102,7 +103,7 @@ class SiteConfigExtension extends DataExtension
|
|||||||
$mapTab->setTitle('Address / Map');
|
$mapTab->setTitle('Address / Map');
|
||||||
|
|
||||||
|
|
||||||
$addrFields =[
|
$addrFields = [
|
||||||
TextField::create('Address'),
|
TextField::create('Address'),
|
||||||
TextField::create('ZipCode'),
|
TextField::create('ZipCode'),
|
||||||
TextField::create('Suburb', 'City'),
|
TextField::create('Suburb', 'City'),
|
||||||
@ -136,6 +137,8 @@ class SiteConfigExtension extends DataExtension
|
|||||||
$addrFields[] = TextField::create('Country');
|
$addrFields[] = TextField::create('Country');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$addrFields[] = TextareaField::create('AddressExtra', 'Address Extra Lines');
|
||||||
|
|
||||||
|
|
||||||
$fields->addFieldsToTab('Root.Maps', $addrFields);
|
$fields->addFieldsToTab('Root.Maps', $addrFields);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user