2023-12-17 12:38:39 +01:00
|
|
|
<?php
|
|
|
|
echo $this->element(
|
|
|
|
'/genericElements/SingleViews/single_view',
|
|
|
|
[
|
|
|
|
'title' => __('Cerebrate {0}', h($entity->name)),
|
|
|
|
'data' => $entity,
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'key' => __('Id'),
|
2024-01-28 11:49:36 +01:00
|
|
|
'path' => 'id',
|
2023-12-17 12:38:39 +01:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Name'),
|
2024-01-28 11:49:36 +01:00
|
|
|
'path' => 'name',
|
2023-12-17 12:38:39 +01:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('URL'),
|
|
|
|
'path' => 'url',
|
|
|
|
'url' => '{{0}}',
|
2024-01-28 11:49:36 +01:00
|
|
|
'url_vars' => ['url'],
|
2023-12-17 12:38:39 +01:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Owner Organisation'),
|
|
|
|
'path' => 'org_id',
|
|
|
|
'pathName' => 'Organisation.name',
|
|
|
|
'type' => 'model',
|
2024-01-28 11:49:36 +01:00
|
|
|
'model' => 'organisations',
|
2023-12-17 12:38:39 +01:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Description'),
|
2024-01-28 11:49:36 +01:00
|
|
|
'path' => 'description',
|
2023-12-17 12:38:39 +01:00
|
|
|
],
|
|
|
|
],
|
|
|
|
// 'side_panels' => [ // FIXME chri missing side-panel
|
|
|
|
// [
|
|
|
|
// 'type' => 'logo',
|
|
|
|
// 'source' => '/img/cerebrate.png',
|
|
|
|
// 'url' => 'https://github.com/cerebrate-project/cerebrate',
|
|
|
|
// 'title' => __('The Cerebrate Project'),
|
|
|
|
// 'img' => [
|
|
|
|
// 'css' => [
|
|
|
|
// 'width' => '150px',
|
|
|
|
// 'height' => '150px'
|
|
|
|
// ],
|
|
|
|
// ],
|
|
|
|
// 'div' => [
|
|
|
|
// 'css' => [
|
|
|
|
// 'text-align' => 'right'
|
|
|
|
// ]
|
|
|
|
// ]
|
|
|
|
// ]
|
|
|
|
// ],
|
|
|
|
'children' => [
|
|
|
|
[
|
|
|
|
'url' => '/cerebrates/preview_orgs/{{0}}/',
|
|
|
|
'url_params' => ['id'],
|
|
|
|
'title' => __('Organisations'),
|
|
|
|
// FIXME chri - 'elementId' => 'preview_orgs_container'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'url' => '/cerebrates/preview_sharing_groups/{{0}}/',
|
|
|
|
'url_params' => ['id'],
|
|
|
|
'title' => __('Sharing Groups'),
|
|
|
|
// FIXME chri - 'elementId' => 'preview_sgs_container' FIXME chri
|
|
|
|
],
|
2024-01-28 11:49:36 +01:00
|
|
|
],
|
|
|
|
],
|
2023-12-17 12:38:39 +01:00
|
|
|
);
|