swipe component between profile/home and profile/edit and change the design
parent
d086e9ebff
commit
3787a18560
@ -1,121 +1,153 @@
|
|||||||
<app-generic-header
|
<app-generic-header
|
||||||
showBack="true"
|
showBack="true"
|
||||||
[headerText]="'userProfile,title' | translate">
|
[headerText]="'userProfile, title' | translate">
|
||||||
</app-generic-header>
|
</app-generic-header>
|
||||||
|
|
||||||
<ion-content class="colorBG">
|
<ion-content class="colorBG">
|
||||||
<div class="header-div">
|
<div class="header-div">
|
||||||
<!-- <ion-buttons slot="start">
|
<div class="centerDiv homeBox">
|
||||||
<ion-back-button color="light" class="btnBack" defaultHref="/home"></ion-back-button>
|
|
||||||
</ion-buttons> -->
|
|
||||||
<!-- <p class="proTitles">{{ts.trPK('userProfile','title')}}</p> -->
|
|
||||||
|
|
||||||
<div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="centerDiv homeBox">
|
<div class="centerDiv homeBox">
|
||||||
<!-- <div class="profileDiv"> -->
|
<!-- <div class="profileDiv"> -->
|
||||||
<img class="profileImg" [src]="user_image">
|
<img class="profileImg" [src]="imageSrc">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <ion-img class="profileImg" [src]="imageSrc"></ion-img> -->
|
<!-- <ion-img class="profileImg" [src]="imageSrc"></ion-img> -->
|
||||||
|
<!-- <div class="Text">{{personalInfo.EMPLOYEE_NAME}}</div> -->
|
||||||
<div *ngIf="personalInfo">
|
<div *ngIf="personalInfo">
|
||||||
<p class="empName">{{User_name_Emp}}</p>
|
<p class="Text">{{personalInfo.EMPLOYEE_NAME}}</p>
|
||||||
<p class="empJob"> {{User_Job_name}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ion-grid *ngIf="personalInfo" style="position: relative; display: block; z-index: 5;">
|
<div [ngClass]=" direction == 'ltr' ? 'changeImgBtn' : 'changeImgBtn-ar'">
|
||||||
<div [ngClass]=" direction == 'ltr' ? 'gridService-en' : 'gridService-ar'" style="background: #0B4775; border-radius: 20px;">
|
<button ion-button icon-only menuToggle class="menubutton" (click)="ChangeImage()">
|
||||||
<ion-row>
|
<!-- <ion-icon (click)="ChangeImage();" class="changeIcon" name="md-create"></ion-icon> -->
|
||||||
<ion-col>
|
<img (click)="ChangeImage();" class="changeIcon" src="../assets/imgs/edit-image.svg">
|
||||||
<label style="font-size: 12px; color: white; margin: 10px 0px 0px 0px; display: block; text-align: center;font-weight: bold;">
|
</button>
|
||||||
{{ 'general, appreciate-service' | translate}}
|
|
||||||
</label>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
<ion-row [ngClass]=" direction == 'ltr' ? 'service-row-en' : 'service-row-ar'">
|
|
||||||
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
|
||||||
<ion-grid>
|
|
||||||
<ion-row style="text-align:center">
|
|
||||||
<ion-col>
|
|
||||||
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_YEARS}}</label>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
<ion-row>
|
|
||||||
<ion-col>
|
|
||||||
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','years')}}</label>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</ion-grid>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col>
|
|
||||||
<div class="verticalLine"></div>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
|
||||||
<ion-grid>
|
|
||||||
<ion-row style="text-align:center">
|
|
||||||
<ion-col>
|
|
||||||
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_MONTHS}}</label>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
<ion-row>
|
|
||||||
<ion-col>
|
|
||||||
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','months')}}</label>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</ion-grid>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col>
|
|
||||||
<div class="verticalLine"></div>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
|
||||||
<ion-grid>
|
|
||||||
<ion-row style="text-align:center">
|
|
||||||
<ion-col>
|
|
||||||
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_DAYS}}</label>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col>
|
|
||||||
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('absenceList','days')}}</label>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</ion-grid>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</div>
|
</div>
|
||||||
</ion-grid>
|
|
||||||
|
|
||||||
|
</div> <!-- end header-div -->
|
||||||
|
<div>
|
||||||
|
|
||||||
<div class="list">
|
<!-- <ion-card *ngIf="personalInfo"> -->
|
||||||
<ion-list class="list-ios">
|
|
||||||
<div class="p">
|
<!-- <ion-card-header class="boxHdr">
|
||||||
<p>{{ts.trPK('userProfile','Years of Services')}}</p>
|
<div class="hrTitle">{{personalInfo.EMPLOYEE_NAME}}</div>
|
||||||
</div>
|
</ion-card-header> -->
|
||||||
|
<!-- <ion-card-content> -->
|
||||||
|
<div *ngIf="personalInfo">
|
||||||
|
|
||||||
|
<ion-grid>
|
||||||
|
<div class="profileGrid">
|
||||||
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
|
<ion-col class="line">
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">
|
||||||
|
{{ts.trPK('userProfile','empNo')}}</label></ion-row>
|
||||||
|
<ion-row > <label
|
||||||
|
class="rowBolds">{{personalInfo.EMPLOYEE_NUMBER}}</label> </ion-row>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<ion-row> <label class="lebl">{{ts.trPK('userProfile','category')}}</label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<label class="rowBolds">{{personalInfo.EMPLOYMENT_CATEGORY_MEANING}}</label> </ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('userProfile','address')}}</label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<label class="rowBolds"></label>
|
||||||
|
</ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('general','mobile')}}</label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<label class="rowBolds">{{personalInfo.EMPLOYEE_MOBILE_NUMBER}}</label>
|
||||||
|
</ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('userProfile','busG')}}</label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row> <label class="rowBolds">{{personalInfo.BUSINESS_GROUP_NAME}}</label>
|
||||||
|
</ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
<ion-item class="itemline" (click)="openEditprofile()">
|
|
||||||
<ion-thumbnail slot="start" class="menu-thumb">
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
<img style= "height: 22px !important;" src="../assets/imgs/profile_icon.png" item-left>
|
<ion-col>
|
||||||
</ion-thumbnail>
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('userProfile','job')}}</label>
|
||||||
<ion-label class="profile">
|
</ion-row>
|
||||||
{{ts.trPK('userProfile','edit-profile')}}
|
<ion-row>
|
||||||
</ion-label>
|
<label class="rowBolds">{{personalInfo.JOB_NAME}}</label>
|
||||||
<ion-icon [ngClass]=" direction == 'ltr' ? 'arrow' : 'arrow-ar'" name="arrow-forward" item-right></ion-icon>
|
</ion-row>
|
||||||
</ion-item>
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
<ion-item class="itemlins" (click)="openPerormance()">
|
|
||||||
<ion-thumbnail slot="start" class="menu-thumb">
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
<ion-icon style= "width: 23px; height: 24px !important;" name="speedometer" item-left></ion-icon>
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
</ion-thumbnail>
|
<label class="lebl">{{ts.trPK('userProfile','payrol')}}</label>
|
||||||
<ion-label class="profile">
|
</ion-row>
|
||||||
{{ts.trPK('userProfile','performance-evaluation')}}
|
<ion-row>
|
||||||
</ion-label>
|
<label class="rowBolds">{{personalInfo.PAYROLL_NAME}}</label>
|
||||||
<ion-icon [ngClass]=" direction == 'ltr' ? 'arrow' : 'arrow-ar'" name="arrow-forward" item-right></ion-icon>
|
</ion-row>
|
||||||
</ion-item>
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
</ion-list>
|
|
||||||
</div>
|
|
||||||
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('userProfile','orgEmail')}}</label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<label class="rowBolds">{{personalInfo.EMPLOYEE_EMAIL_ADDRESS}}</label>
|
||||||
|
</ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
||||||
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('userProfile','position')}}</label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<label class="rowBolds">{{personalInfo.POSITION_NAME}}</label>
|
||||||
|
</ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<ion-row>
|
||||||
|
<label class="lebl">{{ts.trPK('userProfile','grade')}} </label>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<label class="rowBolds">{{personalInfo.GRADE_NAME}}</label>
|
||||||
|
</ion-row>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</ion-grid>
|
||||||
|
</div>
|
||||||
|
<!-- </ion-card-content> -->
|
||||||
|
<!-- </ion-card> -->
|
||||||
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
@ -1,216 +1,130 @@
|
|||||||
|
ion-col.colBold, ion-col.colBold > label{
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.colorBG{
|
||||||
.list-ios {
|
--background: #f0efef;
|
||||||
// margin-left: 0;
|
}
|
||||||
// margin-right: 0;
|
.header-div{
|
||||||
// margin-top: 32px;
|
text-transform: capitalize;
|
||||||
// margin-bottom: 32px;
|
background: #269DB8;
|
||||||
// background: var(--ion-item-background,var(--ion-background-color,#fff));
|
display: block;
|
||||||
margin-left: 0;
|
position: relative;
|
||||||
margin-right: 0;
|
height: 160px;
|
||||||
margin-top: -15px;
|
margin-bottom: 60px;
|
||||||
margin-bottom: 32px;
|
|
||||||
border: 1px solid #d8d8d8;
|
|
||||||
background: var(--ion-item-background, var(--ion-background-color, #fff));
|
|
||||||
border-radius: 10px;
|
|
||||||
padding-top: 60px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-toolbar-new{
|
// .profileCont{
|
||||||
--background: #269DB8;
|
// background-color: #d9d7d7 !important;
|
||||||
|
|
||||||
|
|
||||||
|
.menubutton {
|
||||||
|
background: #f0ecec;
|
||||||
|
min-height: 39px;
|
||||||
|
width: 35px !important;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
.colorBG{
|
|
||||||
--background: #f0efef;
|
.changeIcon{
|
||||||
}
|
/* background: #c1c1c1; */
|
||||||
.header-div{
|
width: 21px;
|
||||||
text-transform: capitalize;
|
/* height: 26px; */
|
||||||
background: #269DB8;
|
border-radius: 50% !important;
|
||||||
display: block;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 113px;
|
color: #7f8c8d;
|
||||||
margin-bottom: 60px;
|
height: 35px;
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.changeImgBtn{
|
||||||
|
position: absolute;
|
||||||
|
top: 80%;
|
||||||
|
left: 65%;
|
||||||
|
}
|
||||||
|
.changeImgBtn-ar{
|
||||||
|
position: absolute;
|
||||||
|
top: 80%;
|
||||||
|
left: 66%;
|
||||||
|
}
|
||||||
.profileImg{
|
.profileImg{
|
||||||
width: 160px;
|
width: 160px;
|
||||||
height: 160px;
|
height: 160px;
|
||||||
display: -webkit-inline-box;
|
display: -webkit-inline-box;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
/* background: transparent; */
|
// background: transparent;
|
||||||
border-radius: 78% !important;
|
border-radius: 69% !important;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 34px;
|
top: 34px;
|
||||||
// background: white;
|
// background: white;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
margin-left: -3px;
|
}
|
||||||
|
|
||||||
|
.Text {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bolder;
|
||||||
|
color: black;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-top: 34px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.line{
|
||||||
|
|
||||||
|
padding-top: 0px !important;
|
||||||
|
/* margin-bottom: 0px; */
|
||||||
|
/* margin: 0px; */
|
||||||
|
border-right: 1px #c5c2c2 solid !important;
|
||||||
|
line-height: 10px !important;
|
||||||
|
|
||||||
|
}
|
||||||
.proTitles {
|
.proTitles {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
color: white;
|
color: white;
|
||||||
margin-top: -33px;
|
margin-top: -33px;
|
||||||
}
|
|
||||||
|
|
||||||
.Text {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bolder;
|
|
||||||
color: black;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-top: 34px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ion-thumbnail.menu-thumb{
|
|
||||||
width:20px;
|
|
||||||
height:20px;
|
|
||||||
// margin-top: 5px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.profile{
|
|
||||||
color: black !important;
|
|
||||||
// font-weight: bolder !important;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.gridService-en{
|
|
||||||
margin-top: 87px;
|
|
||||||
border-radius: 10px;
|
|
||||||
margin-bottom: -49px;
|
|
||||||
margin-left: 30px;
|
|
||||||
margin-right: 30px;
|
|
||||||
}
|
|
||||||
.gridService-ar{
|
|
||||||
margin-top: 87px;
|
|
||||||
border-radius: 10px;
|
|
||||||
margin-bottom: -49px;
|
|
||||||
margin-left: 17px;
|
|
||||||
margin-right: 17px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.columns{
|
|
||||||
// margin: 10px;
|
|
||||||
// background: #0B4775;
|
|
||||||
// border-radius: 27px;
|
|
||||||
// padding-left: 30px;
|
|
||||||
// padding-right: 6px;
|
|
||||||
// padding-top: 19px;
|
|
||||||
// padding-bottom: 26px;
|
|
||||||
}
|
|
||||||
.columns-ar{
|
|
||||||
// margin: 10px;
|
|
||||||
// background: #0B4775;
|
|
||||||
// border-radius: 27px;
|
|
||||||
// padding-left: 7px;
|
|
||||||
// padding-right: 3px;
|
|
||||||
// padding-top: 19px;
|
|
||||||
// padding-bottom: 26px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.service{
|
|
||||||
font-size: 28px;
|
|
||||||
// font-weight: bolder;
|
|
||||||
color: white;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.services{
|
|
||||||
|
|
||||||
font-size: 12px;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
.service-ar{
|
|
||||||
font-size: 28px;
|
|
||||||
color: white;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-right: 26px;
|
|
||||||
}
|
|
||||||
.services-ar{
|
|
||||||
font-size: 20px;
|
|
||||||
color: white;
|
|
||||||
margin-right: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list{
|
|
||||||
margin-left: 14px;
|
|
||||||
margin-right: 14px;
|
|
||||||
border-radius: 10px;
|
|
||||||
// background: white;
|
|
||||||
border:#bebbbb !important;
|
|
||||||
padding: 2px;
|
|
||||||
}
|
|
||||||
.p{
|
|
||||||
color: black !important;
|
|
||||||
font-size: medium;
|
|
||||||
text-align: center;
|
|
||||||
border-bottom: rgb(190, 187, 187) solid 1px;
|
|
||||||
}
|
|
||||||
.itemline{
|
|
||||||
border-bottom: rgb(190, 187, 187) solid 1px;
|
|
||||||
}
|
|
||||||
.itemlins{
|
|
||||||
border-bottom: rgb(190, 187, 187) solid 1px;
|
|
||||||
margin-bottom: 209px;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
.empName {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bolder;
|
|
||||||
color: black;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-top: 38px;
|
|
||||||
|
|
||||||
}
|
|
||||||
.empJob{
|
|
||||||
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
text-align: center;
|
|
||||||
color: black;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-top: 4px;
|
|
||||||
|
|
||||||
}
|
|
||||||
.arrow{
|
|
||||||
width: 20px;
|
|
||||||
height: 22px !important;
|
|
||||||
}
|
|
||||||
.arrow-ar{
|
|
||||||
float: left;
|
|
||||||
font-size: 25px;
|
|
||||||
color: grey;
|
|
||||||
-webkit-transform: rotate(180deg);
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.verticalLine {
|
|
||||||
width:1%;
|
|
||||||
height:50px;
|
|
||||||
background:white;
|
|
||||||
margin-top: 100%;
|
|
||||||
// margin-left: 10%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-row-en{
|
|
||||||
width: 79%;
|
.profileGrid{
|
||||||
margin: -12px 0px 0px 35px;
|
border: #bebbbb solid 1px;
|
||||||
|
border-radius: 9px;
|
||||||
|
padding: 0px;
|
||||||
|
margin-top: 54px;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
color: black;
|
||||||
|
// font-weight: bold;
|
||||||
|
background: white;
|
||||||
|
|
||||||
}
|
}
|
||||||
.service-row-ar{
|
|
||||||
width: 95%;
|
|
||||||
margin: -12px 0px 35px 0px;
|
|
||||||
|
|
||||||
|
.lebl{
|
||||||
|
|
||||||
|
color: black;
|
||||||
|
font-size: 14px !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
padding-top: 9px;
|
||||||
|
padding-left: 5px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.rowBolds{
|
||||||
|
color: black !important;
|
||||||
|
font-size: 14px !important;
|
||||||
|
/* padding: 6px !important; */
|
||||||
|
padding-bottom: 9px;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-top: 4px;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,153 +1,539 @@
|
|||||||
<app-generic-header
|
<app-generic-header showBack="true" [headerText]="'userProfile,title' | translate">
|
||||||
showBack="true"
|
|
||||||
[headerText]="'userProfile, title' | translate">
|
|
||||||
</app-generic-header>
|
</app-generic-header>
|
||||||
|
|
||||||
<ion-content class="colorBG">
|
<ion-content class="colorBG">
|
||||||
<div class="header-div">
|
<div class="header-background-style-card">
|
||||||
<div class="centerDiv homeBox">
|
</div>
|
||||||
<div class="centerDiv homeBox">
|
<div [ngClass]="direction == 'ltr' ? 'result-graph' : 'result-graph-ar'" style="margin-top: -50px;">
|
||||||
<!-- <div class="profileDiv"> -->
|
<div class="user-info">
|
||||||
<img class="profileImg" [src]="imageSrc">
|
<div class="user-image-container">
|
||||||
</div>
|
<div class="user-image">
|
||||||
<!-- <ion-img class="profileImg" [src]="imageSrc"></ion-img> -->
|
<img [ngClass]="direction == 'ltr'? 'img':'img-ar' "
|
||||||
<!-- <div class="Text">{{personalInfo.EMPLOYEE_NAME}}</div> -->
|
[src]="personalInfo?.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+personalInfo.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
|
||||||
<div *ngIf="personalInfo">
|
alt="Team Member Image" />
|
||||||
<p class="Text">{{personalInfo.EMPLOYEE_NAME}}</p>
|
</div>
|
||||||
|
<div [ngClass]=" direction == 'ltr' ? 'changeImgBtn' : 'changeImgBtn-ar'">
|
||||||
|
<button ion-button icon-only menuToggle class="menubutton">
|
||||||
|
<img class="changeIcon" src="../assets/imgs/edit-image.svg">
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="margin-top: 18px;">
|
||||||
|
<h1>{{User_name_Emp}}</h1>
|
||||||
|
<span>{{personalInfo?.EMPLOYEE_EMAIL_ADDRESS}}</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col style="border-right: 1px solid rgb(221 221 221);">
|
||||||
|
<p style="font-size: 12px; color: rgb(128, 124, 124);">{{ts.trPK('userProfile','role')}}</p>
|
||||||
|
<span class="Boldtext">{{personalInfo?.JOB_NAME}}</span>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<p style="font-size: 12px; color: rgb(128, 124, 124);">{{ts.trPK('userProfile','empNo')}}</p>
|
||||||
|
<span class="Boldtext">{{personalInfo?.EMPLOYEE_NUMBER}}</span>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="user-actions">
|
||||||
|
<ion-row class="ion-justify-content-center">
|
||||||
<div [ngClass]=" direction == 'ltr' ? 'changeImgBtn' : 'changeImgBtn-ar'">
|
<ion-col [size]="4" (click)="selectedSegment('personal')">
|
||||||
<button ion-button icon-only menuToggle class="menubutton" (click)="ChangeImage()">
|
<div class="action-button col-button">
|
||||||
<!-- <ion-icon (click)="ChangeImage();" class="changeIcon" name="md-create"></ion-icon> -->
|
<img style="width: 50px;" src="../assets/imgs/check_padding.png">
|
||||||
<img (click)="ChangeImage();" class="changeIcon" src="../assets/imgs/edit-image.svg">
|
<span>{{ts.trPK('general','personal-info')}}</span>
|
||||||
</button>
|
</div>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col [size]="4" (click)="selectedSegment('basic')">
|
||||||
|
<div class="action-button col-button">
|
||||||
|
<img style="width: 50px;" src="../assets/imgs/check_padding.png">
|
||||||
|
<span>{{ts.trPK('general','basic-details')}}</span>
|
||||||
|
</div>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col [size]="4" (click)="selectedSegment('address')">
|
||||||
|
<div class="action-button col-button">
|
||||||
|
<img style="width: 50px;" src="../assets/imgs/check_padding.png">
|
||||||
|
<span>{{ts.trPK('userProfile','address')}} </span>
|
||||||
|
</div>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
</div>
|
</div>
|
||||||
|
<ion-grid *ngIf="personalInfo" [ngClass]="direction === 'ltr'? 'grid-card':'grid-card-ar' ">
|
||||||
</div> <!-- end header-div -->
|
<div [ngClass]=" direction == 'ltr' ? 'gridService-en' : 'gridService-ar'"
|
||||||
<div>
|
style="background: #002948; border-radius: 0px 0px 10px 10px;">
|
||||||
|
<ion-row>
|
||||||
<!-- <ion-card *ngIf="personalInfo"> -->
|
<ion-col>
|
||||||
|
<label
|
||||||
<!-- <ion-card-header class="boxHdr">
|
style="font-size: 12px; color: white; margin: 10px 0px 0px 0px; display: block; text-align: center;font-weight: bold;">
|
||||||
<div class="hrTitle">{{personalInfo.EMPLOYEE_NAME}}</div>
|
{{ 'general, appreciate-service' | translate}}
|
||||||
</ion-card-header> -->
|
</label>
|
||||||
<!-- <ion-card-content> -->
|
</ion-col>
|
||||||
<div *ngIf="personalInfo">
|
</ion-row>
|
||||||
|
<ion-row [ngClass]=" direction == 'ltr' ? 'service-row-en' : 'service-row-ar'">
|
||||||
<ion-grid>
|
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
||||||
<div class="profileGrid">
|
<ion-grid>
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
|
||||||
<ion-col class="line">
|
|
||||||
<ion-row>
|
<ion-row>
|
||||||
<label class="lebl">
|
<ion-col class="text-years">
|
||||||
{{ts.trPK('userProfile','empNo')}}</label></ion-row>
|
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_YEARS}}
|
||||||
<ion-row > <label
|
{{ts.trPK('userProfile','years')}}</label>
|
||||||
class="rowBolds">{{personalInfo.EMPLOYEE_NUMBER}}</label> </ion-row>
|
<!-- <label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','years')}}</label> -->
|
||||||
</ion-col>
|
</ion-col>
|
||||||
<ion-col>
|
|
||||||
<ion-row> <label class="lebl">{{ts.trPK('userProfile','category')}}</label>
|
|
||||||
</ion-row>
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
||||||
|
<ion-grid>
|
||||||
<ion-row>
|
<ion-row>
|
||||||
<label class="rowBolds">{{personalInfo.EMPLOYMENT_CATEGORY_MEANING}}</label> </ion-row>
|
<ion-col class="text-years">
|
||||||
</ion-col>
|
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_MONTHS}}
|
||||||
</ion-row>
|
{{ts.trPK('userProfile','months')}}</label>
|
||||||
|
<!-- <label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','months')}}</label> -->
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
</ion-col>
|
||||||
<ion-col>
|
|
||||||
<ion-row>
|
|
||||||
<label class="lebl">{{ts.trPK('userProfile','address')}}</label>
|
|
||||||
</ion-row>
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
||||||
|
<ion-grid>
|
||||||
<ion-row>
|
<ion-row>
|
||||||
<label class="rowBolds"></label>
|
<ion-col class="text-years">
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_DAYS}}
|
||||||
|
{{ts.trPK('absenceList','days')}}</label>
|
||||||
|
<!-- <label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('absenceList','days')}}</label> -->
|
||||||
|
</ion-col>
|
||||||
</ion-row>
|
</ion-row>
|
||||||
</ion-col>
|
</ion-grid>
|
||||||
</ion-row>
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</div>
|
||||||
|
</ion-grid>
|
||||||
|
</div>
|
||||||
|
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
<br>
|
||||||
<ion-col>
|
|
||||||
<ion-row>
|
|
||||||
<label class="lebl">{{ts.trPK('general','mobile')}}</label>
|
|
||||||
</ion-row>
|
|
||||||
<ion-row>
|
|
||||||
<label class="rowBolds">{{personalInfo.EMPLOYEE_MOBILE_NUMBER}}</label>
|
|
||||||
</ion-row>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
|
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
<ion-card *ngIf="personalInfoSegment">
|
||||||
<ion-col>
|
<ion-card-content>
|
||||||
<ion-row>
|
<ion-label>
|
||||||
<label class="lebl">{{ts.trPK('userProfile','busG')}}</label>
|
<h1 style="color: black;">{{ts.trPK('userProfile','personal-informaion')}}</h1>
|
||||||
</ion-row>
|
</ion-label>
|
||||||
<ion-row> <label class="rowBolds">{{personalInfo.BUSINESS_GROUP_NAME}}</label>
|
<br>
|
||||||
</ion-row>
|
<ion-label>
|
||||||
</ion-col>
|
<h3>{{ts.trPK('userProfile','category')}}</h3>
|
||||||
</ion-row>
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">part-time</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('userProfile','address')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">DR.Sulaiman Alhabib Medical Group</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('userProfile','phone-no')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">0567845661</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('userProfile','busG')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">CORP Cloud Solutions</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('userProfile','payrol')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">Cloud Solutions Payroll</h3>
|
||||||
|
<br>
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card *ngIf="basicDetailsSegment">
|
||||||
|
<ion-card-content *ngIf="!editBasic">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col size="10">
|
||||||
|
<ion-label>
|
||||||
|
<h1 style="color: black;">{{ts.trPK('general','basic-details')}}</h1>
|
||||||
|
</ion-label>
|
||||||
|
</ion-col>
|
||||||
|
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
<ion-col size="2">
|
||||||
<ion-col>
|
<img style="width: 70%;border: 1px solid;border-radius: 15px;" src="../assets/imgs/edit_icon.png"
|
||||||
<ion-row>
|
(click)="allowEdit(1)">
|
||||||
<label class="lebl">{{ts.trPK('userProfile','job')}}</label>
|
</ion-col>
|
||||||
</ion-row>
|
</ion-row>
|
||||||
<ion-row>
|
</ion-grid>
|
||||||
<label class="rowBolds">{{personalInfo.JOB_NAME}}</label>
|
<br>
|
||||||
</ion-row>
|
<ion-label>
|
||||||
</ion-col>
|
<h3>{{ts.trPK('general','full-name')}}</h3>
|
||||||
</ion-row>
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">ENAD HILAL NASSER MOHAMMED</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','marital-status')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">Married</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','birth_date')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">01-FEB-1991</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','civil-identity-number')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">2093486013</h3>
|
||||||
|
<br>
|
||||||
|
</ion-card-content>
|
||||||
|
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
<ion-card-content *ngIf="editBasic">
|
||||||
<ion-col>
|
<ion-label>
|
||||||
<ion-row>
|
<h1 style="color: black;">{{ts.trPK('general','basic-details')}}</h1>
|
||||||
<label class="lebl">{{ts.trPK('userProfile','payrol')}}</label>
|
</ion-label>
|
||||||
</ion-row>
|
|
||||||
<ion-row>
|
|
||||||
<label class="rowBolds">{{personalInfo.PAYROLL_NAME}}</label>
|
|
||||||
</ion-row>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
|
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','effective-date')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
<ion-col>
|
<ion-label>MMMM</ion-label>
|
||||||
<ion-row>
|
<ion-datetime displayFormat="MMMM" value="2012-12-15T13:47:20.789"></ion-datetime>
|
||||||
<label class="lebl">{{ts.trPK('userProfile','orgEmail')}}</label>
|
</ion-item>
|
||||||
</ion-row>
|
<br>
|
||||||
<ion-row>
|
|
||||||
<label class="rowBolds">{{personalInfo.EMPLOYEE_EMAIL_ADDRESS}}</label>
|
|
||||||
</ion-row>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
|
|
||||||
<ion-row style="border-bottom: rgb(190, 187, 187) solid 1px;">
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
<ion-col>
|
<ion-label>{{ts.trPK('general','title')}}</ion-label>
|
||||||
<ion-row>
|
<ion-select placeholder="Select One">
|
||||||
<label class="lebl">{{ts.trPK('userProfile','position')}}</label>
|
<ion-select-option value="mr">Mr</ion-select-option>
|
||||||
</ion-row>
|
<ion-select-option value="ms">Miss</ion-select-option>
|
||||||
<ion-row>
|
</ion-select>
|
||||||
<label class="rowBolds">{{personalInfo.POSITION_NAME}}</label>
|
</ion-item>
|
||||||
</ion-row>
|
<br>
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','family-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
<ion-row>
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
<ion-col>
|
<ion-label position="floating">{{ts.trPK('userProfile','preferred-name')}}</ion-label>
|
||||||
<ion-row>
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
<label class="lebl">{{ts.trPK('userProfile','grade')}} </label>
|
</ion-item>
|
||||||
</ion-row>
|
<br>
|
||||||
<ion-row>
|
|
||||||
<label class="rowBolds">{{personalInfo.GRADE_NAME}}</label>
|
|
||||||
</ion-row>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
|
|
||||||
</div>
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','previous-family-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','father-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','grand-father-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" required type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','arabic-first-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','arabic-father-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','arabic-grand-father-name')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card>
|
||||||
|
<ion-card-content *ngIf="editBasic">
|
||||||
|
<ion-label>
|
||||||
|
<h1 style="color: black;">{{ts.trPK('general','other')}}</h1>
|
||||||
|
</ion-label>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>{{ts.trPK('general','gender')}}</ion-label>
|
||||||
|
<ion-select placeholder="Select One">
|
||||||
|
<ion-select-option value="m">Male</ion-select-option>
|
||||||
|
<ion-select-option value="f">Female</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>{{ts.trPK('general','marital-status')}}</ion-label>
|
||||||
|
<ion-select placeholder="Select One">
|
||||||
|
<ion-select-option value="s">Singal</ion-select-option>
|
||||||
|
<ion-select-option value="m">Married</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>{{ts.trPK('general','nationality')}}</ion-label>
|
||||||
|
<ion-select placeholder="Select One">
|
||||||
|
<ion-select-option value="mr">Mr</ion-select-option>
|
||||||
|
<ion-select-option value="ms">Miss</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>{{ts.trPK('general','religion')}}</ion-label>
|
||||||
|
<ion-select placeholder="Select One">
|
||||||
|
<ion-select-option value="i">Islam</ion-select-option>
|
||||||
|
<ion-select-option value="o">Other</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>{{ts.trPK('general','education-level')}}</ion-label>
|
||||||
|
<ion-select placeholder="Select One">
|
||||||
|
<ion-select-option value="u">University</ion-select-option>
|
||||||
|
<ion-select-option value="o">other</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card *ngIf="addressSegment">
|
||||||
|
<ion-card-content *ngIf="!editAddress">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col size="10">
|
||||||
|
<ion-label>
|
||||||
|
<h1 style="color: black;">{{ts.trPK('general','main-address')}}</h1>
|
||||||
|
</ion-label>
|
||||||
|
</ion-col>
|
||||||
|
|
||||||
|
<ion-col size="2">
|
||||||
|
<img style="width: 70%;border: 1px solid;border-radius: 15px;" src="../assets/imgs/edit_icon.png"
|
||||||
|
(click)="allowEdit(2)">
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
</ion-grid>
|
</ion-grid>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','address')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">Riyadh</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','street')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">-</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','area')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">-</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','p-o-box')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">22617</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','city')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">Riyadh</h3>
|
||||||
|
<br>
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','postal-code')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<h3 style="font-weight: bold;">11416</h3>
|
||||||
|
<br>
|
||||||
|
</ion-card-content>
|
||||||
|
|
||||||
|
<ion-card-content *ngIf="editAddress">
|
||||||
|
<ion-label>
|
||||||
|
<h1 style="color: black;">{{ts.trPK('general','address')}}</h1>
|
||||||
|
</ion-label>
|
||||||
|
|
||||||
|
<ion-label>
|
||||||
|
<h3>{{ts.trPK('general','effective-date')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>MMMM</ion-label>
|
||||||
|
<ion-datetime displayFormat="MMMM" value="2012-12-15T13:47:20.789"></ion-datetime>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label>{{ts.trPK('general','nationality')}}</ion-label>
|
||||||
|
<ion-select placeholder="Select One">
|
||||||
|
<ion-select-option value="mr">Mr</ion-select-option>
|
||||||
|
<ion-select-option value="ms">Miss</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','address')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','street')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','area')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','p-o-box')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','city')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<ion-item lines="none" class="item-input-login" style="--background: white">
|
||||||
|
<ion-label position="floating">{{ts.trPK('userProfile','postal-code')}}</ion-label>
|
||||||
|
<ion-input class="login-input" type="text"></ion-input>
|
||||||
|
</ion-item>
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div class="header-div">
|
||||||
|
<div>
|
||||||
|
<div class="centerDiv homeBox">
|
||||||
|
<img class="profileImg" [src]="user_image">
|
||||||
|
</div>
|
||||||
|
<div *ngIf="personalInfo">
|
||||||
|
<p class="empName">{{User_name_Emp}}</p>
|
||||||
|
<p class="empJob"> {{User_Job_name}}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </ion-card-content> -->
|
|
||||||
<!-- </ion-card> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ion-grid *ngIf="personalInfo" style="position: relative; display: block; z-index: 5;">
|
||||||
|
<div [ngClass]=" direction == 'ltr' ? 'gridService-en' : 'gridService-ar'" style="background: #0B4775; border-radius: 20px;">
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<label style="font-size: 12px; color: white; margin: 10px 0px 0px 0px; display: block; text-align: center;font-weight: bold;">
|
||||||
|
{{ 'general, appreciate-service' | translate}}
|
||||||
|
</label>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row [ngClass]=" direction == 'ltr' ? 'service-row-en' : 'service-row-ar'">
|
||||||
|
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row style="text-align:center">
|
||||||
|
<ion-col>
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_YEARS}}</label>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','years')}}</label>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<div class="verticalLine"></div>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row style="text-align:center">
|
||||||
|
<ion-col>
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_MONTHS}}</label>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','months')}}</label>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<div class="verticalLine"></div>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row style="text-align:center">
|
||||||
|
<ion-col>
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_DAYS}}</label>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('absenceList','days')}}</label>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</div>
|
||||||
|
</ion-grid>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="list">
|
||||||
|
<ion-list class="list-ios">
|
||||||
|
<div class="p">
|
||||||
|
<p>{{ts.trPK('userProfile','Years of Services')}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ion-item class="itemline" (click)="openEditprofile()">
|
||||||
|
<ion-thumbnail slot="start" class="menu-thumb">
|
||||||
|
<img style= "height: 22px !important;" src="../assets/imgs/profile_icon.png" item-left>
|
||||||
|
</ion-thumbnail>
|
||||||
|
|
||||||
|
<ion-label class="profile">
|
||||||
|
{{ts.trPK('userProfile','edit-profile')}}
|
||||||
|
</ion-label>
|
||||||
|
<ion-icon [ngClass]=" direction == 'ltr' ? 'arrow' : 'arrow-ar'" name="arrow-forward" item-right></ion-icon>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item class="itemlins" (click)="openPerormance()">
|
||||||
|
<ion-thumbnail slot="start" class="menu-thumb">
|
||||||
|
<ion-icon style= "width: 23px; height: 24px !important;" name="speedometer" item-left></ion-icon>
|
||||||
|
|
||||||
|
</ion-thumbnail>
|
||||||
|
<ion-label class="profile">
|
||||||
|
{{ts.trPK('userProfile','performance-evaluation')}}
|
||||||
|
</ion-label>
|
||||||
|
<ion-icon [ngClass]=" direction == 'ltr' ? 'arrow' : 'arrow-ar'" name="arrow-forward" item-right></ion-icon>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
</ion-list>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
|
||||||
|
<ion-footer *ngIf="editBasic||editAddress">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<ion-button style="--background: #f44336; background: white; width: 100%;" (click)="disableEdit(1)">Cancel
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<ion-button style="--background: #46da59; background: white; width: 100%;" (click)="presentModal()">Update</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-footer>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@
|
|||||||
|
<ion-content padding>
|
||||||
|
<ion-label padding>
|
||||||
|
<h2 style=" font-weight: bold; color: black; font-size: 20px;">
|
||||||
|
{{ts.trPK('general','type-of-change')}}</h2>
|
||||||
|
</ion-label>
|
||||||
|
|
||||||
|
<ion-list>
|
||||||
|
<ion-radio-group value="1">
|
||||||
|
|
||||||
|
<ion-item lines="none">
|
||||||
|
<ion-label >
|
||||||
|
<h3 style="color: black; font-size: 20px; white-space: break-spaces !important">{{ts.trPK('general','correct-or-complete')}}</h3></ion-label>
|
||||||
|
<ion-radio slot="start" color="secondary" mode='md' value="1"></ion-radio>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item lines="none">
|
||||||
|
<ion-label>
|
||||||
|
<h3 style="color: black; font-size: 20px; white-space: break-spaces !important">{{ts.trPK('general','new-info')}}</h3>
|
||||||
|
</ion-label>
|
||||||
|
<ion-radio slot="start" color="secondary" mode='md' value="2"></ion-radio>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
</ion-radio-group>
|
||||||
|
</ion-list>
|
||||||
|
|
||||||
|
<ion-footer>
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<ion-button style=" width: 90%; background: white; --background: #b4b4b4">{{ts.trPK('userProfile','cancel-text')}}</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
|
||||||
|
<ion-col>
|
||||||
|
<ion-button style=" width: 90%; background: white; --background: #269db8">{{ts.trPK('general','next')}}</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-footer>
|
||||||
|
</ion-content>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
ion-label{
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { EditDetailProfileComponent } from './edit-detail-profile.component';
|
||||||
|
|
||||||
|
describe('EditDetailProfileComponent', () => {
|
||||||
|
let component: EditDetailProfileComponent;
|
||||||
|
let fixture: ComponentFixture<EditDetailProfileComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ EditDetailProfileComponent ],
|
||||||
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(EditDetailProfileComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { ModalController } from '@ionic/angular';
|
||||||
|
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-edit-detail-profile',
|
||||||
|
templateUrl: './edit-detail-profile.component.html',
|
||||||
|
styleUrls: ['./edit-detail-profile.component.scss'],
|
||||||
|
})
|
||||||
|
export class EditDetailProfileComponent implements OnInit {
|
||||||
|
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
public modalController: ModalController,
|
||||||
|
public ts: TranslatorService,
|
||||||
|
) { }
|
||||||
|
|
||||||
|
colorRadio = "#269db8"
|
||||||
|
|
||||||
|
ngOnInit() {}
|
||||||
|
|
||||||
|
dismiss() {
|
||||||
|
// using the injected ModalController this page
|
||||||
|
// can "dismiss" itself and optionally pass back data
|
||||||
|
this.modalController.dismiss({
|
||||||
|
'dismissed': true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue