Projekt

Obecné

Profil

Stáhnout (2.42 KB) Statistiky
| Větev: | Tag: | Revize:
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 25e66baf hlavja
            <div class="col-sm-5 col-md-7 col-xl-9"><h3 class="unitName">{{ unit.unit.description}}</h3></div>
9 8ca45faf lmoucka@students.zcu.cz
            <div class="col-sm-7 col-md-5 col-xl-3 dashboard-unit-heading">
10 3dcfc4ab lmoucka@students.zcu.cz
              <button pButton type="button" label="Sensors graph" class="p-button-primary" icon="pi pi-chart-line" [id]="unit.unit.description"  [routerLink]="['/dashboard/unit', unit.unit.unitId]" [queryParams]="{unitDescription: unit.unit.description}"></button>
11 a02dd197 hlavja
              <div class="dashboard-button-separator"></div>
12 3dcfc4ab lmoucka@students.zcu.cz
              <button pButton type="button" class="p-button-warning" icon="pi pi-cog" [id]="'manipulation_'+unit.unit.unitId"  (click)="showItems($event, unit.unit); menu.toggle($event)"></button>
13 6bd78e65 hlavja
              <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 70b1424c hlavja
          <ng-container *ngFor="let sensor of unit.sensors; let i = index">
19
            <ng-container *ngIf="i > 0 && unit.sensors[i].sensorId.toString().slice(0, 5) !== unit.sensors[i-1].sensorId.toString().slice(0, 5)">
20
              <hr>
21
            </ng-container>
22 f3995ee4 hlavja
            <app-sensors *ngIf="sensor" [sensor]="sensor" [unit]="unit.unit" [phenomenons]="phenomenons" [loggedUser]="loggedUser" (emitSensorDeletion)="deleteSensor(unit.unit.unitId, $event)" [sensorTypes]="sensorTypes"></app-sensors>
23 b5525aef hlavja
          </ng-container>
24 bb7795cd hlavja
        </div>
25 b5525aef hlavja
      </p-accordionTab>
26
  </p-accordion>
27 675bbb8c hlavja
</div>
28
29 b5525aef hlavja
<app-unit-popup *ngIf="showEditUnitPopup" [(isVisible)]="showEditUnitPopup" [unit]="editedUnit"></app-unit-popup>
30
<app-sensor-insert-popup *ngIf="showInsertSensorPopup" [unit]="editedUnit" [(isVisible)]="showInsertSensorPopup" [phenomenons]="phenomenons" [sensorTypes]="sensorTypes" (emitNewSensor)="addSensors($event)"></app-sensor-insert-popup>
31
<app-position-insert-popup *ngIf="showInsertPositionPopup" [unitId]="editedUnit.unitId" [(isVisible)]="showInsertPositionPopup"></app-position-insert-popup>
32 ea0e5344 hlavja
33
34 3dcfc4ab lmoucka@students.zcu.cz
<p-confirmDialog key="positionDialog" [position]="position" [baseZIndex]="10000" rejectButtonStyleClass="p-button" [className]="'popup-form confirm'" [closable]="false"></p-confirmDialog>