| 1 | <fieldset ng-include="'~/crmSearchAdmin/crmSearchAdminDisplaySort.html'"></fieldset> |
| 2 | <fieldset> |
| 3 | <div class="form-inline"> |
| 4 | <label for="crm-search-admin-display-limit">{{:: ts('Results to display (0 for no limit):') }}</label> |
| 5 | <input id="crm-search-admin-display-limit" type="number" min="0" step="1" class="form-control" ng-model="$ctrl.display.settings.limit"> |
| 6 | <div class="checkbox-inline form-control"> |
| 7 | <label><input type="checkbox" ng-model="$ctrl.display.settings.pager"> <span>{{:: ts('Use Pager') }}</span></label> |
| 8 | </div> |
| 9 | <div class="checkbox-inline form-control"> |
| 10 | <label><input type="checkbox" ng-model="$ctrl.display.settings.actions"> <span>{{:: ts('Enable Actions') }}</span></label> |
| 11 | </div> |
| 12 | </div> |
| 13 | </fieldset> |
| 14 | <fieldset class="crm-search-admin-edit-columns-wrapper"> |
| 15 | <legend> |
| 16 | {{:: ts('Columns') }} |
| 17 | <div ng-include="'~/crmSearchAdmin/displays/common/addColMenu.html'" class="btn-group btn-group-xs"></div> |
| 18 | </legend> |
| 19 | <div class="crm-search-admin-edit-columns" ng-model="$ctrl.display.settings.columns" ui-sortable="$ctrl.parent.sortableOptions"> |
| 20 | <fieldset ng-repeat="col in $ctrl.display.settings.columns" class="crm-draggable"> |
| 21 | <legend><i class="crm-i fa-arrows crm-search-move-icon"></i> {{ $ctrl.parent.getColLabel(col) }}</legend> |
| 22 | <div class="form-inline crm-search-admin-flex-row"> |
| 23 | <label for="crm-search-admin-edit-col-{{ $index }}">{{:: ts('Header:') }}</label> |
| 24 | <input id="crm-search-admin-edit-col-{{ $index }}" class="form-control crm-flex-1" type="text" ng-model="col.label" > |
| 25 | <button type="button" class="btn-xs" ng-click="$ctrl.parent.removeCol($index)" title="{{:: ts('Remove') }}"> |
| 26 | <i class="crm-i fa-ban"></i> |
| 27 | </button> |
| 28 | </div> |
| 29 | <div class="form-inline"> |
| 30 | <label>{{:: ts('Alignment:') }}</label> |
| 31 | <select ng-model="col.alignment" class="form-control"> |
| 32 | <option value="">{{:: ts('Left') }}</option> |
| 33 | <option value="text-center">{{:: ts('Center') }}</option> |
| 34 | <option value="text-right">{{:: ts('Right') }}</option> |
| 35 | </select> |
| 36 | </div> |
| 37 | <div ng-include="'~/crmSearchAdmin/displays/colType/' + col.type + '.html'"></div> |
| 38 | </fieldset> |
| 39 | </div> |
| 40 | </fieldset> |