From 752ddecc221555ceb33d982dd01b4fe9b08d7657 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Fri, 18 Aug 2023 13:51:59 +0100 Subject: [PATCH] update submission SK --- .../managed/FormSubmissionSavedSearch.mgd.php | 23 +++++++++++++++++++ .../Action/SearchDisplay/GetSearchTasks.php | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ext/afform/admin/managed/FormSubmissionSavedSearch.mgd.php b/ext/afform/admin/managed/FormSubmissionSavedSearch.mgd.php index 498790acde..7c20ad3f7d 100644 --- a/ext/afform/admin/managed/FormSubmissionSavedSearch.mgd.php +++ b/ext/afform/admin/managed/FormSubmissionSavedSearch.mgd.php @@ -101,6 +101,29 @@ return [ 'label' => E::ts('Submission Status'), 'sortable' => TRUE, ], + [ + 'size' => 'btn-xs', + 'links' => [ + [ + 'path' => '', + 'icon' => 'fa-check-square-o', + 'text' => E::ts('Process'), + 'style' => 'default', + 'condition' => [ + 'status_id:label', + '=', + 'Pending', + ], + 'task' => 'process', + 'entity' => 'AfformSubmission', + 'action' => '', + 'join' => '', + 'target' => 'crm-popup', + ], + ], + 'type' => 'buttons', + 'alignment' => '', + ], ], 'sort' => [ [ diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php index a27423dbc7..bf36ac6476 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php @@ -74,7 +74,7 @@ class GetSearchTasks extends \Civi\Api4\Generic\AbstractAction { $tasks[$entity['name']]['process'] = [ 'module' => 'crmSearchTasks', 'title' => E::ts('Process Submissions'), - 'icon' => 'fa-save', + 'icon' => 'fa-check-square-o', 'uiDialog' => ['templateUrl' => '~/crmSearchTasks/crmSearchTaskProcess.html'], ]; -- 2.25.1