Commit | Line | Data |
---|---|---|
25523059 | 1 | <div id="bootstrap-theme" class="crm-search"> |
2894db84 | 2 | <h1 crm-page-title>{{:: ts('Search for %1', {1: $ctrl.entityTitle}) }}</h1> |
4b01551f | 3 | <div crm-ui-debug="$ctrl.savedSearch"></div> |
25523059 CW |
4 | |
5 | <!--This warning will show if bootstrap is unavailable. Normally it will be hidden by the bootstrap .collapse class.--> | |
6 | <div class="messages warning no-popup collapse"> | |
7 | <p> | |
8 | <i class="crm-i fa-exclamation-triangle" aria-hidden="true"></i> | |
9 | <strong>{{:: ts('Bootstrap theme not found.') }}</strong> | |
10 | </p> | |
11 | <p>{{:: ts('This screen may not work correctly without a bootstrap-based theme such as Shoreditch installed.') }}</p> | |
12 | </div> | |
13 | ||
14 | <form> | |
f9197b41 | 15 | <div class="navbar-form clearfix"> |
44402a2e CW |
16 | <label for="crm-saved-search-label">{{:: ts('Label:') }}</label> |
17 | <input id="crm-saved-search-label" class="form-control" ng-model="$ctrl.savedSearch.label" type="text" /> | |
18 | <label for="crm-search-main-entity">{{:: ts('Search for:') }}</label> | |
19 | <input id="crm-search-main-entity" class="form-control" ng-model="$ctrl.savedSearch.api_entity" crm-ui-select="::{allowClear: false, data: entities}" ng-disabled="$ctrl.savedSearch.id" /> | |
20 | <div class="btn-group btn-group-md pull-right"> | |
21 | <button type="submit" class="btn" ng-class="{'btn-primary': status === 'unsaved', 'btn-warning': status === 'saving', 'btn-success': status === 'saved'}" ng-disabled="status !== 'unsaved'" ng-click="$ctrl.save()"> | |
22 | <i class="crm-i" ng-class="{'fa-check': status !== 'saving', 'fa-spin fa-spinner': status === 'saving'}"></i> | |
23 | <span ng-if="status === 'saved'">{{ ts('Saved') }}</span> | |
24 | <span ng-if="status === 'unsaved'">{{ ts('Save') }}</span> | |
25 | <span ng-if="status === 'saving'">{{ ts('Saving...') }}</span> | |
f9197b41 CW |
26 | </button> |
27 | </div> | |
28 | </div> | |
29 | <div class="crm-flex-box"> | |
30 | <ul class="nav nav-pills nav-stacked" ng-include="'~/searchAdmin/tabs.html'"></ul> | |
31 | <div class="crm-flex-4" ng-switch="controls.tab"> | |
32 | <div ng-switch-when="compose"> | |
33 | <div ng-include="'~/searchAdmin/compose/criteria.html'"></div> | |
34 | <div ng-include="'~/searchAdmin/compose/controls.html'"></div> | |
35 | <div ng-include="'~/searchAdmin/compose/debug.html'" ng-if="$ctrl.debug"></div> | |
36 | <div ng-include="'~/searchAdmin/compose/results.html'" class="crm-search-results"></div> | |
37 | <div ng-include="'~/searchAdmin/compose/pager.html'"></div> | |
38 | </div> | |
39 | <div ng-switch-when="group"> | |
4b01551f | 40 | <fieldset ng-include="'~/searchAdmin/group.html'"></fieldset> |
f9197b41 CW |
41 | </div> |
42 | <div ng-switch-default> | |
44402a2e CW |
43 | <div ng-repeat="display in $ctrl.savedSearch.displays" ng-if="controls.tab === ('display_' + $index)"> |
44 | <div ng-include="'~/searchAdmin/display.html'"></div> | |
45 | </div> | |
f9197b41 CW |
46 | </div> |
47 | </div> | |
48 | </div> | |
25523059 CW |
49 | </form> |
50 | </div> |