You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
5.4 KiB
HTML
132 lines
5.4 KiB
HTML
<ion-header>
|
|
<ion-toolbar class="header-toolbar-new">
|
|
<nav-buttons></nav-buttons>
|
|
<ion-title [ngClass]=" direction === 'en' ? 'title' : 'title-ar'" color="light">{{headerTitle}}</ion-title>
|
|
</ion-toolbar>
|
|
</ion-header>
|
|
|
|
|
|
<ion-content>
|
|
<!-------------------------------Start New design ---------------------------------------->
|
|
<ion-grid>
|
|
<ion-row style="margin-top: 20px;margin-left: 12px;">
|
|
<ion-col>
|
|
<div size="10" [ngClass]=" direction === 'en' ? 'approvalTitle' : 'approvalTitle-ar'" >
|
|
{{'general, addAttach' | translate}}
|
|
<span *ngIf="isAttachmentGET_MENU === 'Y'">*</span>
|
|
<div *ngIf="selMenu.GetMenuEntriesList.REQ_ATTACHMENT_TIP" (click)="showToolTip(selMenu.GetMenuEntriesList.REQ_ATTACHMENT_TIP)" class='toolTip-inside'><ion-icon style='font-size: 20px' name='information-circle-outline'></ion-icon> </div>
|
|
</div>
|
|
</ion-col>
|
|
<ion-col style="padding-left: 7%;" size="2">
|
|
<div class="fileDiv">
|
|
<input end class="inputfile" style="margin-top: 10px;z-index: 99999;position: absolute;opacity: 0;" type="file" ng2FileSelect [uploader]="uploader"
|
|
(change)="onFileSelected($event)" (click)="onFileSelectedclick($event)" />
|
|
<label end for="file" class="attachLable">
|
|
<ion-icon style="font-size: 22px;" name="add"></ion-icon>
|
|
</label></div>
|
|
</ion-col>
|
|
</ion-row>
|
|
<ion-item class="attachmentDiv" *ngIf="attachListOver?.length == 0">
|
|
<ion-img style="height: 26px;width:100%;margin-top:12px" src="../assets/imgs/attach-icon.png"></ion-img>
|
|
<ion-label style="margin-top: -24px;" position="floating" class="boldTxtNav">{{ 'general, notAttch' | translate}}</ion-label>
|
|
</ion-item>
|
|
</ion-grid>
|
|
|
|
<ion-grid class="attachmentDiv" *ngIf="attachListOver?.length > 0">
|
|
<div *ngFor="let attachList of attachListOver ; let i = index">
|
|
<ion-row>
|
|
<ion-col size="1">
|
|
<ion-label style="color: black !important;">
|
|
{{attachList.AttachmentID +1 }} .
|
|
</ion-label>
|
|
</ion-col>
|
|
<ion-col style="text-align: left;" size="10">
|
|
<ion-label style="color: blue !important;" (click)="OpenAttachFiles(attachList.P_FILE_DATA,attachList.P_FILE_CONTENT_TYPE)">
|
|
{{attachList.P_FILE_NAME }}
|
|
</ion-label>
|
|
</ion-col>
|
|
<ion-col size="1">
|
|
<button float-end [disabled]="attachList.isSuccess" class="attachImgBtn removeLable"
|
|
(click)="removeFile(attachList)">
|
|
<ion-icon style="font-size:22px;margin-left:-7px;margin-top:-2px;" name="close"></ion-icon>
|
|
</button>
|
|
|
|
</ion-col>
|
|
</ion-row>
|
|
</div>
|
|
|
|
</ion-grid>
|
|
<ion-grid *ngIf="attachmentRes?.length > 0">
|
|
<div *ngFor="let attachRes of attachmentRes">
|
|
<ion-row>
|
|
<ion-col col-8>
|
|
<div> <img float-start class="attachImg" src="../assets/imgs/file.png">
|
|
</div>
|
|
<ion-label>
|
|
{{attachRes.FILE_NAME }} </ion-label>
|
|
|
|
</ion-col>
|
|
<ion-col col-4>
|
|
<button float-end class="attachImgBtn"
|
|
(click)="OpenAttachFiles(attachRes.FILE_DATA,attachRes.FILE_CONTENT_TYPE)">
|
|
<img class="attachImg" src="../assets/imgs/view.png">
|
|
</button>
|
|
<button float-end [disabled]="!isResubmitEIT" class="attachImgBtn" (click)="delelteFile(attachRes)"><img
|
|
class="attachImg" src="../assets/imgs/deletegray.png"></button>
|
|
</ion-col>
|
|
</ion-row>
|
|
</div>
|
|
|
|
</ion-grid>
|
|
|
|
|
|
<ion-grid class="">
|
|
<div [ngClass]=" direction === 'en' ? 'approvalTitle' : 'approvalTitle-ar'">{{'confirmAddEit, comment' | translate}}</div>
|
|
<ion-item class="submitNote" lines="none">
|
|
<ion-textarea type="text" [(ngModel)]="eitComments"></ion-textarea>
|
|
</ion-item>
|
|
</ion-grid>
|
|
|
|
<ion-grid class="approvalList">
|
|
<div [ngClass]=" direction === 'en' ? 'approvalTitle' : 'approvalTitle-ar'">{{'confirmAddEit, approverList' | translate}}</div>
|
|
<div class="noDataDiv" *ngIf="approversList?.length == 0">
|
|
<p>{{ 'general, empty' | translate}}</p>
|
|
</div>
|
|
<div style="background-color: white;border-radius: 32px;border: 1px solid #c8c4c4;" *ngIf="approversList?.length > 0">
|
|
<ion-list class="notification-list ">
|
|
<div class="timeline">
|
|
<ion-item style="padding-left: 4%;" *ngFor="let employee of approversList">
|
|
|
|
<div class="timeline-item" slot="start">
|
|
<div [class]="direction == 'en'? 'timeline-thumb-en timeline-icon': 'timeline-thumb-ar timeline-icon'">
|
|
<img *ngIf="employee.EMPLOYEE_IMAGE" class="empImge"
|
|
[src]="'data:image/png;base64,'+employee.EMPLOYEE_IMAGE">
|
|
<img *ngIf="employee.EMPLOYEE_IMAGE == null" class="empImge"
|
|
src="../assets/imgs/profile.png"> </div>
|
|
</div>
|
|
<ion-col>
|
|
<ion-label style="color:black !important ;font-weight: bold;padding-top: 0%;">
|
|
{{employee.APPROVER}}
|
|
</ion-label>
|
|
<ion-label style="color:black !important ;padding-top: 4%;">
|
|
{{employee.POSITION_TITLE}}
|
|
</ion-label>
|
|
|
|
</ion-col>
|
|
<div class="line"></div>
|
|
</ion-item>
|
|
</div>
|
|
</ion-list>
|
|
</div>
|
|
|
|
</ion-grid>
|
|
|
|
|
|
</ion-content>
|
|
|
|
<ion-footer>
|
|
<div class="centerDiv">
|
|
<ion-button class="confirmEitOkButton" [disabled] ="isAttachmentGET_MENU ==='Y' && attachListOver.length ===0" color="customnavy" ion-button (click)="openSubmitModal()">
|
|
{{ 'general, submit' | translate }}</ion-button>
|
|
</div>
|
|
</ion-footer> |