1 |
c64ba540
|
hlavja
|
<app-nav-bar (emitNewUnit)="addUnit($event)" [sensorTypes]="sensorTypes"></app-nav-bar>
|
2 |
675bbb8c
|
hlavja
|
|
3 |
4b69e185
|
hlavja
|
<div class="container dashboard">
|
4 |
b5525aef
|
hlavja
|
<p-accordion>
|
5 |
|
|
<p-accordionTab *ngFor="let unit of units">
|
6 |
|
|
<p-header [className]="'dashboard-unit-wrapper'">
|
7 |
|
|
<div [className]="'row dashboard-unit'">
|
8 |
a02dd197
|
hlavja
|
<div class="col-md-6"><h3>{{ unit.unit.description}}</h3></div>
|
9 |
|
|
<div class="col-md-6 text-right">
|
10 |
b5525aef
|
hlavja
|
<p-button label="Sensors graph" icon="pi pi-chart-line" [routerLink]="['/dashboard/unit', unit.unit.unitId]"></p-button>
|
11 |
a02dd197
|
hlavja
|
<div class="dashboard-button-separator"></div>
|
12 |
6bd78e65
|
hlavja
|
<p-button icon="pi pi-cog" styleClass="p-button-warning" (click)="showItems($event, unit.unit); menu.toggle($event)"></p-button>
|
13 |
|
|
<p-menu #menu [popup]="true" [model]="items" [appendTo]="'body'" [baseZIndex]="50"></p-menu>
|
14 |
b5525aef
|
hlavja
|
</div>
|
15 |
bb7795cd
|
hlavja
|
</div>
|
16 |
b5525aef
|
hlavja
|
</p-header>
|
17 |
|
|
<div>
|
18 |
|
|
<ng-container *ngFor="let sensor of unit.sensors">
|
19 |
c64ba540
|
hlavja
|
<app-sensors *ngIf="sensor" [sensor]="sensor" [unitId]="unit.unit.unitId" [phenomenons]="phenomenons" [loggedUser]="loggedUser" (emitSensorDeletion)="deleteSensor(unit.unit.unitId, $event)" [sensorTypes]="sensorTypes"></app-sensors>
|
20 |
b5525aef
|
hlavja
|
</ng-container>
|
21 |
bb7795cd
|
hlavja
|
</div>
|
22 |
b5525aef
|
hlavja
|
</p-accordionTab>
|
23 |
|
|
</p-accordion>
|
24 |
675bbb8c
|
hlavja
|
</div>
|
25 |
|
|
|
26 |
b5525aef
|
hlavja
|
<app-unit-popup *ngIf="showEditUnitPopup" [(isVisible)]="showEditUnitPopup" [unit]="editedUnit"></app-unit-popup>
|
27 |
|
|
<app-sensor-insert-popup *ngIf="showInsertSensorPopup" [unit]="editedUnit" [(isVisible)]="showInsertSensorPopup" [phenomenons]="phenomenons" [sensorTypes]="sensorTypes" (emitNewSensor)="addSensors($event)"></app-sensor-insert-popup>
|
28 |
|
|
<app-position-insert-popup *ngIf="showInsertPositionPopup" [unitId]="editedUnit.unitId" [(isVisible)]="showInsertPositionPopup"></app-position-insert-popup>
|
29 |
ea0e5344
|
hlavja
|
|
30 |
|
|
|
31 |
|
|
<p-confirmDialog [style]="{width: '50vw'}" key="positionDialog" [position]="position" [baseZIndex]="10000" rejectButtonStyleClass="p-button-outlined"></p-confirmDialog>
|