Search ext: Add List display
[civicrm-core.git] / ext / search / ang / crmSearchDisplayTable / crmSearchDisplayTable.html
CommitLineData
493f83d4
CW
1<div class="form-inline" ng-if="$ctrl.settings.actions">
2 <crm-search-actions entity="$ctrl.apiEntity" ids="$ctrl.selectedRows" refresh="$ctrl.getResults()"></crm-search-actions>
3</div>
44402a2e
CW
4<table>
5 <thead>
6 <tr>
7 <th class="crm-search-result-select" ng-if="$ctrl.settings.actions">
8 <input type="checkbox" ng-checked="$ctrl.allRowsSelected" ng-click="selectAllRows()" >
9 </th>
590c0e3f 10 <th ng-repeat="col in $ctrl.columns" ng-click="setOrderBy(col, $event)" title="{{:: ts('Click to sort results (shift-click to sort by multiple).') }}">
44402a2e
CW
11 <i class="crm-i {{ getOrderBy(col) }}"></i>
12 <span>{{ col.label }}</span>
13 </th>
14 </tr>
15 </thead>
16 <tbody>
17 <tr ng-repeat="row in $ctrl.results">
18 <td ng-if="$ctrl.settings.actions">
493f83d4 19 <input type="checkbox" ng-checked="isRowSelected(row)" ng-click="selectRow(row)" ng-disabled="!(!loadingAllRows && row.id)">
44402a2e 20 </td>
03b55607 21 <td ng-repeat="col in $ctrl.columns" ng-bind-html="formatResult(row, col)" title="{{:: col.title }}" class="{{:: col.alignment }}">
44402a2e
CW
22 </td>
23 <td></td>
24 </tr>
25 </tbody>
26</table>
03b55607 27<div ng-include="'~/crmSearchDisplay/Pager.html'"></div>