\Civi\Api4\Navigation::create()
->setCheckPermissions(FALSE)
->addValue('parent_id:name', 'Search')
- ->addValue('label', E::ts('Build Search for...'))
- ->addValue('name', 'build_search')
+ ->addValue('label', E::ts('Create Search...'))
+ ->addValue('name', 'create_search')
->addValue('url', 'civicrm/search')
->addValue('icon', 'crm-i fa-search-plus')
->addValue('has_separator', 2)
public function disable() {
\Civi\Api4\Navigation::delete()
->setCheckPermissions(FALSE)
- ->addWhere('name', '=', 'build_search')
+ ->addWhere('name', '=', 'create_search')
->addWhere('domain_id', '=', 'current_domain')
->execute();
}
# org.civicrm.search
-A core extension to build advanced searches.
+A core extension to create advanced searches.
## Usage
-Once enabled, navigate to **Search > Build Search for...** in the menu.
+Once enabled, navigate to **Search > Create Search...** in the menu.
.config(function($routeProvider) {
$routeProvider.when('/:entity', {
controller: 'searchRoute',
- template: '<div id="bootstrap-theme" class="crm-search"><crm-search-build entity="entity"></crm-search-build></div>',
+ template: '<div id="bootstrap-theme" class="crm-search"><crm-search entity="entity"></crm-search></div>',
reloadOnSearch: false
});
})
(function(angular, $, _) {
"use strict";
- angular.module('search').component('crmSearchBuild', {
+ angular.module('search').component('crmSearch', {
bindings: {
entity: '='
},
- templateUrl: '~/search/crmSearchBuild.html',
+ templateUrl: '~/search/crmSearch.html',
controller: function($scope, $element, $timeout, crmApi4, dialogService, searchMeta, formatForSelect2) {
var ts = $scope.ts = CRM.ts(),
ctrl = this;
<div id="bootstrap-theme" class="crm-search">
- <h1 crm-page-title>{{:: ts('Build Search for %1', {1: $ctrl.getEntity($ctrl.entity).title}) }}</h1>
+ <h1 crm-page-title>{{:: ts('Create Search for %1', {1: $ctrl.getEntity($ctrl.entity).title}) }}</h1>
<!--This warning will show if bootstrap is unavailable. Normally it will be hidden by the bootstrap .collapse class.-->
<div class="messages warning no-popup collapse">
</div>
<form>
- <div ng-include="'~/search/crmSearchBuild/build.html'"></div>
- <div ng-include="'~/search/crmSearchBuild/controls.html'"></div>
- <div ng-include="'~/search/crmSearchBuild/debug.html'" ng-if="$ctrl.debug"></div>
- <div ng-include="'~/search/crmSearchBuild/results.html'" class="crm-search-results"></div>
- <div ng-include="'~/search/crmSearchBuild/pager.html'"></div>
+ <div ng-include="'~/search/crmSearch/criteria.html'"></div>
+ <div ng-include="'~/search/crmSearch/controls.html'"></div>
+ <div ng-include="'~/search/crmSearch/debug.html'" ng-if="$ctrl.debug"></div>
+ <div ng-include="'~/search/crmSearch/results.html'" class="crm-search-results"></div>
+ <div ng-include="'~/search/crmSearch/pager.html'"></div>
</form>
</div>
ids: '<'
},
require: {
- search: '^crmSearchBuild'
+ search: '^crmSearch'
},
templateUrl: '~/search/crmSearchActions.html',
controller: function($scope, crmApi4, dialogService, searchMeta) {