fix: [UI] Nicer view for workflow blueprints index

pull/8653/head
Jakub Onderka 2022-10-10 22:30:26 +02:00
parent 6da7ba5b7a
commit 222beb456d
1 changed files with 8 additions and 8 deletions

View File

@ -32,10 +32,10 @@
'name' => __('Timestamp'),
'sort' => 'WorkflowBlueprint.timestamp',
'data_path' => 'WorkflowBlueprint.timestamp',
'element' => 'datetime',
],
];
echo $this->element('genericElements/IndexTable/scaffold', [
'scaffold_data' => [
'data' => [
@ -73,11 +73,13 @@
'url_params_data_paths' => ['WorkflowBlueprint.id'],
'icon' => 'eye',
'dbclickAction' => true,
'title' => __('View'),
],
[
'url' => $baseurl . '/workflowBlueprints/edit',
'url_params_data_paths' => ['WorkflowBlueprint.id'],
'icon' => 'edit',
'title' => __('Edit'),
],
[
'url' => $baseurl . '/workflowBlueprints/export',
@ -86,13 +88,11 @@
'icon' => 'download',
],
[
'onclick' => sprintf(
'openGenericModal(\'%s/workflowBlueprints/delete/[onclick_params_data_path]\');',
$baseurl
),
'onclick_params_data_path' => 'WorkflowBlueprint.id',
'icon' => 'trash'
'class' => 'modal-open',
'url' => $baseurl . '/workflowBlueprints/delete/',
'url_params_data_paths' => 'WorkflowBlueprint.id',
'icon' => 'trash',
'title' => __('Delete'),
]
]
]