Revize 278f83f2
Přidáno uživatelem Lukáš Moučka před téměř 4 roky(ů)
src/app/dashboard/components/dashboard.component.html | ||
---|---|---|
1 | 1 |
<app-nav-bar></app-nav-bar> |
2 | 2 | |
3 | 3 |
<div class="container dashboard"> |
4 |
<div class="row">
|
|
5 |
<div class="col-md-6"></div>
|
|
6 |
<div class="col-md-6 text-right">
|
|
7 |
<p-button label="Add unit" icon="pi pi-cog" (onClick)="insertUnitPopup()"></p-button>
|
|
8 |
</div>
|
|
9 |
</div>
|
|
4 |
<!-- <div class="row">-->
|
|
5 |
<!-- <div class="col-md-6"></div>-->
|
|
6 |
<!-- <div class="col-md-6 text-right">-->
|
|
7 |
<!-- <p-button label="Add unit" icon="pi pi-cog" (onClick)="insertUnitPopup()"></p-button>-->
|
|
8 |
<!-- </div>-->
|
|
9 |
<!-- </div>-->
|
|
10 | 10 |
<p-accordion> |
11 | 11 |
<p-accordionTab *ngFor="let unit of units"> |
12 | 12 |
<p-header [className]="'dashboard-unit-wrapper'"> |
13 | 13 |
<div [className]="'row dashboard-unit'"> |
14 |
<div class="col-md-4">{{ unit.unit.description}}</div>
|
|
15 |
<div class="col-md-8 text-right">
|
|
14 |
<div class="col-md-8"><h3>{{ unit.unit.description}}</h3></div>
|
|
15 |
<div class="col-md-4 text-right">
|
|
16 | 16 |
<p-button label="Sensors graph" icon="pi pi-chart-line" [routerLink]="['/dashboard/unit', unit.unit.unitId]"></p-button> |
17 |
<p-button label="Add sensor" icon="pi pi-cog" (onClick)="insertSensorPopup($event, unit.unit)"></p-button> |
|
18 |
<p-button label="Edit unit" icon="pi pi-cog" (onClick)="editUnitPopup($event, unit.unit)"></p-button> |
|
19 |
<p-button label="Delete unit" icon="pi pi-cog" (onClick)="deleteUnit($event, unit.unit)"></p-button> |
|
17 |
<p-splitButton *ngIf="loggedUser?.userInfo?.rightsId == 0 || loggedUser?.userInfo?.rightsId == 1" label="Add sensor" (onClick)="insertSensorPopup($event, unit.unit)" icon="pi pi-plus-circle" (onDropdownClick)="showItems($event, unit.unit)" [model]="items" styleClass="p-button-warning"></p-splitButton> |
|
20 | 18 |
</div> |
21 | 19 |
</div> |
22 | 20 |
</p-header> |
23 | 21 |
<div> |
24 |
<app-sensors *ngFor="let sensor of unit.sensors" [sensor]="sensor" [unitId]="unit.unit.unitId" [phenomenons]="phenomenons"></app-sensors> |
|
22 |
<app-sensors *ngFor="let sensor of unit.sensors" [sensor]="sensor" [unitId]="unit.unit.unitId" [phenomenons]="phenomenons" [loggedUser]="loggedUser"></app-sensors>
|
|
25 | 23 |
</div> |
26 | 24 |
</p-accordionTab> |
27 | 25 |
</p-accordion> |
28 | 26 |
</div> |
29 | 27 | |
30 | 28 |
<app-unit-popup *ngIf="editedUnit" [(isVisible)]="showEditUnitPopup" [unit]="editedUnit"></app-unit-popup> |
31 |
<app-unit-insert-popup [(isVisible)]="showInsertUnitPopup" [phenomenons]="phenomenons"></app-unit-insert-popup> |
|
32 | 29 |
<app-sensor-insert-popup *ngIf="editedUnit" [unit]="editedUnit" [(isVisible)]="showInsertSensorPopup" [phenomenons]="phenomenons"></app-sensor-insert-popup> |
33 | 30 | |
34 | 31 |
Také k dispozici: Unified diff
Re #8621 - Návrh modelu dashboardu
- úprava modelu dashboardu