1 |
9d2007f1
|
lmoucka@students.zcu.cz
|
<div class="navbar-wrapper container-fluid">
|
2 |
|
|
<div class="container">
|
3 |
|
|
<nav class="navbar navbar-expand-lg navbar-light">
|
4 |
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
5 |
|
|
<span class="navbar-toggler-icon"></span>
|
6 |
|
|
</button>
|
7 |
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
8 |
|
|
<div class="navbar-collapse collapse">
|
9 |
|
|
<ul class="navbar-nav left">
|
10 |
|
|
<li class="nav-item">
|
11 |
|
|
<a class="nav-link" [routerLink]="['/dashboard']"><h2>Dashboard</h2></a>
|
12 |
|
|
</li>
|
13 |
a3ae1cab
|
hlavja
|
<li *ngIf="loggedUser?.userInfo?.rightsId == 0" class="nav-item">
|
14 |
278f83f2
|
Lukáš Moučka
|
<a class="nav-link" (click)="addUser()"><h2><i class="fas fa-user-plus"></i> Add user</h2></a>
|
15 |
|
|
</li>
|
16 |
|
|
<li *ngIf="loggedUser?.userInfo?.rightsId == 0 || loggedUser?.userInfo?.rightsId == 1" class="nav-item">
|
17 |
|
|
<a class="nav-link" (click)="insertUnitPopup()"><h2><i class="fas fa-folder-plus"></i> Add unit</h2></a>
|
18 |
9d2007f1
|
lmoucka@students.zcu.cz
|
</li>
|
19 |
|
|
</ul>
|
20 |
|
|
<a class="navbar-brand" href="/">
|
21 |
|
|
<h1>SensLog</h1>
|
22 |
278f83f2
|
Lukáš Moučka
|
<img class="navbar-logo" src="/assets/images/senslog-logo.svg" alt="Logo SensLog">
|
23 |
9d2007f1
|
lmoucka@students.zcu.cz
|
</a>
|
24 |
|
|
<ul class="navbar-nav right">
|
25 |
|
|
<li class="nav-item">
|
26 |
278f83f2
|
Lukáš Moučka
|
<h2 class="nav-link"><i class="fas fa-user"></i> <strong>{{loggedUser?.userInfo?.userName.toUpperCase()}}</strong></h2>
|
27 |
9d2007f1
|
lmoucka@students.zcu.cz
|
</li>
|
28 |
|
|
<li class="nav-item">
|
29 |
278f83f2
|
Lukáš Moučka
|
<a class='nav-link' [routerLink]="['/login']" (click)="logOut()"><h2><i class="fas fa-sign-out-alt"></i> Logout</h2></a>
|
30 |
9d2007f1
|
lmoucka@students.zcu.cz
|
</li>
|
31 |
|
|
</ul>
|
32 |
|
|
</div>
|
33 |
|
|
</div>
|
34 |
|
|
</nav>
|
35 |
464309d9
|
hlavja
|
</div>
|
36 |
9d2007f1
|
lmoucka@students.zcu.cz
|
</div>
|
37 |
b6006ff4
|
hlavja
|
|
38 |
|
|
<app-user-insert-popup *ngIf="showAddUserPopup" [(isVisible)]="showAddUserPopup"></app-user-insert-popup>
|
39 |
b5525aef
|
hlavja
|
<app-unit-insert-popup [(isVisible)]="showInsertUnitPopup" [phenomenons]="phenomenons" (emitNewUnit)="addUnit($event)"></app-unit-insert-popup>
|