chg: [userSettings] Added view template
parent
ef707d89f2
commit
04cc693c0e
|
@ -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'
|
||||
],
|
||||
],
|
||||
]
|
||||
);
|
Loading…
Reference in New Issue