Commit | Line | Data |
---|---|---|
9e827e8e | 1 | <fieldset ng-include="'~/crmSearchAdmin/crmSearchAdminDisplaySort.html'"></fieldset> |
03b55607 CW |
2 | <fieldset> |
3 | <div class="form-inline"> | |
4 | <label for="crm-search-admin-display-style">{{:: ts('Style:') }}</label> | |
5 | <select id="crm-search-admin-display-style" class="form-control" ng-model="$ctrl.display.settings.style" ng-change="$ctrl.display.settings.symbol = ''"> | |
7ff7ebc8 CW |
6 | <option value="ul">{{:: ts('Bullets') }}</option> |
7 | <option value="ol">{{:: ts('Numbers') }}</option> | |
03b55607 CW |
8 | </select> |
9 | <label for="crm-search-admin-display-symbol">{{:: ts('Symbol:') }}</label> | |
10 | <select id="crm-search-admin-display-symbol" class="form-control" ng-model="$ctrl.display.settings.symbol"> | |
11 | <option ng-repeat="symbol in $ctrl.symbols[$ctrl.display.settings.style]" value="{{ symbol.char }}"> | |
12 | {{ symbol.label }} | |
13 | </option> | |
14 | </select> | |
15 | <div class="form-inline"> | |
16 | </div> | |
17 | <label for="crm-search-admin-display-limit">{{:: ts('Results to display (0 for no limit):') }}</label> | |
18 | <input id="crm-search-admin-display-limit" type="number" min="0" step="1" class="form-control" ng-model="$ctrl.display.settings.limit"> | |
0e7a5135 CW |
19 | <div class="checkbox-inline form-control"> |
20 | <label><input type="checkbox" ng-model="$ctrl.display.settings.pager"> <span>{{:: ts('Use Pager') }}</span></label> | |
21 | </div> | |
03b55607 CW |
22 | </div> |
23 | </fieldset> | |
dbfe873c CW |
24 | <fieldset class="crm-search-admin-edit-columns-wrapper"> |
25 | <legend> | |
26 | {{:: ts('Fields') }} | |
27 | <div ng-include="'~/crmSearchAdmin/displays/common/addColMenu.html'" class="btn-group btn-group-xs"></div> | |
28 | </legend> | |
29 | <div class="crm-search-admin-edit-columns" ng-model="$ctrl.display.settings.columns" ui-sortable="$ctrl.parent.sortableOptions"> | |
30 | <fieldset ng-repeat="col in $ctrl.display.settings.columns" class="crm-draggable"> | |
e633ddec | 31 | <legend><i class="crm-i fa-arrows crm-search-move-icon"></i> {{ $ctrl.parent.getColLabel(col) }}</legend> |
dbfe873c CW |
32 | <div class="form-inline" title="{{ ts('Should this item display on its own line or inline with other items?') }}"> |
33 | <label><input type="checkbox" ng-model="col.break"> {{:: ts('Display on new line') }}</label> | |
34 | <button type="button" class="btn-xs pull-right" ng-click="$ctrl.parent.removeCol($index)" title="{{:: ts('Remove') }}"> | |
35 | <i class="crm-i fa-ban"></i> | |
36 | </button> | |
37 | </div> | |
38 | <div class="form-inline crm-search-admin-flex-row"> | |
39 | <label> | |
4577493c | 40 | <input type="checkbox" ng-checked="col.label" ng-click="col.label = col.label ? null : $ctrl.parent.getColLabel(col)" > |
dbfe873c CW |
41 | {{ col.label ? ts('Label:') : ts('Label') }} |
42 | </label> | |
2dbf2d72 | 43 | <input ng-if="col.label" class="form-control crm-flex-1" type="text" ng-model="col.label" ng-model-options="{updateOn: 'blur'}"> |
dbfe873c CW |
44 | <crm-search-admin-token-select ng-if="col.label" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams" model="col" field="label"></crm-search-admin-token-select> |
45 | </div> | |
46 | <div class="form-inline" ng-if="col.label"> | |
47 | <label style="visibility: hidden"><input type="checkbox" disabled></label><!--To indent by 1 checkbox-width--> | |
48 | <div class="checkbox"> | |
49 | <label><input type="checkbox" ng-model="col.forceLabel"> {{:: ts('Show label even when field is blank') }}</label> | |
0e7a5135 | 50 | </div> |
dbfe873c CW |
51 | </div> |
52 | <div ng-include="'~/crmSearchAdmin/displays/colType/' + col.type + '.html'"></div> | |
53 | </fieldset> | |
54 | </div> | |
55 | </fieldset> |