All files / src/app/components/device-setups device-setups.component.html

100% Statements 23/23
100% Branches 0/0
100% Functions 0/0
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 194x   96x   96x     4x 4x 4x   4x 34x 71x 71x 3x   4x  
<h1 class="title">Device setups</h1>
 
<p-table [value]="setups" [paginator]="true" [rows]="10"
[rowsPerPageOptions]="[10, 20, 50]" [showCurrentPageReport]="true"
currentPageReportTemplate="{first} - {last} of {totalRecords} setups" [rowHover]="true">
<ng-template pTemplate="header">
    <tr>
        <th pSortableColumn="name">Setup id <p-sortIcon field="frequency"></p-sortIcon></th>
        <th pSortableColumn="device_id">Active <p-sortIcon field="code"></p-sortIcon></th>
    </tr>
</ng-template>
<ng-template pTemplate="body" let-setup>
    <tr [routerLink]="['/device-setups', setup.id]">
        <td >#{{ setup.id.slice(20) }}</td>
        <td>{{ setup.active }}</td>
    </tr>
</ng-template>
</p-table>