bansho/app/components/table/table.html
Thibault Cohen 6b356134cc Begin to integrate angular-material (on table component)
Change-Id: I36bdb98bdc4a7406d33c64df4bd0de2d9d42ea56
2015-06-26 18:46:40 -04:00

23 lines
883 B
HTML

<table class="data-table" ng-controller="TableCtrl">
<thead>
<tr>
<th class="data-table__checkbox">
<md-checkbox ng-model="isCheckAll" ng-change="onCheckChange()"></md-checkbox>
</th>
<th ng-repeat="i in cellIndexes" class="data-table__{{cellsName[i]}}">
{{cellsText[i]}}
<i class="ico-up-dir"></i>
</th>
</tr>
</thead>
<tbody class="{{entry.child_class}}" ng-repeat="(groupByKey, groupByItems) in entries | groupBy:'host_name'">
<tr ng-repeat="entry in groupByItems | actionbarSelectFilter:actionbarFilters.activeFilter | filter:actionbarFilters.searchFilter | noRepeat:this | wrappableStyle:this">
<td>
<md-checkbox ng-model="entry.is_checked"></md-checkbox>
</td>
<td bansho-cell cell-name="{{cell}}" ng-repeat="cell in cellsName"></td>
</tr>
</tbody>
</table>