-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in PseudoConstants for various fields in ACL entity
Add in Search Kit and form Builder display for ACLs Update function titles following discussion with coleman and update translation in managed entity
- Loading branch information
1 parent
3867a13
commit bab8f74
Showing
8 changed files
with
258 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div af-fieldset=""> | ||
<crm-search-display-table search-name="Manage_ACLs" display-name="Manage_ACLs_Table_1"></crm-search-display-table> | ||
</div> |
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,8 @@ | ||
{ | ||
"type": "search", | ||
"title": "Manage ACLs", | ||
"icon": "fa-list-alt", | ||
"server_route": "civicrm/acl", | ||
"permission": "administer CiviCRM", | ||
"navigation": null | ||
} |
179 changes: 179 additions & 0 deletions
179
ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.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,179 @@ | ||
<?php | ||
|
||
use CRM_CivicrmAdminUi_ExtensionUtil as E; | ||
|
||
return [ | ||
[ | ||
'name' => 'SavedSearch_Manage_ACLs', | ||
'entity' => 'SavedSearch', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'name' => 'Manage_ACLs', | ||
'label' => E::ts('Manage ACLs'), | ||
'form_values' => NULL, | ||
'mapping_id' => NULL, | ||
'search_custom_id' => NULL, | ||
'api_entity' => 'ACL', | ||
'api_params' => [ | ||
'version' => 4, | ||
'select' => [ | ||
'entity_id:label', | ||
'operation:label', | ||
'object_table:label', | ||
'object_id:label', | ||
'name', | ||
'is_active', | ||
'deny', | ||
'priority', | ||
], | ||
'orderBy' => [], | ||
'where' => [], | ||
'groupBy' => [], | ||
'join' => [], | ||
'having' => [], | ||
], | ||
'expires_date' => NULL, | ||
'description' => NULL, | ||
], | ||
'match' => [ | ||
'name', | ||
], | ||
], | ||
], | ||
[ | ||
'name' => 'SavedSearch_Manage_ACLs_SearchDisplay_Manage_ACLs_Table_1', | ||
'entity' => 'SearchDisplay', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'name' => 'Manage_ACLs_Table_1', | ||
'label' => E::ts('Manage ACLs'), | ||
'saved_search_id.name' => 'Manage_ACLs', | ||
'type' => 'table', | ||
'settings' => [ | ||
'description' => NULL, | ||
'sort' => [ | ||
[ | ||
'priority', | ||
'ASC', | ||
], | ||
], | ||
'limit' => 50, | ||
'pager' => [], | ||
'placeholder' => 5, | ||
'columns' => [ | ||
[ | ||
'type' => 'field', | ||
'key' => 'entity_id:label', | ||
'dataType' => 'Integer', | ||
'label' => E::ts('Role'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'operation:label', | ||
'dataType' => 'String', | ||
'label' => E::ts('Operation'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'object_table:label', | ||
'dataType' => 'String', | ||
'label' => E::ts('Type of Data'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'object_id:label', | ||
'dataType' => 'Integer', | ||
'label' => E::ts('Which Data'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'name', | ||
'dataType' => 'String', | ||
'label' => E::ts('Description'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'is_active', | ||
'dataType' => 'Boolean', | ||
'label' => E::ts('Enabled'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'deny', | ||
'dataType' => 'Boolean', | ||
'label' => E::ts('Mode'), | ||
'sortable' => TRUE, | ||
'rewrite' => '{if "[deny]" eq "1"}' . E::ts('Deny') . '{else}' . E::ts('Allow') . '{/if}', | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'priority', | ||
'dataType' => 'Integer', | ||
'label' => E::ts('Priority'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'text' => '', | ||
'style' => 'default', | ||
'size' => 'btn-xs', | ||
'icon' => 'fa-bars', | ||
'links' => [ | ||
[ | ||
'entity' => 'ACL', | ||
'action' => 'update', | ||
'join' => '', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-pencil', | ||
'text' => E::ts('Edit ACL'), | ||
'style' => 'default', | ||
'path' => '', | ||
'condition' => [], | ||
], | ||
[ | ||
'entity' => 'ACL', | ||
'action' => 'delete', | ||
'join' => '', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-trash', | ||
'text' => E::ts('Delete ACL'), | ||
'style' => 'danger', | ||
'path' => '', | ||
'condition' => [], | ||
], | ||
], | ||
'type' => 'menu', | ||
'alignment' => 'text-right', | ||
], | ||
], | ||
'actions' => TRUE, | ||
'classes' => [ | ||
'table', | ||
'table-striped', | ||
], | ||
'addButton' => [ | ||
'path' => 'civicrm/acl/edit?reset=1&action=add', | ||
'text' => E::ts('Add ACL'), | ||
'icon' => 'fa-plus', | ||
], | ||
], | ||
'acl_bypass' => FALSE, | ||
], | ||
'match' => [ | ||
'name', | ||
'saved_search_id', | ||
], | ||
], | ||
], | ||
]; |
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