mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
176 lines
12 KiB
HTML
176 lines
12 KiB
HTML
<div class="header-container">
|
|
|
|
<div class="main-tab pb-10 ion-toolbar header-color">
|
|
|
|
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
|
|
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="div-search">
|
|
<div (click)="openSearch()">
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-45" src='assets/images/icons-search.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-45" src='assets/images/theme/gov/icons-search.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-45" src='assets/images/theme/tribunal/icons-search.svg'></ion-icon>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <div class="div-logo align-center justify-center">
|
|
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
|
|
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/gabinetedigital_logo.png' alt='logo'>
|
|
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
|
|
</div> -->
|
|
<div class="div-logo align-center justify-center">
|
|
<div class="logo-icon">
|
|
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
|
|
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/governoangola_A.png' alt='logo'>
|
|
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
|
|
</div>
|
|
<div *ngIf="ThemeService.currentTheme == 'gov'" class="logo-description d-flex align-center justify-content-center">
|
|
<div class="logo-description-content">
|
|
<p class="logo-description-text">Presidente da República</p>
|
|
<div class="add-line"></div>
|
|
<p class="logo-description-text tp-5">GABINETE DIGITAL</p>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="ThemeService.currentTheme == 'default'" class="logo-description d-flex align-center justify-content-center">
|
|
<div class="logo-description-content">
|
|
<p class="logo-description-text color-white">Presidente da República</p>
|
|
<div class="add-line-white"></div>
|
|
<p class="logo-description-text tp-5 color-white">GABINETE DIGITAL</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div title="Perfil" class="div-profile cursor-pointer" (click)="openProfile()">
|
|
<div *ngIf="this.notificationLength > 0" class="icon-badge">{{notificationLength}}</div>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon" src='assets/images/icons-profile.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src='assets/images/theme/gov/icons-profile.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src='assets/images/theme/tribunal/icons-profile.svg'></ion-icon>
|
|
<!-- <ion-label class="profile-text">{{loggeduser.Profile}}</ion-label> -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="desktop mx-20">
|
|
<div class="d-flex justify-space-between align-center">
|
|
<div tab="events" class="div-logo height-fit-content">
|
|
<div class="logo-icon">
|
|
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
|
|
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/governoangola_A.png' alt='logo'>
|
|
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
|
|
</div>
|
|
<div class="logo-description d-flex align-center justify-content-center">
|
|
<div class="logo-description-content">
|
|
<p class="logo-description-text">Presidente da República</p>
|
|
<div class="add-line"></div>
|
|
<p class="logo-description-text">GABINETE DIGITAL</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex flex-1 pr-20 pl-50">
|
|
|
|
<div *ngIf="p.userPermission([permissionList.Agenda.access]) || p.userPermission([permissionList.Gabinete.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/events')"
|
|
[class.active]="locationPathname() == '/home/events'">
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-home-active-black.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-home-active-black.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-home-active-black.svg'></ion-icon>
|
|
|
|
<span>Início</span>
|
|
</div>
|
|
|
|
<!-- *ngIf="p.userPermission([permissionList.Agenda])" -->
|
|
|
|
<div *ngIf="p.userPermission([permissionList.Agenda.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/agenda')"
|
|
[class.active]="locationPathname() == '/home/agenda'">
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-agenda-inactive.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-agenda-inactive.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-agenda-inactive.svg'></ion-icon>
|
|
|
|
<span>Agenda</span>
|
|
</div>
|
|
|
|
<!-- *ngIf="p.userPermission([permissionList.Gabinete])" -->
|
|
|
|
<div *ngIf="p.userPermission([permissionList.Gabinete.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/gabinete-digital')"
|
|
[class.active]="locationPathname() == '/home/gabinete-digital'">
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-home-dk.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-home-dk.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-home-dk.svg'></ion-icon>
|
|
<span>Gabinete</span>
|
|
</div>
|
|
|
|
<!-- *ngIf="p.userPermission([permissionList.Actions])" -->
|
|
|
|
<div *ngIf="p.userPermission([permissionList.Actions.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/publications')"
|
|
[class.active]="locationPathname() == '/home/publications'">
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-a-es-inactive.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-a-es-inactive.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-a-es-inactive.svg'></ion-icon>
|
|
<span>Acções</span>
|
|
</div>
|
|
|
|
<!-- *ngIf="p.userPermission([permissionList.Chat])" -->
|
|
|
|
<div *ngIf="p.userPermission([permissionList.Chat.access])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/chat')"
|
|
[class.active]="locationPathname() == '/home/chat'">
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
|
|
<span>Chat</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="header-btns d-flex">
|
|
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="mr-20 d-flex align-center cursor-pointer">
|
|
<div style="padding-top: 5px;" (click)="openSearch();showSearch=true" *ngIf="!showSearch">
|
|
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'default' " class="font-45" src='assets/images/icons-search.svg'></ion-icon>
|
|
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'gov' " class="font-45" src='assets/images/theme/gov/icons-search.svg'></ion-icon>
|
|
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-45" src='assets/images/theme/tribunal/icons-search.svg'></ion-icon>
|
|
</div>
|
|
<button title="Fechar" class="btn-no-color" (click)="closeSearch();showSearch=false;searchSubject=''" *ngIf="showSearch">
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
|
</button>
|
|
|
|
<div *ngIf="showSearch">
|
|
<div class="d-flex search-input-container ml-10 justify-between" *ngIf="showSearch">
|
|
<div class="icon" (click)="basicSearch()">
|
|
<ion-icon class="icon-z" slot="end" name="search"></ion-icon>
|
|
</div>
|
|
<div class="input-text d-flex ion-align-items-center">
|
|
<ion-input (keyup.enter)="basicSearch()" [(ngModel)]='searchSubject' (ngModelChange)="dynamicSearch()"
|
|
class="search-input text-black" type="search" placeholder="Pesquisar"></ion-input>
|
|
</div>
|
|
<div class="icon" (click)="clearSearchInput()">
|
|
<ion-icon title="Limpar" *ngIf="ThemeService.currentTheme == 'default' "name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
|
|
<ion-icon title="Limpar" *ngIf="ThemeService.currentTheme == 'gov' " name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
|
<ion-icon title="Limpar" *ngIf="ThemeService.currentTheme == 'tribunal' " name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div title="Perfil" class="div-profile d-flex cursor-pointer" (click)="openProfile()">
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon" src='assets/images/icons-profile.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src='assets/images/theme/gov/icons-profile.svg'></ion-icon>
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src='assets/images/theme/tribunal/icons-profile.svg'></ion-icon>
|
|
|
|
<div class="profile-text">
|
|
<!-- <ion-label>{{profileLabel(loggeduser.Profile)}}</ion-label> -->
|
|
<div *ngIf="this.notificationLength > 0 && !production" class="icon-badge"
|
|
style="right: -18px;top: -9px;">
|
|
{{notificationLength}}</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="header-bottom-line"></div>
|
|
<!-- {{ RouteService.history | json }} -->
|
|
</div>
|