'params' => [
'version' => 4,
'values' => [
- 'name' => 'Imports',
+ 'name' => 'all_imports',
'label' => 'Imports',
'form_values' => NULL,
'mapping_id' => NULL,
],
],
],
+ [
+ 'name' => 'SavedSearch_Import_Templates_SearchDisplay_AllImports',
+ 'entity' => 'SearchDisplay',
+ 'cleanup' => 'always',
+ 'update' => 'unmodified',
+ 'params' => [
+ 'version' => 4,
+ 'values' => [
+ 'name' => 'all_imports',
+ 'label' => E::ts('All Imports'),
+ 'saved_search_id.name' => 'all_imports',
+ 'type' => 'table',
+ 'settings' => [
+ 'description' => E::ts('All import jobs'),
+ 'sort' => [],
+ 'limit' => 50,
+ 'pager' => [],
+ 'placeholder' => 5,
+ 'columns' => [
+ [
+ 'type' => 'field',
+ 'key' => 'id',
+ 'dataType' => 'Integer',
+ 'label' => E::ts('ID'),
+ 'sortable' => TRUE,
+ ],
+ [
+ 'type' => 'field',
+ 'key' => 'created_id.display_name',
+ 'dataType' => 'String',
+ 'label' => E::ts('Created By'),
+ 'sortable' => TRUE,
+ ],
+ [
+ 'type' => 'field',
+ 'key' => 'name',
+ 'dataType' => 'String',
+ 'label' => E::ts('Import Name'),
+ 'sortable' => TRUE,
+ 'link' => [
+ 'path' => 'civicrm/import/contribution?reset=1&template_id=[id]',
+ 'entity' => '',
+ 'action' => '',
+ 'join' => '',
+ 'target' => '',
+ ],
+ ],
+ [
+ 'type' => 'field',
+ 'key' => 'created_date',
+ 'dataType' => 'Timestamp',
+ 'label' => E::ts('Created Date'),
+ 'sortable' => TRUE,
+ ],
+ [
+ 'type' => 'field',
+ 'key' => 'job_type:label',
+ 'dataType' => 'String',
+ 'label' => E::ts('Type'),
+ 'sortable' => TRUE,
+ ],
+ ],
+ 'actions' => TRUE,
+ 'classes' => [
+ 'table',
+ 'table-striped',
+ ],
+ ],
+ 'acl_bypass' => FALSE,
+ ],
+ ],
+ ],
];
--- /dev/null
+{
+ "type": "search",
+ "requires": [],
+ "entity_type": null,
+ "join_entity": null,
+ "title": "All Imports",
+ "description": "",
+ "is_dashlet": false,
+ "is_public": false,
+ "is_token": false,
+ "contact_summary": null,
+ "summary_contact_type": null,
+ "icon": "fa-list-alt",
+ "server_route": "civicrm/imports/all-imports",
+ "permission": "administer queues",
+ "redirect": null,
+ "create_submission": false,
+ "navigation": {
+ "parent": "Reports",
+ "label": "All imports",
+ "weight": 17
+ }
+}