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">
|
2023-08-18 17:37:11 +01:00
|
|
|
<div *ngIf="publicationFolderService.FolderDetails[folderId]" class="div-title d-flex width-100 flex-grow-1 justify-content-between">
|
2021-12-15 15:07:26 +01:00
|
|
|
<div class="title">
|
2023-08-11 16:38:23 +01:00
|
|
|
<ion-label>{{publicationFolderService.FolderDetails[folderId].Description}}</ion-label>
|
2021-12-15 15:07:26 +01:00
|
|
|
</div>
|
|
|
|
|
|
2023-08-18 17:37:11 +01:00
|
|
|
<div class="actions-icon align-baseline">
|
2021-12-15 15:07:26 +01:00
|
|
|
<!-- <ion-icon (click)="AddPublication('1',item.ProcessId)" slot="end" src='assets/images/icons-add-photo.svg'></ion-icon> -->
|
2023-08-11 16:38:23 +01:00
|
|
|
<button *ngIf="p.userPermission([p.permissionList.Actions.editPost])" class="btn-no-color" (click)="openEditPublication(publicationFolderService.FolderDetails[folderId].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>
|
2023-08-11 16:38:23 +01:00
|
|
|
<button *ngIf="p.userPermission([p.permissionList.Actions.deletePost])" class="btn-no-color" (click)="deletePublication(publicationFolderService.FolderDetails[folderId].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>
|
2023-08-11 16:38:23 +01:00
|
|
|
<div class="div-body width-100" *ngIf="publicationFolderService.FolderDetails[folderId]?.DateBegin != null">
|
2023-08-14 11:00:35 +01:00
|
|
|
<p class="item-content-date">{{ publicationFolderService.FolderDetails[folderId].DateBegin | date: 'dd-MM-yyyy 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>
|
2023-08-11 16:38:23 +01:00
|
|
|
<div class="main-container px-20" *ngIf="publicationFolderService.FolderDetails[folderId]">
|
2023-08-18 17:37:11 +01:00
|
|
|
<p class="item-content-detail">{{publicationFolderService.FolderDetails[folderId].Detail}}</p>
|
|
|
|
|
|
2023-08-11 16:38:23 +01:00
|
|
|
<ion-card *ngFor="let publication of publicationFolderService.publicationList[folderId] let i = index"
|
2023-08-24 22:15:56 +01:00
|
|
|
(click)="viewPublicationDetail(publication.DocumentId, publication.ProcessId)">
|
2022-02-18 15:28:30 +01:00
|
|
|
<ion-card-content>
|
|
|
|
|
<div class="post-img">
|
|
|
|
|
<img [lazyLoad]="publication.FileBase64">
|
|
|
|
|
</div>
|
2023-08-28 17:06:16 +01:00
|
|
|
<div class="post-content">
|
2022-02-18 15:28:30 +01:00
|
|
|
<div class="post-title-time">
|
|
|
|
|
<div class="post-title">
|
|
|
|
|
<ion-label>{{publication.Title}}</ion-label>
|
|
|
|
|
</div>
|
2023-08-14 10:34:15 +01:00
|
|
|
<div class="post-data">{{publication.DatePublication | date: 'dd-MM-yyyy HH:mm'}}</div>
|
2022-02-18 15:28:30 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="post-description">
|
2023-02-27 09:31:10 +01:00
|
|
|
<pre class="text">{{publication.Message}}</pre>
|
2022-02-18 15:28:30 +01:00
|
|
|
</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"
|
2023-08-11 16:38:23 +01:00
|
|
|
*ngFor="let publication of publicationFolderService.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>
|
2023-08-14 10:34:15 +01:00
|
|
|
<div class="post-data">{{publication.DatePublication | date: 'dd-MM-yyyy 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>
|
2023-08-11 16:38:23 +01:00
|
|
|
<div class="center height-100" *ngIf="!publicationFolderService.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 -->
|
2023-08-11 16:38:23 +01:00
|
|
|
<ion-fab *ngIf="p.userPermission([p.permissionList.Actions.create]) && publicationFolderService.FolderDetails[folderId]" vertical="bottom" horizontal="end">
|
|
|
|
|
<ion-fab-button title="Nova Publicação" (click)="AddPublication('2',publicationFolderService.FolderDetails[folderId].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>
|