-
-
Notifications
You must be signed in to change notification settings - Fork 825
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 #31583 from colemanw/searchKitAddRow
SearchKit - Add 'whole row' and 'add row' editable features
- Loading branch information
Showing
25 changed files
with
654 additions
and
143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div af-fieldset=""> | ||
<crm-search-display-table search-name="Administer_Custom_Field_Options" display-name="Administer_Custom_Field_Options" filters="{option_group_id: routeParams.option_group_id}"></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,9 @@ | ||
<?php | ||
use CRM_CivicrmAdminUi_ExtensionUtil as E; | ||
|
||
return [ | ||
'type' => 'search', | ||
'title' => E::ts('Custom Field Options'), | ||
'icon' => 'fa-list-ol', | ||
'server_route' => 'civicrm/admin/custom/group/field/options', | ||
]; |
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 |
---|---|---|
|
@@ -26,11 +26,11 @@ | |
<civix> | ||
<namespace>CRM/CivicrmAdminUi</namespace> | ||
<angularModule>crmCivicrmAdminUi</angularModule> | ||
<format>23.02.1</format> | ||
<format>24.09.1</format> | ||
</civix> | ||
<mixins> | ||
<mixin>[email protected]</mixin> | ||
<mixin>[email protected]</mixin> | ||
</mixins> | ||
<upgrader>CRM_CivicrmAdminUi_Upgrader</upgrader> | ||
<upgrader>CiviMix\Schema\CivicrmAdminUi\AutomaticUpgrader</upgrader> | ||
</extension> |
155 changes: 155 additions & 0 deletions
155
ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Field_Options.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,155 @@ | ||
<?php | ||
use CRM_CivicrmAdminUi_ExtensionUtil as E; | ||
|
||
return [ | ||
[ | ||
'name' => 'SavedSearch_Administer_Custom_Field_Options', | ||
'entity' => 'SavedSearch', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'name' => 'Administer_Custom_Field_Options', | ||
'label' => E::ts('Administer Custom Field Options'), | ||
'api_entity' => 'OptionValue', | ||
'api_params' => [ | ||
'version' => 4, | ||
'select' => [ | ||
'label', | ||
'value', | ||
'description', | ||
'option_group_id:label', | ||
], | ||
'orderBy' => [], | ||
'where' => [], | ||
'groupBy' => [], | ||
'join' => [], | ||
'having' => [], | ||
], | ||
], | ||
'match' => ['name'], | ||
], | ||
], | ||
[ | ||
'name' => 'SavedSearch_Administer_Custom_Field_Options_SearchDisplay_Administer_Custom_Field_Options', | ||
'entity' => 'SearchDisplay', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'name' => 'Administer_Custom_Field_Options', | ||
'label' => E::ts('Administer Custom Field Options'), | ||
'saved_search_id.name' => 'Administer_Custom_Field_Options', | ||
'type' => 'table', | ||
'settings' => [ | ||
'description' => E::ts(''), | ||
'sort' => [], | ||
'limit' => 50, | ||
'pager' => [ | ||
'show_count' => TRUE, | ||
'expose_limit' => TRUE, | ||
'hide_single' => TRUE, | ||
], | ||
'placeholder' => 5, | ||
'cssRules' => [ | ||
[ | ||
'disabled', | ||
'is_active', | ||
'=', | ||
FALSE, | ||
], | ||
], | ||
'columns' => [ | ||
[ | ||
'type' => 'field', | ||
'key' => 'label', | ||
'dataType' => 'String', | ||
'label' => E::ts('Option Label'), | ||
'sortable' => TRUE, | ||
'editable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'value', | ||
'dataType' => 'String', | ||
'label' => E::ts('Option Value'), | ||
'sortable' => TRUE, | ||
], | ||
[ | ||
'type' => 'field', | ||
'key' => 'description', | ||
'dataType' => 'Text', | ||
'label' => E::ts('Option Description'), | ||
'sortable' => TRUE, | ||
'show_linebreaks' => FALSE, | ||
'editable' => TRUE, | ||
], | ||
[ | ||
'text' => '', | ||
'style' => 'default', | ||
'size' => 'btn-xs', | ||
'icon' => 'fa-bars', | ||
'links' => [ | ||
[ | ||
'entity' => 'OptionValue', | ||
'action' => 'update', | ||
'join' => '', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-pencil', | ||
'text' => E::ts('Edit'), | ||
'style' => 'default', | ||
'path' => '', | ||
'condition' => [], | ||
], | ||
[ | ||
'task' => 'enable', | ||
'entity' => 'OptionValue', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-toggle-on', | ||
'text' => E::ts('Enable'), | ||
'style' => 'default', | ||
'condition' => [], | ||
], | ||
[ | ||
'task' => 'disable', | ||
'entity' => 'OptionValue', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-toggle-off', | ||
'text' => E::ts('Disable'), | ||
'style' => 'default', | ||
'condition' => [], | ||
], | ||
[ | ||
'entity' => 'OptionValue', | ||
'action' => 'delete', | ||
'join' => '', | ||
'target' => 'crm-popup', | ||
'icon' => 'fa-trash', | ||
'text' => E::ts('Delete'), | ||
'style' => 'danger', | ||
'path' => '', | ||
'condition' => [], | ||
], | ||
], | ||
'type' => 'menu', | ||
'alignment' => 'text-right', | ||
], | ||
], | ||
'actions' => FALSE, | ||
'editableRow' => [ | ||
'create' => TRUE, | ||
'createLabel' => E::ts('Add Option'), | ||
], | ||
'classes' => ['table', 'table-striped'], | ||
'draggable' => 'weight', | ||
], | ||
], | ||
'match' => [ | ||
'saved_search_id', | ||
'name', | ||
], | ||
], | ||
], | ||
]; |
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
Oops, something went wrong.