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', 'pull' => 'right',
'actions' => [ 'actions' => [
[ [
'url' => '/endcrpyionKeys/view', 'onclick' => 'populateAndLoadModal(\'/encryptionKeys/edit/[onclick_params_data_path]\');',
'url_params_data_paths' => ['id'], 'onclick_params_data_path' => 'id',
'icon' => 'eye' 'icon' => 'eye'
], ],
[ [

View File

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

View File

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

View File

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

View File

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

View File

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