Merge pull request #21069 from colemanw/searchKitAdminResultsTable
[civicrm-core.git] / ext / search_kit / ang / crmSearchDisplayTable / crmSearchDisplayTable.html
1 <div class="crm-search-display crm-search-display-table">
2 <div class="form-inline">
3 <div class="btn-group" ng-include="'~/crmSearchDisplay/SearchButton.html'" ng-if="$ctrl.settings.button"></div>
4 <crm-search-tasks ng-if="$ctrl.settings.actions" entity="$ctrl.apiEntity" ids="$ctrl.selectedRows" refresh="$ctrl.getResults()"></crm-search-tasks>
5 </div>
6 <table>
7 <thead>
8 <tr>
9 <th class="crm-search-result-select" ng-if=":: $ctrl.settings.actions">
10 <input type="checkbox" ng-disabled="$ctrl.loading || !$ctrl.results.length" ng-checked="$ctrl.allRowsSelected" ng-click="$ctrl.selectAllRows()" >
11 </th>
12 <th ng-repeat="col in $ctrl.settings.columns" ng-click="$ctrl.setSort(col, $event)" title="{{:: ts('Click to sort results (shift-click to sort by multiple).') }}">
13 <i ng-if="col.type === 'field'" class="crm-i {{ $ctrl.getSort(col) }}"></i>
14 <span>{{ col.label }}</span>
15 </th>
16 </tr>
17 </thead>
18 <tbody ng-include="'~/crmSearchDisplayTable/crmSearchDisplayTableBody.html'"></tbody>
19 </table>
20 <div ng-include="'~/crmSearchDisplay/Pager.html'"></div>
21 </div>