cerebrate/templates/Individuals/view.php

46 lines
1.1 KiB
PHP
Raw Normal View History

<?php
echo $this->element(
'/genericElements/SingleViews/single_view',
[
'data' => $entity,
'fields' => [
[
'key' => __('ID'),
'path' => 'id'
],
[
'key' => __('Email'),
'path' => 'email'
],
[
'key' => __('UUID'),
'path' => 'uuid'
],
[
'key' => __('First Name'),
'path' => 'first_name'
],
[
'key' => __('Last Name'),
'path' => 'last_name'
],
[
'key' => __('Position'),
'path' => 'position'
],
[
'key' => __('Tags'),
'type' => 'tags',
'editable' => $canEdit,
],
[
'key' => __('Alignments'),
'type' => 'alignment',
'path' => '',
'scope' => 'individuals'
]
],
'children' => []
]
);