new: [UI] brought up to date with factory changes

remotes/origin/main
iglocska 2020-06-21 21:33:08 +02:00
parent e9e13ba2ad
commit a0570d853e
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
6 changed files with 44 additions and 12 deletions

View File

@ -73,8 +73,8 @@ echo $this->element('genericElements/IndexTable/index_table', [
'pull' => 'right',
'actions' => [
[
'url' => '/endcrpyionKeys/view',
'url_params_data_paths' => ['id'],
'onclick' => 'populateAndLoadModal(\'/encryptionKeys/edit/[onclick_params_data_path]\');',
'onclick_params_data_path' => 'id',
'icon' => 'eye'
],
[

View File

@ -5,6 +5,17 @@ echo $this->element('genericElements/IndexTable/index_table', [
'top_bar' => [
'pull' => 'right',
'children' => [
[
'type' => 'simple',
'children' => [
'data' => [
'type' => 'simple',
'text' => __('Add individual'),
'class' => 'btn btn-primary',
'popover_url' => '/individuals/add'
]
]
],
[
'type' => 'search',
'button' => __('Filter'),
@ -58,8 +69,8 @@ echo $this->element('genericElements/IndexTable/index_table', [
'icon' => 'eye'
],
[
'url' => '/individuals/edit',
'url_params_data_paths' => ['id'],
'onclick' => 'populateAndLoadModal(\'/individuals/edit/[onclick_params_data_path]\');',
'onclick_params_data_path' => 'id',
'icon' => 'edit'
],
[

View File

@ -2,7 +2,6 @@
echo $this->element(
'/genericElements/SingleViews/single_view',
[
'title' => __('Individual View'),
'data' => $entity,
'fields' => [
[
@ -32,7 +31,7 @@ echo $this->element(
[
'key' => __('Alignments'),
'type' => 'alignment',
'path' => 'alignments',
'path' => '',
'scope' => 'individuals'
]
],

View File

@ -5,6 +5,17 @@ echo $this->element('genericElements/IndexTable/index_table', [
'top_bar' => [
'pull' => 'right',
'children' => [
[
'type' => 'simple',
'children' => [
'data' => [
'type' => 'simple',
'text' => __('Add organisation'),
'class' => 'btn btn-primary',
'popover_url' => '/organisations/add'
]
]
],
[
'type' => 'search',
'button' => __('Filter'),
@ -68,8 +79,8 @@ echo $this->element('genericElements/IndexTable/index_table', [
'icon' => 'eye'
],
[
'url' => '/organisations/edit',
'url_params_data_paths' => ['id'],
'onclick' => 'populateAndLoadModal(\'/organisations/edit/[onclick_params_data_path]\');',
'onclick_params_data_path' => 'id',
'icon' => 'edit'
],
[

View File

@ -40,7 +40,7 @@ echo $this->element(
[
'key' => __('Alignments'),
'type' => 'alignment',
'path' => 'alignments',
'path' => '',
'scope' => 'organisations'
]
],

View File

@ -5,6 +5,17 @@ echo $this->element('genericElements/IndexTable/index_table', [
'top_bar' => [
'pull' => 'right',
'children' => [
[
'type' => 'simple',
'children' => [
'data' => [
'type' => 'simple',
'text' => __('Add role'),
'class' => 'btn btn-primary',
'popover_url' => '/roles/add'
]
]
],
[
'type' => 'search',
'button' => __('Filter'),
@ -54,9 +65,9 @@ echo $this->element('genericElements/IndexTable/index_table', [
'icon' => 'eye'
],
[
'url' => '/roles/edit',
'url_params_data_paths' => ['id'],
'icon' => 'edit'
'onclick' => 'populateAndLoadModal(\'/roles/edit/[onclick_params_data_path]\');',
'onclick_params_data_path' => 'id',
'icon' => 'edit',
],
[
'onclick' => 'populateAndLoadModal(\'/roles/delete/[onclick_params_data_path]\');',