mirror of https://github.com/MISP/MISP
fix: [UI] Nicer view for workflow blueprints index
parent
6da7ba5b7a
commit
222beb456d
|
@ -32,10 +32,10 @@
|
||||||
'name' => __('Timestamp'),
|
'name' => __('Timestamp'),
|
||||||
'sort' => 'WorkflowBlueprint.timestamp',
|
'sort' => 'WorkflowBlueprint.timestamp',
|
||||||
'data_path' => 'WorkflowBlueprint.timestamp',
|
'data_path' => 'WorkflowBlueprint.timestamp',
|
||||||
|
'element' => 'datetime',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
echo $this->element('genericElements/IndexTable/scaffold', [
|
echo $this->element('genericElements/IndexTable/scaffold', [
|
||||||
'scaffold_data' => [
|
'scaffold_data' => [
|
||||||
'data' => [
|
'data' => [
|
||||||
|
@ -73,11 +73,13 @@
|
||||||
'url_params_data_paths' => ['WorkflowBlueprint.id'],
|
'url_params_data_paths' => ['WorkflowBlueprint.id'],
|
||||||
'icon' => 'eye',
|
'icon' => 'eye',
|
||||||
'dbclickAction' => true,
|
'dbclickAction' => true,
|
||||||
|
'title' => __('View'),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => $baseurl . '/workflowBlueprints/edit',
|
'url' => $baseurl . '/workflowBlueprints/edit',
|
||||||
'url_params_data_paths' => ['WorkflowBlueprint.id'],
|
'url_params_data_paths' => ['WorkflowBlueprint.id'],
|
||||||
'icon' => 'edit',
|
'icon' => 'edit',
|
||||||
|
'title' => __('Edit'),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => $baseurl . '/workflowBlueprints/export',
|
'url' => $baseurl . '/workflowBlueprints/export',
|
||||||
|
@ -86,13 +88,11 @@
|
||||||
'icon' => 'download',
|
'icon' => 'download',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
'class' => 'modal-open',
|
||||||
'onclick' => sprintf(
|
'url' => $baseurl . '/workflowBlueprints/delete/',
|
||||||
'openGenericModal(\'%s/workflowBlueprints/delete/[onclick_params_data_path]\');',
|
'url_params_data_paths' => 'WorkflowBlueprint.id',
|
||||||
$baseurl
|
'icon' => 'trash',
|
||||||
),
|
'title' => __('Delete'),
|
||||||
'onclick_params_data_path' => 'WorkflowBlueprint.id',
|
|
||||||
'icon' => 'trash'
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue