2020-09-28 01:26:50 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element(
|
|
|
|
'/genericElements/SingleViews/single_view',
|
|
|
|
[
|
|
|
|
'data' => $entity,
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'key' => __('ID'),
|
|
|
|
'path' => 'id'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Name'),
|
|
|
|
'path' => 'name'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Namespace'),
|
|
|
|
'path' => 'namespace'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Description'),
|
|
|
|
'path' => 'description'
|
|
|
|
],
|
2020-12-10 15:18:02 +01:00
|
|
|
[
|
|
|
|
'key' => __('Enabled'),
|
|
|
|
'path' => 'enabled',
|
|
|
|
'type' => 'boolean'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('is_default'),
|
|
|
|
'path' => 'is_default',
|
|
|
|
'type' => 'boolean'
|
|
|
|
],
|
2020-09-28 01:26:50 +02:00
|
|
|
[
|
|
|
|
'key' => __('Version'),
|
|
|
|
'path' => 'version'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Source'),
|
|
|
|
'path' => 'source'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'children' => [
|
|
|
|
[
|
|
|
|
'url' => '/MetaTemplateFields/index?meta_template_id={{0}}',
|
|
|
|
'url_params' => ['id'],
|
|
|
|
'title' => __('Fields')
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
);
|