Commit | Line | Data |
---|---|---|
44402a2e CW |
1 | <table> |
2 | <thead> | |
3 | <tr> | |
4 | <th class="crm-search-result-select" ng-if="$ctrl.settings.actions"> | |
5 | <input type="checkbox" ng-checked="$ctrl.allRowsSelected" ng-click="selectAllRows()" > | |
6 | </th> | |
7 | <th ng-repeat="col in $ctrl.settings.columns" ng-click="setOrderBy(col, $event)" title="{{:: ts('Click to sort results (shift-click to sort by multiple).') }}"> | |
8 | <i class="crm-i {{ getOrderBy(col) }}"></i> | |
9 | <span>{{ col.label }}</span> | |
10 | </th> | |
11 | </tr> | |
12 | </thead> | |
13 | <tbody> | |
14 | <tr ng-repeat="row in $ctrl.results"> | |
15 | <td ng-if="$ctrl.settings.actions"> | |
16 | <input type="checkbox" ng-checked="isRowSelected(row)" ng-click="selectRow(row)" ng-disabled="!(loading === false && !loadingAllRows && row.id)"> | |
17 | </td> | |
18 | <td ng-repeat="col in $ctrl.settings.columns"> | |
19 | {{ formatResult(row, col) }} | |
20 | </td> | |
21 | <td></td> | |
22 | </tr> | |
23 | </tbody> | |
24 | </table> | |
25 | <div class="text-center" ng-if="$ctrl.rowCount"> | |
26 | <ul uib-pagination | |
27 | class="pagination" | |
28 | boundary-links="true" | |
29 | total-items="$ctrl.rowCount" | |
30 | ng-model="$ctrl.page" | |
31 | ng-change="$ctrl.changePage()" | |
32 | items-per-page="$ctrl.limit" | |
33 | max-size="6" | |
34 | force-ellipses="true" | |
35 | previous-text="‹" | |
36 | next-text="›" | |
37 | first-text="«" | |
38 | last-text="»" | |
39 | ></ul> | |
40 | </div> |