|
@@ -17,9 +17,45 @@
|
|
|
<button mat-icon-button [routerLink]="'/'">
|
|
<button mat-icon-button [routerLink]="'/'">
|
|
|
<mat-icon>home</mat-icon>
|
|
<mat-icon>home</mat-icon>
|
|
|
</button>
|
|
</button>
|
|
|
- {{title}}
|
|
|
|
|
|
|
+ <h2><i>{{title}}</i></h2>
|
|
|
|
|
+ <div class="right-toolbar-panel">
|
|
|
|
|
+ <ng-container *ngTemplateOutlet="toolbarItems"/>
|
|
|
|
|
+ </div>
|
|
|
</mat-toolbar>
|
|
</mat-toolbar>
|
|
|
|
|
|
|
|
|
|
+<mat-toolbar class="mobile-toolbar">
|
|
|
|
|
+ <ng-container *ngTemplateOutlet="toolbarItems"/>
|
|
|
|
|
+</mat-toolbar>
|
|
|
|
|
+
|
|
|
|
|
+<ng-template #toolbarItems>
|
|
|
|
|
+ @for (item of [
|
|
|
|
|
+ {icon:'home',link:'/',title:'Home',titleKey:'home'},
|
|
|
|
|
+ {icon:'notifications',link:'/',title:'Notifications',titleKey:'notifications'},
|
|
|
|
|
+ {icon:'account_circle',menu:userMenu,title:'User',titleKey:'user'}
|
|
|
|
|
+ ]; track $index) {
|
|
|
|
|
+ @switch (true) {
|
|
|
|
|
+ @case (item.link !== undefined) {
|
|
|
|
|
+ <div id="{{item.titleKey}}" class="toolbar-item" [routerLink]="item.link">
|
|
|
|
|
+ <mat-icon>{{item.icon}}</mat-icon>
|
|
|
|
|
+ <mat-label>{{(item.titleKey|tr:item.title)}}</mat-label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ }
|
|
|
|
|
+ @case (item.menu !== undefined) {
|
|
|
|
|
+ <div id="{{item.titleKey}}" class="toolbar-item" [matMenuTriggerFor]="item.menu">
|
|
|
|
|
+ <mat-icon>{{item.icon}}</mat-icon>
|
|
|
|
|
+ <mat-label>{{(item.titleKey|tr:item.title)}}</mat-label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ }
|
|
|
|
|
+ @default {
|
|
|
|
|
+ <div id="{{item.titleKey}}" class="toolbar-item">
|
|
|
|
|
+ <mat-icon>{{item.icon}}</mat-icon>
|
|
|
|
|
+ <mat-label>{{(item.titleKey|tr:item.title)}}</mat-label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+</ng-template>
|
|
|
|
|
+
|
|
|
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
|
<!-- * * * * * * * * * * * The content above * * * * * * * * * * * * -->
|
|
<!-- * * * * * * * * * * * The content above * * * * * * * * * * * * -->
|
|
|
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * * -->
|
|
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * * -->
|
|
@@ -27,7 +63,15 @@
|
|
|
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
|
<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * * -->
|
|
<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * * -->
|
|
|
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
|
|
-
|
|
|
|
|
-<div class="content">
|
|
|
|
|
- <router-outlet></router-outlet>
|
|
|
|
|
|
|
+<div class="container">
|
|
|
|
|
+ <div class="main">
|
|
|
|
|
+ <router-outlet></router-outlet>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+<!--menus-->
|
|
|
|
|
+<mat-menu #userMenu="matMenu">
|
|
|
|
|
+ <button mat-menu-item (click)="loginService.logout()" [disabled]="!loginService.user">
|
|
|
|
|
+ <mat-icon>logout</mat-icon>
|
|
|
|
|
+ {{'logout'|tr:'Logout'}}</button>
|
|
|
|
|
+</mat-menu>
|