2021-01-04 12:00:04 +01:00
|
|
|
<ion-header class="ion-no-border">
|
|
|
|
|
<ion-toolbar class="header-toolbar">
|
|
|
|
|
<div class="main-header">
|
2021-07-08 13:41:27 +01:00
|
|
|
<div class="title-content width-100">
|
2021-01-04 12:00:04 +01:00
|
|
|
<div class="back-icon">
|
2021-11-16 16:00:14 +01:00
|
|
|
<button class="btn-no-color cursor-pointer" (click)="close()">
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
2022-10-18 14:51:24 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " src="assets/images/theme/doneIt/icons-calendar-arrow-left.svg"></ion-icon>
|
2021-11-16 16:00:14 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src='assets/images/theme/gov/icons-calendar-arrow-left.svg'></ion-icon>
|
2021-04-20 00:28:16 +01:00
|
|
|
</button>
|
2021-01-04 12:00:04 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="div-title">
|
|
|
|
|
<ion-label class="title">Contactos</ion-label>
|
|
|
|
|
</div>
|
2021-11-16 16:00:14 +01:00
|
|
|
<app-btn-seguinte (click)="updateGroup()"></app-btn-seguinte>
|
2021-01-04 12:00:04 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-toolbar>
|
|
|
|
|
<ion-toolbar class="toolbar-search">
|
|
|
|
|
<div class="search">
|
2021-08-19 09:10:48 +01:00
|
|
|
<ion-searchbar debounce="500" (ionChange)="onChange($event)" placeholder="Pesquisar por contacto" ></ion-searchbar>
|
2021-01-04 12:00:04 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-toolbar>
|
|
|
|
|
</ion-header>
|
|
|
|
|
|
|
|
|
|
<ion-content>
|
|
|
|
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
|
|
|
|
<ion-refresher-content>
|
|
|
|
|
</ion-refresher-content>
|
|
|
|
|
</ion-refresher>
|
2021-08-19 09:10:48 +01:00
|
|
|
|
2021-01-20 16:58:04 +01:00
|
|
|
<div class="main-content">
|
2021-01-26 15:18:03 +01:00
|
|
|
<div *ngIf="members">
|
|
|
|
|
<ion-label class="members-label">Contactos selecção:</ion-label>
|
|
|
|
|
<ion-list class="members-list" *ngFor="let user of members">
|
2021-04-20 00:28:16 +01:00
|
|
|
<ion-item-sliding>
|
|
|
|
|
<ion-item lines="none" class="members-checkbox ion-no-border ion-no-padding">
|
2021-09-15 08:42:24 +01:00
|
|
|
<ion-checkbox checked disabled color="primary"></ion-checkbox>
|
2021-04-20 00:28:16 +01:00
|
|
|
<p>{{user.name}}</p>
|
|
|
|
|
<ion-icon class="{{user.status}}" name="ellipse"></ion-icon>
|
|
|
|
|
</ion-item>
|
|
|
|
|
<ion-item-options (click)="deleteMember(user)" class="members-options" side="end">
|
|
|
|
|
<ion-item-option color="danger">Apagar</ion-item-option>
|
|
|
|
|
</ion-item-options>
|
|
|
|
|
</ion-item-sliding>
|
2021-01-26 15:18:03 +01:00
|
|
|
</ion-list>
|
|
|
|
|
</div>
|
2021-01-26 11:03:00 +01:00
|
|
|
|
2021-01-20 16:58:04 +01:00
|
|
|
<ion-virtual-scroll [items]="users | filter:textSearch: 'name'" approxItemHeight="70px" [headerFn]="separateLetter">
|
2021-08-19 09:10:48 +01:00
|
|
|
|
2021-01-04 12:00:04 +01:00
|
|
|
<div class="item-divider" *virtualHeader="let header">
|
|
|
|
|
<ion-label>{{header}}</ion-label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *virtualItem="let user" class="item-checkbox">
|
2021-01-21 16:27:04 +01:00
|
|
|
<ion-checkbox (ionChange)="selectedContact(user)" color="primary"></ion-checkbox>
|
2021-01-20 16:58:04 +01:00
|
|
|
<p>{{user.name}}</p>
|
2021-03-29 16:01:58 +01:00
|
|
|
<ion-icon class="{{user.status}}" name="ellipse"></ion-icon>
|
2021-01-04 12:00:04 +01:00
|
|
|
</div>
|
2021-08-19 09:10:48 +01:00
|
|
|
|
2021-01-04 12:00:04 +01:00
|
|
|
</ion-virtual-scroll>
|
2021-08-19 09:10:48 +01:00
|
|
|
|
|
|
|
|
</div>
|
2021-01-04 12:00:04 +01:00
|
|
|
</ion-content>
|