design and address
parent
5ae2c2f170
commit
7671eb7f14
@ -1,3 +1,267 @@
|
||||
<p>
|
||||
confirm-address works!
|
||||
</p>
|
||||
<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}}</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 class="attachImgBtn"
|
||||
(click)="OpenAttachFiles(attachList.P_FILE_DATA,attachList.P_FILE_CONTENT_TYPE)">
|
||||
<img class="attachImg" src="../assets/imgs/view.png">
|
||||
</button> -->
|
||||
<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>
|
||||
|
||||
|
||||
<!-- <button [disabled]="!isResubmitEIT" class="iconButton" (click)="addAttachment(false,attachRes)"><img
|
||||
class="imgSize" src="../assets/imgs/editIcon.png"></button>
|
||||
<button (click)="delelteFile(attachRes)" class="iconButton" [disabled]="!isResubmitEIT"><img
|
||||
class="imgSize" src="../assets/imgs/cancel.png"></button> -->
|
||||
</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-label position="floating" class="boldTxtNav">{{'confirmAddEit, comment' | translate}}</ion-label> -->
|
||||
<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>
|
||||
<!-------------------------------End New design ---------------------------------------->
|
||||
<!-- <ion-card>
|
||||
<ion-card-header class="boxHdr">
|
||||
<div class="hrTitle">{{'confirmAddEit, approverList' | translate}}</div>
|
||||
</ion-card-header>
|
||||
<ion-card-content>
|
||||
|
||||
|
||||
<ion-grid no-padding class=" gridAH" *ngIf="approversList?.length > 0">
|
||||
<ion-row class="rowAH titleH" nowrap>
|
||||
<ion-col size="1">
|
||||
<ion-label class="Header" for="">{{'confirmAddEit, no' | translate}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="3">
|
||||
<ion-label class="Header" for="">{{'confirmAddEit, approver' | translate}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="3">
|
||||
<ion-label class="Header" for="">{{'confirmAddEit, approverCategory' | translate}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="3">
|
||||
<ion-label class="Header" for="">{{'confirmAddEit, approverType' | translate}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="2">
|
||||
<ion-label class="Header" for="">{{'confirmAddEit, status' | translate}}</ion-label>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
|
||||
|
||||
|
||||
<ion-row class="rowAH" *ngFor="let item of approversList" nowrap>
|
||||
<ion-col size="1">
|
||||
<ion-label class="tbData" for="">{{item.APPROVER_ORDER_NUMBER}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="3">
|
||||
<ion-label class="tbData" for="">{{item.APPROVER}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="3">
|
||||
<ion-label class="tbData" for="">{{item.APPROVER_CATEGORY}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col size="3">
|
||||
<ion-label class="tbData" for="">{{item.APPROVER_TYPE}}</ion-label>
|
||||
</ion-col>
|
||||
<ion-col csize="2">
|
||||
<ion-label class="tbData" for="">{{item.APPROVAL_STATUS}}</ion-label>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
<ion-item padding>
|
||||
<ion-label class="boldTxtNav">{{'confirmAddEit, comment' | translate}}</ion-label>
|
||||
<ion-textarea type="text" [(ngModel)]="eitComments"></ion-textarea>
|
||||
</ion-item>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<ion-card>
|
||||
|
||||
<ion-card-header class="boxHdr">
|
||||
<ion-grid no-padding>
|
||||
<ion-row style="width: 100%;" class="hrTitle" nowrap>
|
||||
<ion-col size="10">
|
||||
<ion-text style="font-size: larger;"><b>{{"absenceList, attachList" | translate}}</b></ion-text>
|
||||
</ion-col>
|
||||
<ion-col size="2">
|
||||
<button class="btnBack" ion-button (click)="addAttachment(true,-1)">
|
||||
<img class="imgSize" src="../assets/imgs/attachment.png"></button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
<ion-grid *ngIf="attachListOver?.length > 0">
|
||||
<div *ngFor="let attachList of attachListOver ; let i = index">
|
||||
<ion-row>
|
||||
<ion-col col-8>
|
||||
<div> <img float-start class="attachImg" src="../assets/imgs/file.png">
|
||||
</div>
|
||||
<ion-label>
|
||||
{{attachList.P_FILE_NAME }} </ion-label>
|
||||
|
||||
</ion-col>
|
||||
<ion-col col-4>
|
||||
<button float-end class="attachImgBtn"
|
||||
(click)="OpenAttachFiles(attachList.P_FILE_DATA,attachList.P_FILE_CONTENT_TYPE)">
|
||||
<img class="attachImg" src="../assets/imgs/view.png">
|
||||
</button>
|
||||
<button float-end [disabled]="attachList.isSuccess" class="attachImgBtn"
|
||||
(click)="removeFile(attachList)"><img class="attachImg" src="../assets/imgs/deletegray.png"></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-card-content>
|
||||
</ion-card> -->
|
||||
|
||||
|
||||
|
||||
</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;
|
||||
}
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
<ion-content padding>
|
||||
|
||||
<!--
|
||||
<ion-col col-1
|
||||
style="margin-right: -22px;margin-top: -10px;">
|
||||
<ion-button class="closeIcon" (click)="closeModal()">
|
||||
<img src="../assets/imgs/close.png">
|
||||
|
||||
</ion-button>
|
||||
</ion-col> -->
|
||||
|
||||
|
||||
<h2><div class="Header">{{'eit,confirmation' | translate}}</div></h2>
|
||||
|
||||
<div>
|
||||
<div *ngIf="submitAttachmentList.length==0" class="labelcheck" lines="none" style="text-align: center;">
|
||||
{{'eit,no-attachment' | translate}}
|
||||
</div>
|
||||
<div *ngIf="eitComments==''" class="labelcheck" style="text-align: center;margin-bottom: 5px;padding-bottom: 16px;">
|
||||
{{'eit,no-note' | translate}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ion-footer style="border-top: 1px solid grey !important;">
|
||||
<ion-row class="rowBtn">
|
||||
<ion-label class="labelRadio">{{'eit,submit' | translate}}</ion-label>
|
||||
<ion-button class="submitOkButton" (click)="OkBtnModal()"> {{ts.trPK('general','ok')}}
|
||||
</ion-button>
|
||||
</ion-row>
|
||||
|
||||
<ion-row class="rowBtn">
|
||||
<ion-button class="submitCancelButton" (click)="closeModal()"> {{ts.trPK('general','cancel')}}
|
||||
</ion-button>
|
||||
|
||||
</ion-row>
|
||||
</ion-footer>
|
||||
</ion-content>
|
||||
|
||||
@ -0,0 +1,53 @@
|
||||
.rowBtn{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.Header{
|
||||
color: black !important;
|
||||
font-size: 25px !important;
|
||||
font-weight: bold !important;;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.labelRadio{
|
||||
color: black !important;
|
||||
font-weight: bold !important;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.labelcheck{
|
||||
color: red !important;
|
||||
font-weight: bold !important;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.submitOkButton{
|
||||
white-space: normal !important;
|
||||
text-transform: capitalize !important;
|
||||
min-height: 45px !important;
|
||||
min-width: 5px !important;
|
||||
margin: 8px !important;
|
||||
--background:: #269DB8;
|
||||
width: 100% !important;
|
||||
color: white!important;
|
||||
border-radius: 16px !important;
|
||||
}
|
||||
.submitCancelButton{
|
||||
white-space: normal !important;
|
||||
text-transform: capitalize !important;
|
||||
min-height: 45px !important;
|
||||
min-width: 5px !important;
|
||||
margin: 8px !important;
|
||||
--background:: #269DB8;
|
||||
width: 100% !important;
|
||||
color: white!important;
|
||||
border-radius: 16px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SubmitAddressModalComponent } from './submit-address-modal.component';
|
||||
|
||||
describe('SubmitEitModalComponent', () => {
|
||||
let component: SubmitAddressModalComponent;
|
||||
let fixture: ComponentFixture<SubmitAddressModalComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [SubmitAddressModalComponent],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(SubmitAddressModalComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,36 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { CommonService } from 'src/app/hmg-common/services/common/common.service';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-submit-eit-modal',
|
||||
templateUrl: './submit-address-modal.component.html',
|
||||
styleUrls: ['./submit-address-modal.component.scss'],
|
||||
})
|
||||
export class SubmitAddressModalComponent implements OnInit {
|
||||
submitAttachmentList: any = [];
|
||||
eitComments: string;
|
||||
constructor(public ts: TranslatorService, private modalCtrl: ModalController, private cs: CommonService) {
|
||||
this.submitAttachmentList = this.cs.sharedService.getSharedData('submitAttachmentList', false);
|
||||
this.eitComments = this.cs.sharedService.getSharedData('eitComments', false);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log("modal");
|
||||
//this.actionBtns = this.cs.sharedService.getSharedData("passActionMore" , false);
|
||||
console.log("modal");
|
||||
|
||||
}
|
||||
closeModal() {
|
||||
this.modalCtrl.dismiss();
|
||||
}
|
||||
|
||||
|
||||
OkBtnModal() {
|
||||
let data = "ok";
|
||||
this.modalCtrl.dismiss(data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="11.569" height="8.325" viewBox="0 0 11.569 8.325">
|
||||
<path id="Path_4528" data-name="Path 4528" d="M11.3,72.057a.918.918,0,0,0-1.3,0L4.162,77.9l-2.6-2.6a.918.918,0,0,0-1.3,1.3l3.244,3.244a.918.918,0,0,0,1.3,0L11.3,73.355A.918.918,0,0,0,11.3,72.057Z" transform="translate(0 -71.788)" fill="#fff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 351 B |
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="11.569" height="8.325" viewBox="0 0 11.569 8.325">
|
||||
<path id="Path_4528" data-name="Path 4528" d="M11.3,72.057a.918.918,0,0,0-1.3,0L4.162,77.9l-2.6-2.6a.918.918,0,0,0-1.3,1.3l3.244,3.244a.918.918,0,0,0,1.3,0L11.3,73.355A.918.918,0,0,0,11.3,72.057Z" transform="translate(0 -71.788)" fill="#969696"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
Loading…
Reference in New Issue