cerebrate/templates/MetaTemplates/view.php

52 lines
1.3 KiB
PHP
Raw Normal View History

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'
],
[
'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'),
'collapsed' => 'show',
2020-09-28 01:26:50 +02:00
]
]
]
);