mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
99 lines
4.3 KiB
HTML
99 lines
4.3 KiB
HTML
<div class="height-100 d-flex flex-column overflow-hidden width-100">
|
|
|
|
<div class="d-flex overflow-x-auto pa-10 width-100" style="background-color: #d9d9d9;" *ngIf="showAttachmentList">
|
|
|
|
<div *ngFor="let attachment of taskViewerAttachment; let i = index"
|
|
class="ion-no-margin ion-no-padding cursor-pointer attachment-list" class="pa-10 mx-10 card-text align-baseline" [ngClass]="{'selected-attachment': i === selectedIndex}"
|
|
>
|
|
<div class="attachment" >
|
|
|
|
<div class="attach-title-item tex-left d-flex ">
|
|
|
|
<div *ngIf="!isSelectedAttachmentIsDraft(attachment)" (click)="clickDocument(attachment, i )">
|
|
<button mat-icon-button aria-label="Example icon-button with a menu">
|
|
<ion-icon src="assets/icon/iconmonstr-eye-9.svg" class=" font-25-em "></ion-icon>
|
|
</button>
|
|
</div>
|
|
<div *ngIf="isSelectedAttachmentIsDraft(attachment)" (click)="clickDraft(i )">
|
|
<button mat-icon-button aria-label="Example icon-button with a menu">
|
|
<ion-icon src="assets/icon/iconmonstr-eye-9.svg" class=" font-25-em "></ion-icon>
|
|
</button>
|
|
</div>
|
|
|
|
<div>
|
|
<div class="subject" [ngClass]="{'add-ellipsis': i != selectedIndex}">{{ attachment.Assunto || "Sem assunto" }}</div>
|
|
<div class="user" >
|
|
{{ attachment.Sender }}
|
|
</div>
|
|
</div>
|
|
|
|
<span class="document-type ml-20" (click)="clickDraft(i)" *ngIf="isSelectedAttachmentIsDraft(attachment)" style="max-height: 33px;">Rascunho</span>
|
|
<br *ngIf="isSelectedAttachmentIsDraft(attachment)">
|
|
<div class="date d-flex justify-content-between" >
|
|
|
|
<div *ngIf="!isSelectedAttachmentIsDraft(attachment)">
|
|
<button (click)="doSomething($event);" mat-icon-button [matMenuTriggerFor]="menu" aria-label="Example icon-button with a menu">
|
|
<mat-icon>more_vert</mat-icon>
|
|
</button>
|
|
<mat-menu #menu="matMenu">
|
|
<button (click)="openExpedientActionsModal('0', attachment)" mat-menu-item>
|
|
<span>Efetuar Despacho</span>
|
|
</button>
|
|
<button (click)="openExpedientActionsModal('1', attachment)" mat-menu-item >
|
|
<span>Solicitar Parecer</span>
|
|
</button>
|
|
<button *ngIf="!p.userRole(['PR']) && !p.userPermission([p.permissionList.Gabinete.pr_tasks])" (click)="openExpedientActionsModal('1', attachment)" mat-menu-item >
|
|
<span>Pedido de Deferimento</span>
|
|
</button>
|
|
<button (click)="openBookMeetingModal(attachment)" mat-menu-item>
|
|
<span>Marcar Reunião</span>
|
|
</button>
|
|
<button *ngIf="p.userRole('PR')" mat-menu-item>
|
|
<span>Assinar</span>
|
|
</button>
|
|
</mat-menu>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex-1" [ngClass]="{'container-img': loading}">
|
|
<div [ngClass]="{'d-none': draft}" #iframeContainer class="height-100 flex-1 " [ngClass]="{'container-img': loading}" ></div>
|
|
|
|
<editor
|
|
*ngIf="taskViewerAttachment[selectedIndex].content"
|
|
class="container-img height-100 flex-1"
|
|
apiKey="wr5dk69kive0qr9ig6y5spqvlj3a0tsiwnzdsexnz241k69p"
|
|
[(ngModel)]="taskViewerAttachment[selectedIndex].content"
|
|
[init]="{
|
|
save_onsavecallback: 'onSaveContent',
|
|
language: 'pt_PT',
|
|
height: '100%',
|
|
menubar: false,
|
|
autosave_interval:'3s',
|
|
plugins: [
|
|
'advlist autolink autosave lists link image charmap print preview anchor',
|
|
'searchreplace visualblocks code fullscreen',
|
|
'insertdatetime media table paste code help wordcount print'
|
|
],
|
|
toolbar:
|
|
'undo redo | formatselect | bold italic backcolor | \
|
|
alignleft aligncenter alignright alignjustify | \
|
|
bullist numlist outdent indent | removeformat | print | save | help ' }"
|
|
|
|
initialValue='{{content}}'
|
|
[(ngModel)]="taskViewerAttachment[selectedIndex].content"
|
|
(onSaveContent)="somefunction()"
|
|
(ngModelChange)="onEditorContentChange()"
|
|
></editor>
|
|
</div>
|
|
|
|
</div>
|