Files
doneit-web/src/app/pages/agenda/view-event/view-event.page.html
T

127 lines
6.6 KiB
HTML
Raw Normal View History

2021-12-15 10:03:28 +01:00
<ion-content class="container-wrapper main-content-l height-100 white ">
2021-09-15 16:20:59 +01:00
<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-09-15 09:48:23 +01:00
2021-07-27 09:34:41 +01:00
<div class="main-content d-flex height-100" [className]="isModal ? '_main-content d-flex height-100 ma-0 px-20 pt-30 pb-20 background-white' : 'main-content d-flex height-100'">
2021-03-26 14:26:52 +01:00
<div class="content d-flex flex-column width-100">
2021-04-30 19:18:06 +01:00
<div class="main-header d-flex">
2023-07-27 15:14:42 +01:00
<div class="title-content d-flex justify-between width-100 mb-10">
<div class="left d-flex">
2021-06-10 23:24:42 +01:00
<button class="btn-no-color d-flex align-center" (click)="goBack()">
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-10-25 13:21:48 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src='assets/images/theme/gov/icons-calendar-arrow-left.svg'></ion-icon>
2022-10-20 15:45:10 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " slot="end" src='assets/images/theme/{{ThemeService.currentTheme}}/icons-calendar-arrow-left.svg'></ion-icon>
2021-04-09 08:34:20 +01:00
</button>
2021-03-26 14:26:52 +01:00
</div>
2023-07-27 15:14:42 +01:00
<div class="middle d-flex align-center">
2023-07-06 12:18:15 +01:00
<p class="title" style="font-size: 21.1px"><span>{{loadedEvent.Subject}}</span></p>
2021-03-26 14:26:52 +01:00
</div>
2021-06-11 15:38:08 +01:00
<div class="menu-options d-flex">
2021-04-09 10:09:33 +01:00
<button class="btn-no-color" (click)="editEvent()">
2021-10-22 15:43:57 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="edit" slot="end" src="assets/images/icons-edit.svg" ></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="edit" slot="end" src="assets/images/theme/gov/icons-edit.svg" ></ion-icon>
2021-04-09 10:09:33 +01:00
</button>
2023-07-27 15:14:42 +01:00
<button class="btn-no-color d-flex" (click)="deleteYesOrNo()">
2021-04-09 10:09:33 +01:00
<ion-icon class="delete" name="trash-sharp"></ion-icon>
2021-09-15 09:48:23 +01:00
</button>
2021-03-26 14:26:52 +01:00
</div>
2021-01-29 09:45:27 +01:00
</div>
2021-03-26 14:26:52 +01:00
</div>
2021-04-06 14:14:26 +01:00
<div class="overflow-y-auto">
2021-08-16 16:46:57 +01:00
<div class="upper-content ml-45">
2021-09-15 09:48:23 +01:00
2021-04-06 14:14:26 +01:00
<div class="content-location">
2021-08-20 16:43:42 +01:00
<span class="date">{{loadedEvent.Location}}</span>
2023-07-07 12:03:03 +01:00
<div *ngIf="loadedEvent.Organizer" class="font-15-rem">
2022-07-12 15:22:36 +01:00
<div *ngIf="eventsService.isMyEvent(loadedEvent) == false || sesseionStora.user.Profile =='PR'">
2021-08-20 16:43:42 +01:00
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #99e47b;">{{loadedEvent.CalendarName}}</span>
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #958bfc;">{{loadedEvent.CalendarName}}</span>
</div>
2021-09-15 09:48:23 +01:00
2022-07-12 15:22:36 +01:00
<div *ngIf="eventsService.isMyEvent(loadedEvent) == true && sesseionStora.user.Profile !='PR'">
2021-08-20 16:43:42 +01:00
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #ffb703;">{{loadedEvent.CalendarName}}</span>
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #f05d5e;">{{loadedEvent.CalendarName}}</span>
</div>
</div>
2021-09-15 09:48:23 +01:00
2021-04-06 14:14:26 +01:00
</div>
2021-08-20 16:43:42 +01:00
2021-04-06 14:14:26 +01:00
<div class="content-details">
<ion-label>
<p>{{customDate}}</p>
<p *ngIf="toDateString(loadedEvent.StartDate) == toDateString(loadedEvent.EndDate)">das {{loadedEvent.StartDate | date: 'HH:mm'}} às {{loadedEvent.EndDate | date: 'HH:mm'}}</p>
<p *ngIf="toDateString(loadedEvent.StartDate) != toDateString(loadedEvent.EndDate)">{{loadedEvent.StartDate | date: 'd/M/yy' }} - {{ loadedEvent.EndDate | date: 'dd/M/yy'}} </p>
<p *ngIf="loadedEvent.EventRecurrence">
2021-12-11 16:27:41 +01:00
<span *ngIf="loadedEvent.EventRecurrence.Type == 0">Diário</span>
<span *ngIf="loadedEvent.EventRecurrence.Type == 1">Semanal</span>
<span *ngIf="loadedEvent.EventRecurrence.Type == 2">Mensal</span>
<span *ngIf="loadedEvent.EventRecurrence.Type == 3">Anual</span>
<span *ngIf="loadedEvent.EventRecurrence.Type == -1">(Não se repete)</span>
2021-12-11 16:27:41 +01:00
</p>
2021-04-06 14:14:26 +01:00
</ion-label>
</div>
2021-03-26 14:26:52 +01:00
</div>
2021-04-06 14:14:26 +01:00
<div class="line"></div>
<div class="middle-content">
<div *ngIf="loadedEvent.Attendees">
2023-07-07 12:03:03 +01:00
<h5 class="font-17-rem">Intervenientes</h5>
2021-04-08 09:14:28 +01:00
<ion-item class="ion-no-margin ion-no-padding">
<ion-label>
<div *ngFor="let attendee of loadedEvent.Attendees">
<p>{{attendee.Name}}</p>
</div>
</ion-label>
</ion-item>
</div>
<div *ngIf="loadedEvent.Body.Text">
2023-07-07 12:03:03 +01:00
<h5 class="font-17-rem">Detalhes</h5>
2021-04-08 09:14:28 +01:00
<ion-item lines="none" class="ion-no-margin ion-no-padding">
2023-02-01 13:22:22 +01:00
<pre class="width-100 text">{{ loadedEvent.Body.Text }} </pre>
2021-04-08 09:14:28 +01:00
</ion-item>
2021-06-10 15:38:08 +01:00
<div class="line"></div>
2021-04-08 09:14:28 +01:00
</div>
2021-04-06 14:14:26 +01:00
</div>
2021-09-15 09:48:23 +01:00
<div *ngIf="loadedEvent.Attachments" class="bottom-content width-100">
2023-07-07 12:03:03 +01:00
<h5 class="font-17-rem">Documentos Anexados</h5>
2021-05-03 14:37:45 +01:00
<ion-list class="width-100">
2021-08-25 13:04:15 +01:00
<ion-item *ngFor="let attach of loadedEvent.Attachments; let i = index" class="width-100" class="ion-no-margin ion-no-padding">
2021-10-08 19:29:21 +01:00
<ion-label class="width-100 d-flex " (click)="docIndex(i);LoadDocumentDetails()">
<p class="flex-grow-1" >
2021-05-03 14:37:45 +01:00
<span class="attach-title-item d-block">{{attach.SourceName}}</span>
<span class="span-left d-block">{{attach.Stakeholders}}</span>
</p>
2021-09-15 09:48:23 +01:00
2021-05-19 14:23:35 +01:00
<div class="d-flex pr-10">
2021-08-16 10:28:27 +01:00
<span class="span-right">{{ attach.CreateDate | date: 'dd-MM-yyyy HH:mm' }}</span>
2021-05-03 14:37:45 +01:00
</div>
2021-09-15 09:48:23 +01:00
2021-10-08 19:29:21 +01:00
<div (click)="docIndex(i);LoadDocumentDetails()" class="cursor-pointer" style="width: 35px; height: 41px;" autoHide="false">
2021-10-25 10:53:01 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-menu.svg" ></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-menu.svg" ></ion-icon>
2021-05-12 15:52:10 +01:00
</div>
2021-09-15 09:48:23 +01:00
2021-05-03 14:37:45 +01:00
</ion-label>
</ion-item>
2021-04-06 14:14:26 +01:00
</ion-list>
</div>
2021-09-15 09:48:23 +01:00
2021-01-29 09:45:27 +01:00
</div>
2021-04-06 14:14:26 +01:00
2021-01-29 09:45:27 +01:00
</div>
2021-06-10 15:38:08 +01:00
<div class="aside-right flex-column height-100">
2021-03-26 14:26:52 +01:00
<div class="buttons">
2021-04-01 15:06:05 +01:00
<button (click)="editEvent()" full class="btn-ok" shape="round" >Editar</button>
2021-03-26 14:26:52 +01:00
<div class="solid"></div>
<button (click)="deleteYesOrNo()" full class="btn-delete" shape="round" >Eliminar</button>
2021-03-26 14:26:52 +01:00
</div>
2021-01-29 09:45:27 +01:00
</div>
2021-09-15 09:48:23 +01:00
</div>
</ion-content>