Files
doneit-web/src/app/shared/agenda/event-list/event-list.page.html
T

70 lines
4.0 KiB
HTML
Raw Normal View History

<ion-header class="ion-no-border">
2021-02-24 11:10:51 +01:00
<div class="header-content">
2021-07-26 15:34:21 +01:00
<div class="header-title d-flex align-center justify-between width-100">
2021-10-18 15:44:22 +01:00
<div class="flex-grow-1">Eventos para Aprovação</div>
2021-10-18 15:19:01 +01:00
<div (click)="refreshing()">
2022-02-25 09:38:14 +01:00
<button title="Atualizar" class="btn-no-color" >
2021-10-23 09:53:21 +01:00
<ion-icon slot="end" class="title-icon font-awesome" name="reload-circle"></ion-icon>
2021-07-26 15:28:06 +01:00
</button>
</div>
2021-02-24 11:10:51 +01:00
</div>
2023-06-13 20:37:23 +01:00
<ion-toolbar >
2023-06-22 13:09:11 +01:00
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryPR; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda</div>
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}}</div>
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}}</div>
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}}</div>
</ion-segment-button>
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryNoPr; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
2023-02-17 16:53:20 +01:00
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
2023-03-22 15:31:01 +01:00
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
2023-02-10 20:16:10 +01:00
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
2021-02-24 11:10:51 +01:00
</ion-segment-button>
</ion-segment>
</ion-toolbar>
</div>
</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>
2023-02-22 13:06:31 +01:00
<div class="main-content overflow-y-auto height-100" >
<!-- <div class="header-content width-100"> -->
2021-07-15 16:38:09 +01:00
<!-- </div> -->
2023-02-22 13:06:31 +01:00
<ion-list class="width-100">
2023-02-23 11:10:33 +01:00
<div class="width-100" >
2021-07-17 22:08:50 +01:00
<div
class="item ion-no-padding width-100 cursor-pointer"
2023-02-22 13:06:31 +01:00
*ngFor="let event of eventoaprovacaostore.get(segment)"
2021-07-17 22:08:50 +01:00
(click)="openApproveModal(event.serialNumber, event)"
>
2023-02-22 13:06:31 +01:00
<div class="event-{{color}}-{{event.workflowInstanceDataFields.Agenda}} width-100">
2021-07-17 22:08:50 +01:00
<div class="approve-event-time">
<p>{{event.workflowInstanceDataFields.StartDate | date: 'HH:mm'}}</p>
<p>{{event.workflowInstanceDataFields.EndDate | date: 'HH:mm'}}</p>
</div>
<div class="approve-event-detail">
2021-07-17 22:17:50 +01:00
<p *ngIf="toDateString(event.workflowInstanceDataFields.StartDate) != toDateString(event.workflowInstanceDataFields.EndDate)">{{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} - {{ event.workflowInstanceDataFields.EndDate | date: 'dd/M/yy'}} | {{event.workflowInstanceDataFields.Location}}</p>
<p *ngIf="toDateString(event.workflowInstanceDataFields.StartDate) == toDateString(event.workflowInstanceDataFields.EndDate)">{{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} | {{event.workflowInstanceDataFields.Location}}</p>
2021-07-17 22:08:50 +01:00
<h3>{{event.workflowInstanceDataFields.Subject}}</h3>
2022-06-03 16:53:50 +01:00
<div *ngIf="event.activityInstanceName">
<div class="label-event-type"> {{ event.activityInstanceName }} </div>
</div>
2021-07-17 22:08:50 +01:00
</div>
</div>
</div>
</div>
2023-02-22 13:06:31 +01:00
</ion-list>
</div>
2023-02-22 13:06:31 +01:00
2021-02-24 11:10:51 +01:00
</ion-content>