Revize bb7795cd
Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)
src/app/dashboard/components/dashboard.component.html | ||
---|---|---|
1 | 1 |
<app-nav-bar></app-nav-bar> |
2 | 2 |
|
3 |
<div *ngFor="let unit of units"> |
|
3 |
<!--<div *ngFor="let unit of units">
|
|
4 | 4 |
<div class="row"> |
5 | 5 |
<div class="col"> |
6 | 6 |
<b>{{ unit.unit.description }}</b> |
... | ... | |
10 | 10 |
</div> |
11 | 11 |
</div> |
12 | 12 |
<div *ngFor="let sensor of unit.sensors"> |
13 |
<!--{{ sensor | json}}-->
|
|
13 |
<!–{{ sensor | json}}–>
|
|
14 | 14 |
<div class="row"> |
15 | 15 |
<div class="col"> |
16 | 16 |
{{ sensor.sensorName }} |
... | ... | |
23 | 23 |
</div> |
24 | 24 |
</div> |
25 | 25 |
</div> |
26 |
</div>--> |
|
27 |
<div class="container"> |
|
28 |
<p-accordion> |
|
29 |
<p-accordionTab *ngFor="let unit of units"> |
|
30 |
<p-header> |
|
31 |
<div class="flex-1 row align-items-center"> |
|
32 |
<div class="col-4">{{ unit.unit.description}}</div> |
|
33 |
<div class="col-4"></div> |
|
34 |
<div class="col-4"> |
|
35 |
<p-button icon="pi pi-cog" (onClick)="editUnit($event, unit)"></p-button> |
|
36 |
</div> |
|
37 |
</div> |
|
38 |
</p-header> |
|
39 |
<div> |
|
40 |
<app-sensors *ngFor="let sensor of unit.sensors" [sensor]="sensor" [unitId]="unit.unit.unitId"></app-sensors> |
|
41 |
</div> |
|
42 |
</p-accordionTab> |
|
43 |
</p-accordion> |
|
26 | 44 |
</div> |
27 | 45 |
|
46 |
<app-edit-popup [(isVisible)]="showUnitPopup" [unit]="editedUnit"></app-edit-popup> |
Také k dispozici: Unified diff
Re #8672 - Podpora - Lacha Martin
+ new popup for unit editation/creation