66 lines
1.9 KiB
PHP
66 lines
1.9 KiB
PHP
<?php
|
|
echo $this->element('genericElements/IndexTable/index_table', [
|
|
'data' => [
|
|
'data' => $data,
|
|
'top_bar' => [
|
|
'pull' => 'right',
|
|
'children' => [
|
|
[
|
|
'type' => 'search',
|
|
'button' => __('Filter'),
|
|
'placeholder' => __('Enter value to search'),
|
|
'data' => '',
|
|
'searchKey' => 'value',
|
|
'additionalUrlParams' => $brood_id . '/individuals'
|
|
]
|
|
]
|
|
],
|
|
'fields' => [
|
|
[
|
|
'name' => '#',
|
|
'sort' => 'id',
|
|
'data_path' => 'id',
|
|
],
|
|
[
|
|
'name' => __('Email'),
|
|
'sort' => 'email',
|
|
'data_path' => 'email',
|
|
],
|
|
[
|
|
'name' => __('First Name'),
|
|
'sort' => 'first_name',
|
|
'data_path' => 'first_name',
|
|
],
|
|
[
|
|
'name' => __('Last Name'),
|
|
'sort' => 'last_name',
|
|
'data_path' => 'last_name',
|
|
],
|
|
[
|
|
'name' => __('Alignments'),
|
|
'data_path' => 'alignments',
|
|
'element' => 'alignments',
|
|
'scope' => 'organisation'
|
|
],
|
|
[
|
|
'name' => __('UUID'),
|
|
'sort' => 'uuid',
|
|
'data_path' => 'uuid',
|
|
'placeholder' => __('Leave empty to auto generate')
|
|
],
|
|
],
|
|
'title' => __('Individuals Index'),
|
|
'pull' => 'right',
|
|
'actions' => [
|
|
[
|
|
'url' => '/broods/downloadIndividual/' . $brood_id,
|
|
'url_params_data_paths' => ['id'],
|
|
'title' => __('Download'),
|
|
'icon' => 'download'
|
|
]
|
|
]
|
|
]
|
|
]);
|
|
echo '</div>';
|
|
?>
|