2020-05-29 13:41:58 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element(
|
|
|
|
'/genericElements/SingleViews/single_view',
|
2020-06-19 00:42:42 +02:00
|
|
|
[
|
2020-05-29 13:41:58 +02:00
|
|
|
'title' => __('Organisation View'),
|
2020-06-19 00:42:42 +02:00
|
|
|
'data' => $entity,
|
|
|
|
'fields' => [
|
2020-05-29 13:41:58 +02:00
|
|
|
[
|
|
|
|
'key' => __('ID'),
|
|
|
|
'path' => 'id'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Name'),
|
|
|
|
'path' => 'name'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('UUID'),
|
|
|
|
'path' => 'uuid'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('URL'),
|
|
|
|
'path' => 'url'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Nationality'),
|
|
|
|
'path' => 'nationality'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Sector'),
|
|
|
|
'path' => 'sector'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Type'),
|
|
|
|
'path' => 'type'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Contacts'),
|
|
|
|
'path' => 'contacts'
|
|
|
|
],
|
2021-08-31 15:21:28 +02:00
|
|
|
[
|
|
|
|
'key' => __('Tags'),
|
|
|
|
'type' => 'tags',
|
|
|
|
],
|
2020-05-29 13:41:58 +02:00
|
|
|
[
|
|
|
|
'key' => __('Alignments'),
|
|
|
|
'type' => 'alignment',
|
2020-06-21 21:33:08 +02:00
|
|
|
'path' => '',
|
2020-05-29 13:41:58 +02:00
|
|
|
'scope' => 'organisations'
|
|
|
|
]
|
2020-06-19 00:42:42 +02:00
|
|
|
],
|
2020-12-08 09:07:48 +01:00
|
|
|
'metaTemplates' => empty($metaFields) ? [] : $metaFields,
|
2021-07-06 12:37:16 +02:00
|
|
|
'combinedFieldsView' => true,
|
2020-05-29 13:41:58 +02:00
|
|
|
'children' => []
|
2020-06-19 00:42:42 +02:00
|
|
|
]
|
2020-05-29 13:41:58 +02:00
|
|
|
);
|