2018-04-16 08:28:39 +00:00
|
|
|
<h1>Targets</h1>
|
2018-04-17 09:40:42 +00:00
|
|
|
|
2018-04-19 10:26:39 +00:00
|
|
|
<p-table [value]="infras" selectionMode="single" (onRowSelect)="onRowSelect($event)" [resizableColumns]="true" >
|
|
|
|
<ng-template pTemplate="header">
|
2018-04-16 08:28:39 +00:00
|
|
|
<tr>
|
2018-04-17 12:16:32 +00:00
|
|
|
<th style="width: 4em">No.</th>
|
|
|
|
<th style="width: 8em">Status</th>
|
|
|
|
<th style="width: 8em">Type</th>
|
2018-04-16 08:28:39 +00:00
|
|
|
<th>Name</th>
|
2018-04-17 12:16:32 +00:00
|
|
|
<th style="width: 15em">Sensors</th>
|
|
|
|
<th style="width: 8em">Created at</th>
|
|
|
|
<th style="width: 10em"></th>
|
2018-04-16 08:28:39 +00:00
|
|
|
</tr>
|
|
|
|
</ng-template>
|
2018-04-19 10:26:39 +00:00
|
|
|
<ng-template pTemplate="body" let-infra let-rowIndex="rowIndex">
|
|
|
|
<tr [pSelectableRow]="infra">
|
2018-04-30 08:12:31 +00:00
|
|
|
<td>{{rowIndex + 1}}</td>
|
2018-04-16 08:28:39 +00:00
|
|
|
<td>??</td>
|
|
|
|
<td>{{infra.infraType.name}}</td>
|
|
|
|
<td>{{infra.target.displayName}}</td>
|
2018-04-30 08:12:31 +00:00
|
|
|
<td>{{infra.target.sensorCount}}</td>
|
2018-04-16 08:28:39 +00:00
|
|
|
<td>{{infra.createDate | date: 'dd.MM.yyyy'}}</td>
|
|
|
|
<td>
|
2018-04-30 08:12:31 +00:00
|
|
|
<button type="button" label="Add Sensor" icon="ui-icon-add" pButton class="ui-s-button" (click)="onAddSensor(infra.target)"></button>
|
2018-04-16 08:28:39 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
2018-04-16 10:45:10 +00:00
|
|
|
</p-table>
|
2018-04-30 08:12:31 +00:00
|
|
|
<p-paginator [rows]="pageSize" [totalRecords]="totalLength" (onPageChange)="onPaging($event)"></p-paginator>
|
|
|
|
|
2018-04-16 10:45:10 +00:00
|
|
|
|
|
|
|
<p-dialog [modal]="true" [width]="800" [(visible)]="sensorSettingDisplay" [showHeader]="false" [closeOnEscape]="false">
|
|
|
|
<of-sensor-setting [visible]="sensorSettingDisplay" [preTarget]="target" (close)="onSensorSettingClose()"></of-sensor-setting>
|
2018-04-18 09:28:54 +00:00
|
|
|
</p-dialog>
|