-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24759 from colemanw/skPaymentProcessor
AdminUI - Convert "Administer Payment Processors" to SearchKit
- 6.0.0
- 5.82.1
- 5.82.0
- 5.81.2
- 5.81.1
- 5.81.0
- 5.80.3
- 5.80.2
- 5.80.1
- 5.80.0
- 5.79.2
- 5.79.1
- 5.79.0
- 5.78.4
- 5.78.3
- 5.78.2
- 5.78.1
- 5.78.0
- 5.77.1
- 5.77.0
- 5.76.3
- 5.76.2
- 5.76.1
- 5.76.0
- 5.75.2
- 5.75.1
- 5.75.0
- 5.74.5
- 5.74.4
- 5.74.3
- 5.74.2
- 5.74.1
- 5.74.0
- 5.73.4
- 5.73.3
- 5.73.2
- 5.73.1
- 5.73.0
- 5.72.3
- 5.72.2
- 5.72.1
- 5.72.0
- 5.71.2
- 5.71.1
- 5.71.0
- 5.70.2
- 5.70.1
- 5.70.0
- 5.69.5
- 5.69.4
- 5.69.3
- 5.69.2
- 5.69.1
- 5.69.0
- 5.68.1
- 5.68.0
- 5.67.3
- 5.67.2
- 5.67.1
- 5.67.0
- 5.66.2
- 5.66.1
- 5.66.0
- 5.65.2
- 5.65.1
- 5.65.0
- 5.64.4
- 5.64.3
- 5.64.2
- 5.64.1
- 5.64.0
- 5.63.3
- 5.63.2
- 5.63.1
- 5.63.0
- 5.62.1
- 5.62.0
- 5.61.4
- 5.61.3
- 5.61.2
- 5.61.1
- 5.61.0
- 5.60.0
- 5.59.4
- 5.59.3
- 5.59.2
- 5.59.1
- 5.59.0
- 5.58.1
- 5.58.0
- 5.57.3
- 5.57.2
- 5.57.1
- 5.57.0
- 5.56.2
- 5.56.1
- 5.56.0
Showing
13 changed files
with
334 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div af-fieldset=""> | ||
<div class="af-markup"> | ||
<div class="help"> | ||
{{:: ts('You can configure one or more Payment Processors for your CiviCRM installation. You must then assign an active Payment Processor to each Online Contribution Page and each paid Event.') }} | ||
<a href="https://docs.civicrm.org/user/en/latest/contributions/payment-processors/" target="_blank" class="crm-doc-link no-popup">{{:: ts('Learn more...') }}</a> | ||
</div> | ||
</div> | ||
<crm-search-display-table search-name="Administer_Payment_Processors" display-name="Administer_Payment_Processors_Table"></crm-search-display-table> | ||
</div> |
7 changes: 7 additions & 0 deletions
7
ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "search", | ||
"title": "Administer Payment Processors", | ||
"icon": "fa-list-alt", | ||
"server_route": "civicrm/admin/paymentProcessor", | ||
"permission": "administer payment processors" | ||
} |
208 changes: 208 additions & 0 deletions
208
ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,208 @@ | ||
<?php | ||
use CRM_CivicrmAdminUi_ExtensionUtil as E; | ||
|
||
return [ | ||
[ | ||
'name' => 'SavedSearch_Administer_Payment_Processors', | ||
'entity' => 'SavedSearch', | ||
'cleanup' => 'always', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'name' => 'Administer_Payment_Processors', | ||
'label' => E::ts('Administer Payment Processors'), | ||
'api_entity' => 'PaymentProcessor', | ||
'api_params' => [ | ||
'version' => 4, | ||
'select' => [ | ||
'id', | ||
'name', | ||
'title', | ||
'description', | ||
'payment_processor_type_id:label', | ||
'is_active', | ||
'is_default', | ||
'PaymentProcessor_EntityFinancialAccount_FinancialAccount_01.name', | ||
], | ||
'orderBy' => [], | ||
'where' => [ | ||
[ | ||
'is_test', | ||
'=', | ||
FALSE, | ||
], | ||
[ | ||
'domain_id:name', | ||
'=', | ||
'current_domain', | ||
], | ||
], | ||
'groupBy' => [], | ||
'join' => [ | ||
[ | ||
'FinancialAccount AS PaymentProcessor_EntityFinancialAccount_FinancialAccount_01', | ||
'LEFT', | ||
'EntityFinancialAccount', | ||
[ | ||
'id', | ||
'=', | ||
'PaymentProcessor_EntityFinancialAccount_FinancialAccount_01.entity_id', | ||
], | ||
[ | ||
'PaymentProcessor_EntityFinancialAccount_FinancialAccount_01.entity_table', | ||
'=', | ||
"'civicrm_payment_processor'", | ||
], | ||
], | ||
], | ||
'having' => [], | ||
], | ||
'expires_date' => NULL, | ||
'description' => NULL, | ||
], | ||
], | ||
], | ||
[ | ||
'name' => 'SavedSearch_Administer_Payment_Processors_SearchDisplay_Administer_Payment_Processors_Table', | ||
'entity' => 'SearchDisplay', | ||
'cleanup' => 'always', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'name' => 'Administer_Payment_Processors_Table', | ||
'label' => E::ts('Administer Payment Processors'), | ||
'saved_search_id.name' => 'Administer_Payment_Processors', | ||
'type' => 'table', | ||
'settings' => [ | ||
'actions' => FALSE, | ||
'limit' => 50, | ||
'classes' => [ | ||
'table', | ||
'table-striped', | ||
], | ||
'pager' => [], | ||
'placeholder' => 5, | ||
'sort' => [], | ||
'columns' => [ | ||
[ | ||
'type' => 'field', | ||
'key' => 'id', | ||
'dataType' => 'Integer', | ||
'label' => E::ts('ID'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'name', | ||
'dataType' => 'String', | ||
'label' => E::ts('Name'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'title', | ||
'dataType' => 'String', | ||
'label' => E::ts('Title'), | ||
'sortable' => TRUE, | ||
'editable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'description', | ||
'dataType' => 'String', | ||
'label' => E::ts('Description'), | ||
'sortable' => TRUE, | ||
'editable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'payment_processor_type_id:label', | ||
'dataType' => 'Integer', | ||
'label' => E::ts('Type'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'PaymentProcessor_EntityFinancialAccount_FinancialAccount_01.name', | ||
'dataType' => 'String', | ||
'label' => E::ts('Financial Account'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'is_active', | ||
'dataType' => 'Boolean', | ||
'label' => E::ts('Enabled'), | ||
'sortable' => TRUE, | ||
'editable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'is_default', | ||
'dataType' => 'Boolean', | ||
'label' => E::ts('Default'), | ||
'sortable' => TRUE, | ||
'rewrite' => ' ', | ||
'icons' => [ | ||
[ | ||
'icon' => 'fa-check-square-o', | ||
'side' => 'left', | ||
'if' => [ | ||
'is_default', | ||
'=', | ||
TRUE, | ||
], | ||
], | ||
], | ||
], | ||
[ | ||
'size' => 'btn-xs', | ||
'links' => [ | ||
[ | ||
'entity' => 'PaymentProcessor', | ||
'action' => 'update', | ||
'join' => '', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-pencil', | ||
'text' => E::ts('Edit'), | ||
'style' => 'default', | ||
'path' => '', | ||
'condition' => [], | ||
], | ||
[ | ||
'entity' => 'PaymentProcessor', | ||
'action' => 'delete', | ||
'join' => '', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-trash', | ||
'text' => E::ts('Delete'), | ||
'style' => 'danger', | ||
'path' => '', | ||
'condition' => [], | ||
], | ||
], | ||
'type' => 'buttons', | ||
'alignment' => 'text-right', | ||
], | ||
], | ||
'addButton' => [ | ||
'path' => 'civicrm/admin/paymentProcessor/edit?action=add&reset=1', | ||
'text' => E::ts('Add Payment Processor'), | ||
'icon' => 'fa-plus', | ||
], | ||
'cssRules' => [ | ||
[ | ||
'disabled', | ||
'is_active', | ||
'=', | ||
FALSE, | ||
], | ||
], | ||
], | ||
'acl_bypass' => FALSE, | ||
], | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters