chg: [userSettings] Added view template

pull/72/head
Sami Mokaddem 2021-10-08 16:53:58 +02:00
parent ef707d89f2
commit 04cc693c0e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
echo $this->element(
'/genericElements/SingleViews/single_view',
[
'data' => $entity,
'fields' => [
[
'key' => __('ID'),
'path' => 'id'
],
[
'key' => __('Name'),
'path' => 'name'
],
[
'key' => __('Value'),
'path' => 'value'
],
[
'key' => __('Created'),
'path' => 'created'
],
[
'key' => __('Modified'),
'path' => 'modified'
],
[
'key' => __('User'),
'path' => 'user.username',
'url' => '/users/view/{{0}}',
'url_vars' => 'user.id'
],
],
]
);