2020-06-19 00:42:10 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element(
|
|
|
|
'/genericElements/SingleViews/single_view',
|
|
|
|
[
|
|
|
|
'data' => $entity,
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'key' => __('ID'),
|
|
|
|
'path' => 'id'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('UUID'),
|
|
|
|
'path' => 'uuid'
|
|
|
|
],
|
2020-06-21 21:34:15 +02:00
|
|
|
[
|
|
|
|
'key' => __('Username'),
|
|
|
|
'path' => 'username'
|
|
|
|
],
|
2020-06-19 00:42:10 +02:00
|
|
|
[
|
2022-02-24 13:47:49 +01:00
|
|
|
'type' => 'generic',
|
2020-06-19 00:42:10 +02:00
|
|
|
'key' => __('Email'),
|
2022-02-24 13:47:49 +01:00
|
|
|
'path' => 'individual.email',
|
|
|
|
'url' => '/individuals/view/{{0}}',
|
|
|
|
'url_vars' => 'individual_id'
|
2020-06-19 00:42:10 +02:00
|
|
|
],
|
|
|
|
[
|
2021-11-24 01:25:57 +01:00
|
|
|
'type' => 'generic',
|
|
|
|
'key' => __('Organisation'),
|
|
|
|
'path' => 'organisation.name',
|
|
|
|
'url' => '/organisations/view/{{0}}',
|
|
|
|
'url_vars' => 'organisation.id'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'type' => 'generic',
|
2020-06-19 00:42:10 +02:00
|
|
|
'key' => __('Role'),
|
|
|
|
'path' => 'role.name',
|
|
|
|
'url' => '/roles/view/{{0}}',
|
|
|
|
'url_vars' => 'role.id'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('First name'),
|
|
|
|
'path' => 'individual.first_name'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Last name'),
|
|
|
|
'path' => 'individual.last_name'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => __('Alignments'),
|
|
|
|
'type' => 'alignment',
|
|
|
|
'path' => 'individual',
|
|
|
|
'scope' => 'individuals'
|
|
|
|
]
|
|
|
|
],
|
2020-06-21 21:34:15 +02:00
|
|
|
'children' => [
|
|
|
|
[
|
2021-06-28 23:43:42 +02:00
|
|
|
'url' => '/AuthKeys/index?Users.id={{0}}',
|
2020-06-21 21:34:15 +02:00
|
|
|
'url_params' => ['id'],
|
|
|
|
'title' => __('Authentication keys')
|
|
|
|
],
|
|
|
|
[
|
2022-01-18 16:56:38 +01:00
|
|
|
'url' => '/EncryptionKeys/index?owner_id={{0}}',
|
|
|
|
'url_params' => ['individual_id'],
|
2020-06-21 21:34:15 +02:00
|
|
|
'title' => __('Encryption keys')
|
2021-10-08 10:27:40 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'url' => '/UserSettings/index?Users.id={{0}}',
|
|
|
|
'url_params' => ['id'],
|
|
|
|
'title' => __('User settings')
|
2020-06-21 21:34:15 +02:00
|
|
|
]
|
|
|
|
]
|
2020-06-19 00:42:10 +02:00
|
|
|
]
|
|
|
|
);
|