update submission SK
authorKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Fri, 18 Aug 2023 12:51:59 +0000 (13:51 +0100)
committerKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Wed, 6 Dec 2023 00:23:33 +0000 (00:23 +0000)
ext/afform/admin/managed/FormSubmissionSavedSearch.mgd.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php

index 498790acde2dde58a331a105f1a38174b3ebec91..7c20ad3f7d146af4f0b2135636361f6ba3ccc7f2 100644 (file)
@@ -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' => [
             [
index a27423dbc788273830e740ba9a63b5443a95bcc7..bf36ac6476ba73e6a69fea52a955736030c44a70 100644 (file)
@@ -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'],
     ];