2020-08-25 14:01:46 +01:00
|
|
|
<div class="header-toolbar">
|
|
|
|
|
<ion-header translucent="true" >
|
2020-08-18 23:32:12 +01:00
|
|
|
<ion-toolbar>
|
|
|
|
|
<ion-title>
|
|
|
|
|
<ion-item class="ion-text-header-top" lines="none">
|
|
|
|
|
<div class="div-logo">
|
|
|
|
|
<img src='assets/images/logo.png' alt='logo'>
|
|
|
|
|
</div>
|
|
|
|
|
<ion-label>
|
|
|
|
|
<h6 class="header-xsmall">Presidente da República</h6>
|
|
|
|
|
<h2 class="header-large">GABINETE DIGITAL</h2>
|
|
|
|
|
</ion-label>
|
|
|
|
|
</ion-item>
|
|
|
|
|
<ion-item class="ion-text-right" lines="none">
|
|
|
|
|
<ion-label class="ion-text-wrap">
|
|
|
|
|
<h3 class="header-medium"> {{greetting}} Sua Excelência <br />
|
2020-08-21 16:18:37 +01:00
|
|
|
Ministro Director do Gabinete do<br />
|
2020-08-18 23:32:12 +01:00
|
|
|
Presidente da República
|
|
|
|
|
</h3>
|
|
|
|
|
<p class="p-small">{{customDate}}</p>
|
|
|
|
|
</ion-label>
|
|
|
|
|
</ion-item>
|
|
|
|
|
</ion-title>
|
|
|
|
|
</ion-toolbar>
|
|
|
|
|
</ion-header>
|
2020-08-25 14:01:46 +01:00
|
|
|
</div>
|
2020-08-18 23:32:12 +01:00
|
|
|
|
|
|
|
|
<ion-content>
|
2020-08-21 18:26:03 +01:00
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
|
|
|
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
|
|
|
<ion-refresher-content
|
|
|
|
|
pullingIcon="chevron-down-circle-outline"
|
|
|
|
|
pullingText="deslize para actualizar"
|
|
|
|
|
refreshingSpinner="circles"
|
2020-08-25 10:37:41 +01:00
|
|
|
refreshingText="A actualizar...">
|
2020-08-21 18:26:03 +01:00
|
|
|
</ion-refresher-content>
|
|
|
|
|
</ion-refresher>
|
2020-08-18 23:32:12 +01:00
|
|
|
<!-- TABS -->
|
2020-08-25 14:01:46 +01:00
|
|
|
<ion-toolbar>
|
2020-08-21 18:26:03 +01:00
|
|
|
<ion-segment [(ngModel)]="segment" (ionChange)="onSegmentChange()">
|
|
|
|
|
<ion-segment-button value="Combinada">
|
2020-08-18 23:32:12 +01:00
|
|
|
Combinada
|
|
|
|
|
</ion-segment-button>
|
2020-08-21 18:26:03 +01:00
|
|
|
<ion-segment-button value="Oficial">
|
2020-08-18 23:32:12 +01:00
|
|
|
Oficial
|
|
|
|
|
</ion-segment-button>
|
2020-08-21 18:26:03 +01:00
|
|
|
<ion-segment-button value="Pessoal">
|
2020-08-18 23:32:12 +01:00
|
|
|
Pessoal
|
|
|
|
|
</ion-segment-button>
|
|
|
|
|
</ion-segment>
|
|
|
|
|
</ion-toolbar>
|
2020-08-21 18:26:03 +01:00
|
|
|
<!-- COMBINADA -->
|
2020-08-18 23:32:12 +01:00
|
|
|
<div [ngSwitch]="segment">
|
2020-08-21 18:26:03 +01:00
|
|
|
<ion-list *ngSwitchCase="'Combinada'" >
|
2020-08-21 16:18:37 +01:00
|
|
|
<ion-item-group>
|
2020-08-18 23:32:12 +01:00
|
|
|
<ion-item-sliding>
|
|
|
|
|
<ion-item lines="none"
|
2020-08-21 16:18:37 +01:00
|
|
|
*ngFor="let event of eventsList"
|
2020-08-18 23:32:12 +01:00
|
|
|
[routerLink]="['/home/events', event.EventId]">
|
2020-08-25 14:01:46 +01:00
|
|
|
<div class="div-item-{{event.CalendarName}}">
|
2020-08-18 23:32:12 +01:00
|
|
|
<div class="div-up">
|
|
|
|
|
<div class="div-icon">
|
|
|
|
|
<ion-icon slot="start" name="reader"></ion-icon>
|
|
|
|
|
</div>
|
2020-08-25 10:37:41 +01:00
|
|
|
<div class="div-content-{{event.CalendarName}}">
|
2020-08-18 23:32:12 +01:00
|
|
|
<h3>{{event.Subject}}</h3>
|
|
|
|
|
<p>{{event.StartDate}} - {{event.EndDate}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton">
|
|
|
|
|
<div class="div-botton-left">
|
|
|
|
|
<ion-icon class="ion-icon-location" slot="start" name="location"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton-middle">
|
|
|
|
|
<p class="item-list-small">{{event.Location}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton-right">
|
|
|
|
|
<ion-icon class="ion-icon-attach" slot="end" name="attach-outline"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
2020-08-21 18:26:03 +01:00
|
|
|
</ion-item-sliding>
|
2020-08-18 23:32:12 +01:00
|
|
|
</ion-item-group>
|
|
|
|
|
</ion-list>
|
2020-08-21 18:26:03 +01:00
|
|
|
<!-- OFICIAL -->
|
|
|
|
|
<ion-list *ngSwitchCase="'Oficial'">
|
|
|
|
|
<ion-item-group>
|
2020-08-18 23:32:12 +01:00
|
|
|
<ion-item-sliding>
|
2020-08-21 18:26:03 +01:00
|
|
|
<ion-item lines="none"
|
|
|
|
|
*ngFor="let event of officialeventsList"
|
|
|
|
|
[routerLink]="['/home/events', event.EventId]">
|
2020-08-25 14:01:46 +01:00
|
|
|
<div class="div-item-{{event.CalendarName}}">
|
2020-08-18 23:32:12 +01:00
|
|
|
<div class="div-up">
|
|
|
|
|
<div class="div-icon">
|
|
|
|
|
<ion-icon slot="start" name="reader"></ion-icon>
|
|
|
|
|
</div>
|
2020-08-25 10:37:41 +01:00
|
|
|
<div class="div-content-{{event.CalendarName}}">
|
2020-08-18 23:32:12 +01:00
|
|
|
<h3>{{event.Subject}}</h3>
|
|
|
|
|
<p>{{event.StartDate}} - {{event.EndDate}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton">
|
|
|
|
|
<div class="div-botton-left">
|
|
|
|
|
<ion-icon class="ion-icon-location" slot="start" name="location"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton-middle">
|
|
|
|
|
<p class="item-list-small">{{event.Location}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton-right">
|
2020-08-24 23:41:15 +01:00
|
|
|
<ion-icon *ngIf="event.HasAttachments" class="ion-icon-attach" slot="end" name="attach-outline"></ion-icon>
|
2020-08-18 23:32:12 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
|
|
|
|
</ion-item-sliding>
|
2020-08-21 18:26:03 +01:00
|
|
|
</ion-item-group>
|
2020-08-18 23:32:12 +01:00
|
|
|
</ion-list>
|
2020-08-21 18:26:03 +01:00
|
|
|
<!-- OFICIAL -->
|
|
|
|
|
<ion-list *ngSwitchCase="'Pessoal'">
|
|
|
|
|
<ion-item-group>
|
|
|
|
|
<ion-item-sliding>
|
|
|
|
|
<ion-item lines="none"
|
|
|
|
|
*ngFor="let event of personaleventsList"
|
|
|
|
|
[routerLink]="['/home/events', event.EventId]">
|
2020-08-25 14:01:46 +01:00
|
|
|
<div class="div-item-{{event.CalendarName}}">
|
2020-08-21 18:26:03 +01:00
|
|
|
<div class="div-up">
|
|
|
|
|
<div class="div-icon">
|
|
|
|
|
<ion-icon slot="start" name="reader"></ion-icon>
|
|
|
|
|
</div>
|
2020-08-25 10:37:41 +01:00
|
|
|
<div class="div-content-{{event.CalendarName}}">
|
2020-08-21 18:26:03 +01:00
|
|
|
<h3>{{event.Subject}}</h3>
|
|
|
|
|
<p>{{event.StartDate}} - {{event.EndDate}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton">
|
|
|
|
|
<div class="div-botton-left">
|
|
|
|
|
<ion-icon class="ion-icon-location" slot="start" name="location"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-botton-middle">
|
|
|
|
|
<p class="item-list-small">{{event.Location}}</p>
|
2020-08-18 23:32:12 +01:00
|
|
|
</div>
|
2020-08-21 18:26:03 +01:00
|
|
|
<div class="div-botton-right">
|
|
|
|
|
<ion-icon class="ion-icon-attach" slot="end" name="attach-outline"></ion-icon>
|
2020-08-18 23:32:12 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-08-21 18:26:03 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
|
|
|
|
</ion-item-sliding>
|
|
|
|
|
</ion-item-group>
|
|
|
|
|
</ion-list>
|
2020-08-18 23:32:12 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-content>
|
|
|
|
|
|