fixed basic details issue
parent
23eb5652e8
commit
ded927bf6a
@ -1,3 +1,128 @@
|
|||||||
<p>
|
<ion-header>
|
||||||
confirm-basic-details works!
|
<ion-toolbar class="header-toolbar-new">
|
||||||
</p>
|
<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}}</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" color="customnavy" ion-button (click)="openSubmitModal()">
|
||||||
|
{{ (isDelete ? 'general, delete' : 'general, submit') | translate }}</ion-button>
|
||||||
|
</div>
|
||||||
|
</ion-footer>
|
||||||
@ -0,0 +1,263 @@
|
|||||||
|
.footer-button {
|
||||||
|
border-radius: 2px;
|
||||||
|
padding: 0 1.1em;
|
||||||
|
min-height: 45px;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imgSize {
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Header {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #1a586d !important;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tbData {
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnBack {
|
||||||
|
background: transparent;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachmentDiv{
|
||||||
|
background: #ffffff;
|
||||||
|
height: auto;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 1px;
|
||||||
|
margin: 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 1px solid grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noDataDiv{
|
||||||
|
background: #ffffff;
|
||||||
|
height: 11%;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 1px;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.submitNote{
|
||||||
|
background: #ffffff;
|
||||||
|
height: 80px;
|
||||||
|
padding-top: 1px;
|
||||||
|
margin: 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 1px solid grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
.approvalList{
|
||||||
|
--background: #f0efef;
|
||||||
|
height: auto;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 1px;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************************New Design**********************************/
|
||||||
|
.notification-list{
|
||||||
|
background: none;
|
||||||
|
background: none;
|
||||||
|
border-radius: 32px;
|
||||||
|
ion-item{
|
||||||
|
// margin-top: 5px;
|
||||||
|
// margin-bottom: 5px;
|
||||||
|
|
||||||
|
background-color: transparent;
|
||||||
|
.item-date{
|
||||||
|
width: 100%;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
text-align: start;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 12%;
|
||||||
|
}
|
||||||
|
ion-label , [item-end]{
|
||||||
|
|
||||||
|
white-space: normal;
|
||||||
|
font-size: 14px;
|
||||||
|
padding-top: 15%;
|
||||||
|
// :root[dir="ltr"]{
|
||||||
|
// margin-left: 10px;
|
||||||
|
// }
|
||||||
|
// :root[dir="rtl"]{
|
||||||
|
// margin-right: 10px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.timeline {
|
||||||
|
position: relative;
|
||||||
|
margin: 15px 0 0 0;
|
||||||
|
// border-bottom: solid 1px var(--cusgray);
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline:before {
|
||||||
|
|
||||||
|
content: '';
|
||||||
|
position: inherit !important;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 4px;
|
||||||
|
// background: #e4e4e4;
|
||||||
|
z-index: 1;
|
||||||
|
left: 35px;
|
||||||
|
/* margin-left: -10px; */
|
||||||
|
/* z-index: 1; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline .timeline-thumb {
|
||||||
|
|
||||||
|
border-radius: 500px;
|
||||||
|
width: 70px !important;
|
||||||
|
z-index: 2;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
// :root[dir="ltr"]{
|
||||||
|
// left: 37px;
|
||||||
|
// }
|
||||||
|
// :root[dir="rtl"]{
|
||||||
|
// right: 37px;
|
||||||
|
// }
|
||||||
|
float: right;
|
||||||
|
top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline .timeline-thumb.timeline-icon {
|
||||||
|
height: 70px;
|
||||||
|
// text-align: center;
|
||||||
|
// color: white;
|
||||||
|
// border: 5px solid #CBD0D3;
|
||||||
|
// transform: scale(0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.timeline .timeline-item {
|
||||||
|
width: 40px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline .timeline-stats {
|
||||||
|
position: relative;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--darkgray);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.empImge{
|
||||||
|
border-radius: 50%;
|
||||||
|
width:100%;
|
||||||
|
height: 100%;
|
||||||
|
border: #dedede solid 1px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.empImgeRep {
|
||||||
|
border-radius: 50% !important;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
border: #dedede solid 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line{
|
||||||
|
padding-bottom:87px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attachLable{
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
z-index: 0;
|
||||||
|
background: #30b8c6;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 0px;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.removeLable{
|
||||||
|
top: 0px;
|
||||||
|
z-index: 0;
|
||||||
|
background: #d8252d;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 0px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note-modal {
|
||||||
|
// width: 90%;
|
||||||
|
// height: 50%;
|
||||||
|
// top: 20%;
|
||||||
|
// left: 5%;
|
||||||
|
// right: 5%;
|
||||||
|
// bottom: 5%;
|
||||||
|
background: rgba(0, 0, 0, 0.5) !important;
|
||||||
|
padding: 30% 10% !important;
|
||||||
|
--height: 12cm !important;
|
||||||
|
// --width: 80% !important;
|
||||||
|
--border-radius:20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.header-toolbar-new{
|
||||||
|
--background: #269DB8;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
margin-top: -37px;
|
||||||
|
margin-left: 85px;
|
||||||
|
}
|
||||||
|
.title-ar{
|
||||||
|
margin-top: -37px;
|
||||||
|
margin-right: 101px;
|
||||||
|
}
|
||||||
|
.confirmEitOkButton{
|
||||||
|
white-space: normal !important;
|
||||||
|
text-transform: capitalize !important;
|
||||||
|
min-height: 45px !important;
|
||||||
|
min-width: 5px !important;
|
||||||
|
margin: 8px !important;
|
||||||
|
background-color: #269DB8;
|
||||||
|
width: 80% !important;
|
||||||
|
color: white!important;
|
||||||
|
border-radius: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.approvalTitle-ar{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16px;
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
.approvalTitle{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue