2021-03-12 14:38:55 +01:00
|
|
|
<ion-header class="ion-no-border">
|
|
|
|
|
<div class="main-header">
|
2021-12-15 15:07:26 +01:00
|
|
|
<div class="title-content">
|
|
|
|
|
<div *ngIf="item" class="div-title width-100 flex-grow-1">
|
|
|
|
|
<div class="title">
|
|
|
|
|
<ion-label>{{item.Description}}</ion-label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="actions-icon">
|
|
|
|
|
<!-- <ion-icon (click)="AddPublication('1',item.ProcessId)" slot="end" src='assets/images/icons-add-photo.svg'></ion-icon> -->
|
2022-03-30 16:32:56 +01:00
|
|
|
<button *ngIf="p.userPermission([p.permissionList.Actions.editPost])" class="btn-no-color" (click)="openEditPublication(item.ProcessId)">
|
2021-12-15 15:07:26 +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>
|
|
|
|
|
</button>
|
2022-03-30 16:32:56 +01:00
|
|
|
<button *ngIf="p.userPermission([p.permissionList.Actions.deletePost])" class="btn-no-color" (click)="deletePublication(item.ProcessId)">
|
2021-12-15 15:07:26 +01:00
|
|
|
<ion-icon class="delete" src='assets/images/theme/gov/icons-delete.svg'></ion-icon>
|
|
|
|
|
</button>
|
2021-12-16 16:16:44 +01:00
|
|
|
<button class="btn-no-color cursor-pointer" (click)="doRefresh($event)">
|
|
|
|
|
<ion-icon class="title-icon font-awesome" name="reload-circle"></ion-icon>
|
|
|
|
|
</button >
|
2021-12-15 15:07:26 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="div-body width-100">
|
2021-03-12 14:38:55 +01:00
|
|
|
<p class="item-content-detail">{{item.Detail}}</p>
|
2021-07-14 16:26:51 +01:00
|
|
|
<p class="item-content-date">{{ item.DateBegin | date: 'dd-MM-yy | HH:mm'}}</p>
|
2021-03-12 14:38:55 +01:00
|
|
|
</div>
|
2021-12-15 15:07:26 +01:00
|
|
|
|
2021-03-12 14:38:55 +01:00
|
|
|
</div>
|
|
|
|
|
</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>
|
|
|
|
|
<div class="main-container px-20">
|
2022-04-14 14:57:04 +01:00
|
|
|
<ion-card *ngFor="let publication of publicationList let i = index"
|
|
|
|
|
(click)="viewPublicationDetail(publication.DocumentId)">
|
2022-02-18 15:28:30 +01:00
|
|
|
<ion-card-content>
|
|
|
|
|
<div class="post-img">
|
|
|
|
|
<img [lazyLoad]="publication.FileBase64">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="post-content px-20">
|
|
|
|
|
<div class="post-title-time">
|
|
|
|
|
<div class="post-title">
|
|
|
|
|
<ion-label>{{publication.Title}}</ion-label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="post-data">{{publication.DatePublication | date: 'dd-MM-yy | HH:mm'}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="post-description">
|
|
|
|
|
<p>{{publication.Message}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-card-content>
|
|
|
|
|
</ion-card>
|
|
|
|
|
<!-- <ion-list>
|
2021-11-18 15:43:41 +01:00
|
|
|
<div class="post-item d-md-block mb-10 cursor-pointer"
|
2022-02-16 10:59:45 +01:00
|
|
|
*ngFor="let publication of publicationList"
|
2021-03-15 10:12:14 +01:00
|
|
|
(click)="viewPublicationDetail(publication.DocumentId)">
|
2021-03-27 09:21:40 +01:00
|
|
|
<div *ngIf="publication.FileBase64.length > 30" class="mb-10 post-img width-md-100">
|
2021-03-12 14:38:55 +01:00
|
|
|
<img src="{{publication.FileBase64}}" alt="image">
|
|
|
|
|
</div>
|
2021-03-12 15:31:11 +01:00
|
|
|
<div *ngIf="publication.FileBase64.length < 30" class="mb-10 post-img">
|
2021-03-12 14:38:55 +01:00
|
|
|
<img src="/assets/icon/icon-no-image.svg" alt="image">
|
|
|
|
|
</div>
|
2021-03-15 16:47:16 +01:00
|
|
|
<div class="post-content px-20 width-md-100 ">
|
2021-03-12 14:38:55 +01:00
|
|
|
<div class="post-title-time">
|
|
|
|
|
<div class="post-title">
|
|
|
|
|
<ion-label>{{publication.Title}}</ion-label>
|
|
|
|
|
</div>
|
2021-07-14 16:26:51 +01:00
|
|
|
<div class="post-data">{{publication.DatePublication | date: 'dd-MM-yy | HH:mm'}}</div>
|
2021-03-12 14:38:55 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="post-description">
|
|
|
|
|
<p>{{publication.Message}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-12-16 15:26:55 +01:00
|
|
|
|
2021-03-12 14:38:55 +01:00
|
|
|
</div>
|
2021-04-08 09:31:03 +01:00
|
|
|
<div class="center height-100" *ngIf="!publicationList">
|
2021-04-08 09:14:28 +01:00
|
|
|
<p>{{error}}</p>
|
|
|
|
|
</div>
|
2022-02-18 15:28:30 +01:00
|
|
|
</ion-list> -->
|
2021-12-15 15:07:26 +01:00
|
|
|
</div>
|
2021-12-16 15:26:55 +01:00
|
|
|
<!-- fab placed to the bottom end -->
|
2022-03-30 16:32:56 +01:00
|
|
|
<ion-fab *ngIf="p.userPermission([p.permissionList.Actions.create])" vertical="bottom" horizontal="end">
|
2022-01-19 15:01:36 +01:00
|
|
|
<ion-fab-button title="Nova Publicação" (click)="AddPublication('2',item.ProcessId)">
|
2021-12-16 15:26:55 +01:00
|
|
|
<ion-icon name="add"></ion-icon>
|
|
|
|
|
</ion-fab-button>
|
|
|
|
|
</ion-fab>
|
2021-03-12 14:38:55 +01:00
|
|
|
</ion-content>
|